Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F8DA10871 for ; Fri, 18 Apr 2014 01:29:17 +0000 (UTC) Received: (qmail 39592 invoked by uid 500); 18 Apr 2014 01:29:16 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 39553 invoked by uid 500); 18 Apr 2014 01:29:16 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 39541 invoked by uid 500); 18 Apr 2014 01:29:15 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 39534 invoked by uid 99); 18 Apr 2014 01:29:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 01:29:15 +0000 Date: Fri, 18 Apr 2014 01:29:15 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-6350?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13973677#comment-13973677 ]=20 ASF subversion and git services commented on CLOUDSTACK-6350: ------------------------------------------------------------- Commit c4b0a1e2d941ba63f0a50a5901c696ff689540d1 in cloudstack's branch refs= /heads/master from [~minchen07] [ https://git-wip-us.apache.org/repos/asf?p=3Dcloudstack.git;h=3Dc4b0a1e ] 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=3Dtrue is able to return this VM. > IAM - Listing of VM using uuid when owner account of this Vm is deleted r= esults is VM not being returned.But list VM with listAll=3Dtrue is able to = return this VM. > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ------------- > > Key: CLOUDSTACK-6350 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-635= 0 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > 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 r= esults is VM not being returned.But list VM with listAll=3Dtrue 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=3Dtrue as admin : > http://10.223.49.6:8080/client/api?command=3DlistVirtualMachines&response= =3Djson&sessionkey=3Dos3e6ZwGKaaRRkpMyoi1nl9ttsI%3D&listAll=3Dtrue&page=3D1= &pagesize=3D20&_=3D1396909849873 > { "listvirtualmachinesresponse" : { "count":7 ,"virtualmachine" : [ {"id= ":"9a0a4d1b-7918-4d9a-86b0-a72b0a378c07","name":"d12b","displayname":"d12b"= ,"account":"testD12B-TestVMDeploy-2U21LA","domainid":"5314248a-0419-4e0f-9a= 63-b663abbbce5b","domain":"D12-G39UMB","created":"2014-04-07T09:55:28-0400"= ,"state":"Running","haenable":false,"zoneid":"24ea97ba-f26f-40d2-9bda-538ab= ffb8181","zonename":"BLR1","hostid":"c404603f-8a1a-495f-9278-3c988ff9833b",= "hostname":"SimulatedAgent.2fda14b6-647e-492b-a6ab-7e809d56d41a","templatei= d":"62114ed8-b9df-11e3-a5ee-4adf980f9414","templatename":"CentOS 5.3(64-bit= ) no GUI (Simulator)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI (Sim= ulator)","passwordenabled":false,"serviceofferingid":"fa7bb82d-4f3b-43e6-ac= 8c-a87419cd78d9","serviceofferingname":"Small Instance","cpunumber":1,"cpus= peed":100,"memory":128,"cpuused":"10%","networkkbsread":2916352,"networkkbs= write":1458176,"guestosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdevi= ceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"3d24baa0-1= 3be-456d-b43d-f003dba13444","networkid":"22e12e93-84b5-4298-bec2-405f114ac1= 9b","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":"Simulat= or","instancename":"i-156-263-VM","tags":[],"affinitygroup":[],"displayvm":= true,"isdynamicallyscalable":false,"ostypeid":11}, {"id":"5f620fd0-054f-484= a-b3d0-5fa30861272e","name":"d12a","displayname":"d12a","account":"testD12A= -TestVMDeploy-DLBXEJ","domainid":"5314248a-0419-4e0f-9a63-b663abbbce5b","do= main":"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":"Simulate= dAgent.656f464b-f058-4416-afb8-ab5b12e59128","templateid":"62114ed8-b9df-11= e3-a5ee-4adf980f9414","templatename":"CentOS 5.3(64-bit) no GUI (Simulator)= ","templatedisplaytext":"CentOS 5.3(64-bit) no GUI (Simulator)","passworden= abled":false,"serviceofferingid":"fa7bb82d-4f3b-43e6-ac8c-a87419cd78d9","se= rviceofferingname":"Small Instance","cpunumber":1,"cpuspeed":100,"memory":1= 28,"cpuused":"10%","networkkbsread":2916352,"networkkbswrite":1458176,"gues= tosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicet= ype":"ROOT","securitygroup":[],"nic":[{"id":"ab72b85e-ca4a-4fd1-bed4-265e23= 2d3689","networkid":"bf0a3fca-1997-4345-8f94-1a680ff88db4","networkname":"t= estD12A-TestVMDeploy-DLBXEJ-network","netmask":"255.255.255.0","gateway":"1= 0.1.1.1","ipaddress":"10.1.1.207","isolationuri":"vlan://1964","broadcastur= i":"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,"isdynamicallys= calable":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,"zon= eid":"24ea97ba-f26f-40d2-9bda-538abffb8181","zonename":"BLR1","hostid":"eca= 1522a-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)","templatedisplayte= xt":"CentOS 5.3(64-bit) no GUI (Simulator)","passwordenabled":false,"servic= eofferingid":"fa7bb82d-4f3b-43e6-ac8c-a87419cd78d9","serviceofferingname":"= Small Instance","cpunumber":1,"cpuspeed":100,"memory":128,"cpuused":"10%","= networkkbsread":2916352,"networkkbswrite":1458176,"guestosid":"292dc664-b9d= f-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicetype":"ROOT","securit= ygroup":[],"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","tr= affictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:0= 1:9a:00:01"}],"hypervisor":"Simulator","instancename":"i-154-259-VM","tags"= :[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":false,"osty= peid":11}, {"id":"052f0d05-6cf0-45a7-8c36-924a8bf8b81f","name":"test","disp= layname":"test","account":"admin","domainid":"2925f31c-b9df-11e3-a5ee-4adf9= 80f9414","domain":"ROOT","created":"2014-04-07T10:18:47-0400","state":"Stop= ped","haenable":false,"zoneid":"24ea97ba-f26f-40d2-9bda-538abffb8181","zone= name":"BLR1","templateid":"62114ed8-b9df-11e3-a5ee-4adf980f9414","templaten= ame":"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 Instan= ce","cpunumber":1,"cpuspeed":100,"memory":128,"cpuused":"10%","networkkbsre= ad":622592,"networkkbswrite":311296,"guestosid":"292dc664-b9df-11e3-a5ee-4a= df980f9414","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"ni= c":[{"id":"884b11bf-6d37-4fd7-9d30-8ba6286347fb","networkid":"2a64a339-25d8= -4b04-99ba-4c07e9f1852d","networkname":"hello","netmask":"255.255.255.0","g= ateway":"10.1.1.1","ipaddress":"10.1.1.51","traffictype":"Guest","type":"Is= olated","isdefault":true,"macaddress":"02:00:4e:37:00:07"}],"hypervisor":"S= imulator","instancename":"i-2-267-VM","tags":[],"affinitygroup":[],"display= vm":true,"isdynamicallyscalable":false,"ostypeid":11}, {"id":"8d1334c1-69de= -4a40-8f7f-5f87d375ed59","name":"d1a","displayname":"d1b","account":"testD1= B-TestVMDeploy-YJ6J14","domainid":"4deca5be-4301-4de8-b390-3530f07fcbba","d= omain":"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":"Simulate= dAgent.bdac7580-67a1-439a-8610-54494508c896","templateid":"62114ed8-b9df-11= e3-a5ee-4adf980f9414","templatename":"CentOS 5.3(64-bit) no GUI (Simulator)= ","templatedisplaytext":"CentOS 5.3(64-bit) no GUI (Simulator)","passworden= abled":false,"serviceofferingid":"fa7bb82d-4f3b-43e6-ac8c-a87419cd78d9","se= rviceofferingname":"Small Instance","cpunumber":1,"cpuspeed":100,"memory":1= 28,"cpuused":"10%","networkkbsread":2916352,"networkkbswrite":1458176,"gues= tosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicet= ype":"ROOT","securitygroup":[],"nic":[{"id":"4b1b0e3e-6571-42aa-ac1b-918acd= 7fab2e","networkid":"b3c484e6-7e66-4ccb-9002-8167a2b1df4e","networkname":"t= estD1B-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,"ma= caddress":"02:00:32:cf:00:01"}],"hypervisor":"Simulator","instancename":"i-= 151-255-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallysca= lable":false,"ostypeid":11}, {"id":"6a229bd0-1a4c-452a-8f46-cfaeb05d5d7c","= name":"d2","displayname":"d2","account":"testD1-TestVMDeploy-9HERIL","domai= nid":"a98f21fa-c0f4-499c-b6ea-d71e59b0e981","domain":"D2-3OILB7","created":= "2014-04-07T09:55:34-0400","state":"Expunging","haenable":false,"zoneid":"2= 4ea97ba-f26f-40d2-9bda-538abffb8181","zonename":"BLR1","templateid":"62114e= d8-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-a87419c= d78d9","serviceofferingname":"Small Instance","cpunumber":1,"cpuspeed":100,= "memory":128,"cpuused":"10%","networkkbsread":32768,"networkkbswrite":16384= ,"guestosid":"292dc664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootd= evicetype":"ROOT","securitygroup":[],"nic":[],"hypervisor":"Simulator","ins= tancename":"i-157-265-VM","tags":[],"affinitygroup":[],"displayvm":true,"is= dynamicallyscalable":false,"ostypeid":11}, {"id":"46a87239-75e3-499b-8a04-5= 93d3ebaf004","name":"d1a","displayname":"d1a","account":"testD1A-TestVMDepl= oy-H5CF7X","domainid":"4deca5be-4301-4de8-b390-3530f07fcbba","domain":"D1-A= DSZLE","created":"2014-04-07T09:55:01-0400","state":"Running","haenable":fa= lse,"zoneid":"24ea97ba-f26f-40d2-9bda-538abffb8181","zonename":"BLR1","host= id":"3bd3c195-40fd-4b0b-a64c-56fe83eba2cd","hostname":"SimulatedAgent.8d59f= ce4-ee60-483c-828d-b78dd95cb8e5","templateid":"62114ed8-b9df-11e3-a5ee-4adf= 980f9414","templatename":"CentOS 5.3(64-bit) no GUI (Simulator)","templated= isplaytext":"CentOS 5.3(64-bit) no GUI (Simulator)","passwordenabled":false= ,"serviceofferingid":"fa7bb82d-4f3b-43e6-ac8c-a87419cd78d9","serviceofferin= gname":"Small Instance","cpunumber":1,"cpuspeed":100,"memory":128,"cpuused"= :"10%","networkkbsread":2916352,"networkkbswrite":1458176,"guestosid":"292d= c664-b9df-11e3-a5ee-4adf980f9414","rootdeviceid":0,"rootdevicetype":"ROOT",= "securitygroup":[],"nic":[{"id":"c8a1ff11-a748-40ce-8215-9dda3d19aab9","net= workid":"7fae9966-5b6a-4a8d-8543-d737f7992f83","networkname":"testD1A-TestV= MDeploy-H5CF7X-network","netmask":"255.255.255.0","gateway":"10.1.1.1","ipa= ddress":"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=3DlistVirtualMachines&id=3D9a0= a4d1b-7918-4d9a-86b0-a72b0a378c07&response=3Djson&sessionkey=3Dos3e6ZwGKaaR= RkpMyoi1nl9ttsI%3D&_=3D1396909950662 > 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)