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 A22F0F15F for ; Wed, 17 Apr 2013 18:55:15 +0000 (UTC) Received: (qmail 53003 invoked by uid 500); 17 Apr 2013 18:55:15 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 52972 invoked by uid 500); 17 Apr 2013 18:55:15 -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 52964 invoked by uid 500); 17 Apr 2013 18:55:15 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 52961 invoked by uid 99); 17 Apr 2013 18:55:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Apr 2013 18:55:15 +0000 Date: Wed, 17 Apr 2013 18:55:15 +0000 (UTC) From: "Sangeetha Hariharan (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-2069) Anti-Affinity - listVirtualmachines - affinitygroup entity does not include other Vms that are part of this affinity group. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sangeetha Hariharan created CLOUDSTACK-2069: ----------------------------------------------- Summary: Anti-Affinity - listVirtualmachines - affinitygroup e= ntity does not include other Vms that are part of this affinity group. Key: CLOUDSTACK-2069 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2069 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the defa= ult.) Components: Management Server Affects Versions: 4.2.0 Environment: Build from master Reporter: Sangeetha Hariharan Fix For: 4.2.0 Anti-Affinity - listVirtualmachines - affinitygroup entity does not include= other Vms that are part of this affinity group Steps to reproduce the problem: Have a deployment with 2 hosts. As regular user - U1 , Create multiple anti-affinity group. Deploy a 2 Vms using anti-affinity group say A1.=20 List one of the Vms. affinitygroup entity does not include other Vms that are part of this affin= ity group.virtualmachineIds is an empty list , even though we have 3 vms as= sociated with this affinitygroup. { "listvirtualmachinesresponse" : { "count":1 ,"virtualmachine" : [ {"id":= "16f94f97-9098-458b-9a2b-0f4cdb914e8e","name":"test8901","displayname":"tes= t8901","account":"sangee","domainid":"aa7821ac-a625-11e2-8627-06d4460004b1"= ,"domain":"ROOT","created":"2013-04-17T11:29:39-0700","state":"Running","ha= enable":false,"zoneid":"63fb31bd-de23-40d5-a710-4a6b922d153c","zonename":"z= one1","templateid":"aa7c5240-a625-11e2-8627-06d4460004b1","templatename":"C= entOS 5.6(64-bit) no GUI (XenServer)","templatedisplaytext":"CentOS 5.6(64-= bit) no GUI (XenServer)","passwordenabled":false,"serviceofferingid":"8b3e4= dd8-f8ae-4e12-9551-604fbb6c6313","serviceofferingname":"tiny-again","cpunum= ber":1,"cpuspeed":100,"memory":200,"cpuused":"0%","networkkbsread":0,"netwo= rkkbswrite":0,"guestosid":"aa88ec26-a625-11e2-8627-06d4460004b1","rootdevic= eid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"c656cc25-5e= 55-44d7-81fb-c91cb6b9cbd5","networkid":"40ae3118-1004-4616-96ee-bd42beb9b8e= 1","networkname":"test","netmask":"255.255.255.0","gateway":"10.1.1.1","ipa= ddress":"10.1.1.243","isolationuri":"vlan://2061","broadcasturi":"vlan://20= 61","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"= 02:00:02:1d:00:04"}],"hypervisor":"XenServer","tags":[],"affinitygroup":[{"= id":"d9136853-b785-4f3d-b975-9b3a9bf5d477","name":"sangee-1","description":= "test-sangee-1","account":"sangee","virtualmachineIds":[]}],"jobstatus":0} = ] } } mysql> select * from affinity_group_vm_map ; +----+-------------------+-------------+ | id | affinity_group_id | instance_id | +----+-------------------+-------------+ | 1 | 1 | 14 | | 2 | 1 | 15 | | 3 | 1 | 16 | +----+-------------------+-------------+ mysql> select id,name,state,uuid from vm_instance; +----+------------+---------+--------------------------------------+ | id | name | state | uuid | +----+------------+---------+--------------------------------------+ | 1 | s-1-VM | Running | 3c766bab-44ae-45f4-9092-92fa7b20fefa | | 2 | v-2-VM | Running | 4dfa47bf-7ab6-4ffc-a996-b0d980a65922 | | 3 | test123 | Stopped | 5cb3ac95-88c3-4343-800a-e27a69a379ec | | 4 | r-4-VM | Running | 9a95b4de-6279-41a3-9167-3ceec6b3d9af | | 5 | hello-1 | Stopped | faf96d53-eeaa-4370-bea3-6d4fe8f577c7 | | 6 | r-6-VM | Running | 8eaaedba-e1cb-411e-b181-32bf5c494778 | | 7 | yello | Stopped | fe7c2231-030b-44ab-8a92-627fa3b9fb62 | | 8 | sangee-123 | Stopped | 3dc9cc69-4874-4ce5-a520-9012720034b6 | | 9 | newvm | Stopped | d4d90437-2d13-4b22-a230-5cd5fde0b5c8 | | 10 | again | Stopped | c0c0ee3a-af91-4595-a1a3-4c3317489a03 | | 11 | ubuntu | Stopped | 36186bb2-9d1d-45fc-a569-88b94bc993a1 | | 12 | test456 | Running | cb6e6fec-56dd-44ae-bf4f-dd29335ea24f | | 13 | test890 | Running | 6ecf2715-1c64-43f2-abaf-b654d0f79b32 | | 14 | test890 | Running | bc2d8100-cffa-4e51-bf30-c8ccc81509e3 | | 15 | test8901 | Running | 16f94f97-9098-458b-9a2b-0f4cdb914e8e | | 16 | test89011 | Error | 59727cf1-cf4d-4a3f-9892-b1cb12b8648a | +----+------------+---------+--------------------------------------+ 16 rows in set (0.00 sec) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira