cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangeetha Hariharan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-6350) IAM - Listing of VM using uuid when owner account of this Vm is deleted results is VM not being returned.But list VM with listAll=true is able to return this VM.
Date Fri, 18 Apr 2014 23:50:16 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-6350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sangeetha Hariharan updated CLOUDSTACK-6350:
--------------------------------------------

    Component/s: IAM

> IAM - Listing of VM using uuid when owner account of this Vm is deleted results is VM
not being returned.But list VM with listAll=true is able to return this VM.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6350
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6350
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: IAM
>         Environment: Build from 4.4
>            Reporter: Sangeetha Hariharan
>            Assignee: Min Chen
>            Priority: Critical
>         Attachments: cloud-dmp.rar
>
>
> IAM - Listing of VM using uuid when owner account of this Vm is deleted results is VM
not being returned.But list VM with listAll=true is able to return this VM.
> Steps that lead to the problem:
> Had few Domains and sub domains created.
> Accounts were created in these Domains and sub domains
> Had Vms deployed as these accounts.
> Tried to delete all the accounts (Except  admin account).
> After this , tried to delete all Domains (Except ROOT).
> I see that all Accouts have been deleted.
> But some of the Vms remained in "Running" state.
> I am able to list all these Vms using listAll=true as admin :
> http://10.223.49.6:8080/client/api?command=listVirtualMachines&response=json&sessionkey=os3e6ZwGKaaRRkpMyoi1nl9ttsI%3D&listAll=true&page=1&pagesize=20&_=1396909849873
> { "listvirtualmachinesresponse" : { "count":7 ,"virtualmachine" : [  {"id":"9a0a4d1b-7918-4d9a-86b0-a72b0a378c07","name":"d12b","displayname":"d12b","account":"testD12B-TestVMDeploy-2U21LA","domainid":"5314248a-0419-4e0f-9a63-b663abbbce5b","domain":"D12-G39UMB","created":"2014-04-07T09:55:28-0400","state":"Running","haenable":false,"zoneid":"24ea97ba-f26f-40d2-9bda-538abffb8181","zonename":"BLR1","hostid":"c404603f-8a1a-495f-9278-3c988ff9833b","hostname":"SimulatedAgent.2fda14b6-647e-492b-a6ab-7e809d56d41a","templateid":"62114ed8-b9df-11e3-a5ee-4adf980f9414","templatename":"CentOS
5.3(64-bit) no GUI (Simulator)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI (Simulator)","passwordenabled":false,"serviceofferingid":"fa7bb82d-4f3b-43e6-ac8c-a87419cd78d9","serviceofferingname":"Small
Instance","cpunumber":1,"cpuspeed":100,"memory":128,"cpuused":"10%","networkkbsread":2916352,"networkkbswrite":1458176,"guestosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"3d24baa0-13be-456d-b43d-f003dba13444","networkid":"22e12e93-84b5-4298-bec2-405f114ac19b","networkname":"testD12B-TestVMDeploy-2U21LA-network","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.187","isolationuri":"vlan://2150","broadcasturi":"vlan://2150","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:50:44:00:01"}],"hypervisor":"Simulator","instancename":"i-156-263-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":false,"ostypeid":11},
{"id":"5f620fd0-054f-484a-b3d0-5fa30861272e","name":"d12a","displayname":"d12a","account":"testD12A-TestVMDeploy-DLBXEJ","domainid":"5314248a-0419-4e0f-9a63-b663abbbce5b","domain":"D12-G39UMB","created":"2014-04-07T09:55:23-0400","state":"Running","haenable":false,"zoneid":"24ea97ba-f26f-40d2-9bda-538abffb8181","zonename":"BLR1","hostid":"8c5fe6d4-d5c4-4eb1-b286-9f498a8a9626","hostname":"SimulatedAgent.656f464b-f058-4416-afb8-ab5b12e59128","templateid":"62114ed8-b9df-11e3-a5ee-4adf980f9414","templatename":"CentOS
5.3(64-bit) no GUI (Simulator)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI (Simulator)","passwordenabled":false,"serviceofferingid":"fa7bb82d-4f3b-43e6-ac8c-a87419cd78d9","serviceofferingname":"Small
Instance","cpunumber":1,"cpuspeed":100,"memory":128,"cpuused":"10%","networkkbsread":2916352,"networkkbswrite":1458176,"guestosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"ab72b85e-ca4a-4fd1-bed4-265e232d3689","networkid":"bf0a3fca-1997-4345-8f94-1a680ff88db4","networkname":"testD12A-TestVMDeploy-DLBXEJ-network","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.207","isolationuri":"vlan://1964","broadcasturi":"vlan://1964","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:00:b7:00:01"}],"hypervisor":"Simulator","instancename":"i-155-261-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":false,"ostypeid":11},
{"id":"e532616f-9746-46af-b645-c5c094681e47","name":"d11b","displayname":"d11b","account":"testD11B-TestVMDeploy-T05ADJ","domainid":"11e13385-da60-48a1-8718-cac576651f80","domain":"D11-EA5P3E","created":"2014-04-07T09:55:17-0400","state":"Running","haenable":false,"zoneid":"24ea97ba-f26f-40d2-9bda-538abffb8181","zonename":"BLR1","hostid":"eca1522a-381b-436d-8cfd-b1b542ffa88f","hostname":"SimulatedAgent.4244557f-5aaf-4ea3-bb84-eac6633537f8","templateid":"62114ed8-b9df-11e3-a5ee-4adf980f9414","templatename":"CentOS
5.3(64-bit) no GUI (Simulator)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI (Simulator)","passwordenabled":false,"serviceofferingid":"fa7bb82d-4f3b-43e6-ac8c-a87419cd78d9","serviceofferingname":"Small
Instance","cpunumber":1,"cpuspeed":100,"memory":128,"cpuused":"10%","networkkbsread":2916352,"networkkbswrite":1458176,"guestosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"8d4b227a-3c21-4946-9771-78d4d39f8105","networkid":"5c434b96-74bb-4d65-b43a-ee78d73391ab","networkname":"testD11B-TestVMDeploy-T05ADJ-network","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.246","isolationuri":"vlan://3819","broadcasturi":"vlan://3819","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:01:9a:00:01"}],"hypervisor":"Simulator","instancename":"i-154-259-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":false,"ostypeid":11},
{"id":"052f0d05-6cf0-45a7-8c36-924a8bf8b81f","name":"test","displayname":"test","account":"admin","domainid":"2925f31c-b9df-11e3-a5ee-4adf980f9414","domain":"ROOT","created":"2014-04-07T10:18:47-0400","state":"Stopped","haenable":false,"zoneid":"24ea97ba-f26f-40d2-9bda-538abffb8181","zonename":"BLR1","templateid":"62114ed8-b9df-11e3-a5ee-4adf980f9414","templatename":"CentOS
5.3(64-bit) no GUI (Simulator)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI (Simulator)","passwordenabled":false,"serviceofferingid":"a6fae846-3fd6-49f5-a031-0c39f810c6af","serviceofferingname":"Small
Instance","cpunumber":1,"cpuspeed":100,"memory":128,"cpuused":"10%","networkkbsread":622592,"networkkbswrite":311296,"guestosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"884b11bf-6d37-4fd7-9d30-8ba6286347fb","networkid":"2a64a339-25d8-4b04-99ba-4c07e9f1852d","networkname":"hello","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.51","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:4e:37:00:07"}],"hypervisor":"Simulator","instancename":"i-2-267-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":false,"ostypeid":11},
{"id":"8d1334c1-69de-4a40-8f7f-5f87d375ed59","name":"d1a","displayname":"d1b","account":"testD1B-TestVMDeploy-YJ6J14","domainid":"4deca5be-4301-4de8-b390-3530f07fcbba","domain":"D1-ADSZLE","created":"2014-04-07T09:55:06-0400","state":"Running","haenable":false,"zoneid":"24ea97ba-f26f-40d2-9bda-538abffb8181","zonename":"BLR1","hostid":"996cfc66-4a12-4b47-b593-88e8f6a59107","hostname":"SimulatedAgent.bdac7580-67a1-439a-8610-54494508c896","templateid":"62114ed8-b9df-11e3-a5ee-4adf980f9414","templatename":"CentOS
5.3(64-bit) no GUI (Simulator)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI (Simulator)","passwordenabled":false,"serviceofferingid":"fa7bb82d-4f3b-43e6-ac8c-a87419cd78d9","serviceofferingname":"Small
Instance","cpunumber":1,"cpuspeed":100,"memory":128,"cpuused":"10%","networkkbsread":2916352,"networkkbswrite":1458176,"guestosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"4b1b0e3e-6571-42aa-ac1b-918acd7fab2e","networkid":"b3c484e6-7e66-4ccb-9002-8167a2b1df4e","networkname":"testD1B-TestVMDeploy-YJ6J14-network","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.42","isolationuri":"vlan://3140","broadcasturi":"vlan://3140","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:32:cf:00:01"}],"hypervisor":"Simulator","instancename":"i-151-255-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":false,"ostypeid":11},
{"id":"6a229bd0-1a4c-452a-8f46-cfaeb05d5d7c","name":"d2","displayname":"d2","account":"testD1-TestVMDeploy-9HERIL","domainid":"a98f21fa-c0f4-499c-b6ea-d71e59b0e981","domain":"D2-3OILB7","created":"2014-04-07T09:55:34-0400","state":"Expunging","haenable":false,"zoneid":"24ea97ba-f26f-40d2-9bda-538abffb8181","zonename":"BLR1","templateid":"62114ed8-b9df-11e3-a5ee-4adf980f9414","templatename":"CentOS
5.3(64-bit) no GUI (Simulator)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI (Simulator)","passwordenabled":false,"serviceofferingid":"fa7bb82d-4f3b-43e6-ac8c-a87419cd78d9","serviceofferingname":"Small
Instance","cpunumber":1,"cpuspeed":100,"memory":128,"cpuused":"10%","networkkbsread":32768,"networkkbswrite":16384,"guestosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[],"hypervisor":"Simulator","instancename":"i-157-265-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":false,"ostypeid":11},
{"id":"46a87239-75e3-499b-8a04-593d3ebaf004","name":"d1a","displayname":"d1a","account":"testD1A-TestVMDeploy-H5CF7X","domainid":"4deca5be-4301-4de8-b390-3530f07fcbba","domain":"D1-ADSZLE","created":"2014-04-07T09:55:01-0400","state":"Running","haenable":false,"zoneid":"24ea97ba-f26f-40d2-9bda-538abffb8181","zonename":"BLR1","hostid":"3bd3c195-40fd-4b0b-a64c-56fe83eba2cd","hostname":"SimulatedAgent.8d59fce4-ee60-483c-828d-b78dd95cb8e5","templateid":"62114ed8-b9df-11e3-a5ee-4adf980f9414","templatename":"CentOS
5.3(64-bit) no GUI (Simulator)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI (Simulator)","passwordenabled":false,"serviceofferingid":"fa7bb82d-4f3b-43e6-ac8c-a87419cd78d9","serviceofferingname":"Small
Instance","cpunumber":1,"cpuspeed":100,"memory":128,"cpuused":"10%","networkkbsread":2916352,"networkkbswrite":1458176,"guestosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"c8a1ff11-a748-40ce-8215-9dda3d19aab9","networkid":"7fae9966-5b6a-4a8d-8543-d737f7992f83","networkname":"testD1A-TestVMDeploy-H5CF7X-network","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.143","isolationuri":"vlan://116","broadcasturi":"vlan://116","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:29:51:00:01"}],"hypervisor":"Simulator","instancename":"i-150-253-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":false,"ostypeid":11}
] } }
> but when i try to list by passing id parameter:
> http://10.223.49.6:8080/client/api?command=listVirtualMachines&id=9a0a4d1b-7918-4d9a-86b0-a72b0a378c07&response=json&sessionkey=os3e6ZwGKaaRRkpMyoi1nl9ttsI%3D&_=1396909950662
> I do not see any entry being returned:
> In this case the Account owner of this VM is deleted already.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message