Hi,

listAffinityGroups API should support for account and domainId parameters .
All regular users (other than admin users) can list only affinity group that 
belongs to them.
But  Admin users should be able to list affinity groups that belong to other 
accounts passed in account and domain Id parameters.

Following 2 bugs have already been logged for this regards:

    CLOUDSTACK-2350 - Anti-Affinity - As admin user, when trying to update the 
affinity group for a Vm that is deployed by a regular user , he is presented 
with admin's affinity groups.
  **This issue tracks the following 2 api issues which is the root cause of the 
bug:
Using listAffinityGroups() call , Admin is not able to list affinity groups of 
other accounts by passing account and domainid parameter.

when admin calls listAffinityGroups() without account and domainid parameter, 
all affinity groups belonging to all users need to be returned.
  
  CLOUDSTACK-2352 - Anti-Affinity - As admin user , not able to list affinity 
group created by other users by passing id parameter to listaffinitygroups 
command. .


-Thanks
Sangeetha

-----Original Message-----
From: Devdeep Singh [mailto:devdeep.si...@citrix.com] 
Sent: Friday, May 17, 2013 1:03 AM
To: dev@cloudstack.apache.org
Subject: RE: listAffinityGroups API parameters

Looking at the code listAffinityGroup api doesn't take account name or domain 
id as a parameter. You may file a bug for this. Either the FS needs to be 
updated or the api needs to be updated for honoring these parameters.

Regards,
Devdeep

> -----Original Message-----
> From: Girish Shilamkar [mailto:gir...@clogeny.com]
> Sent: Friday, May 17, 2013 12:53 PM
> To: dev@cloudstack.apache.org
> Subject: listAffinityGroups API parameters
> 
> Hello,
> 
> While writing automation tests for listAffinityGroups API I found that 
> the specs
> (http://tinyurl.com/agedzm2) specify account and domainid as parameters.
> But in marvin cloudstackAPI/listAffinityGroups.py it does not expect 
> these parameters.
> 
> I tried to list Affinity Groups through UI and it lists user's 
> Affinity groups by listing vms only and not directly.
> 
> Could someone please confirm ?
> 
> Regards,
> Girish

Reply via email to