cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prachi Damle (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-2352) Anti-Affinity - As admin user , not able to list affinity group created by other users by passins id parameter to listaffinitygroups command. .
Date Fri, 07 Jun 2013 23:36:21 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13678581#comment-13678581
] 

Prachi Damle commented on CLOUDSTACK-2352:
------------------------------------------

The issue is fixed by this commit:

commit hash:	8c9f681f9eba377d1eee279329090fbbdc46c5ab

CLOUDSTACK-2350: Anti-Affinity - As admin user, when tryinto update the affinity group for
a Vm that is deployed by a regular user , he is presented with admin's affinity groups.

Changes:
- listAffinityGroups API takes in accountname and domainId parameter
- For admin, listall=true should return all affinity groups of all users

Contained in branches: master
Contained in no tag
                
> Anti-Affinity - As admin user , not able to list affinity group created by other users
by passins id parameter to listaffinitygroups command. .
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2352
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2352
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>         Environment: Build from master
>            Reporter: Sangeetha Hariharan
>            Assignee: Prachi Damle
>             Fix For: 4.2.0
>
>
> Anti-Affinity - As admin user , not able to list affinity group created by other users
by passing id parameter to listaffinitygroups command.
> Steps to reproduce the problem:
> 1.As regular user : create affinity group g1,sg2. Deploy a Vm – vm1 in g1.
> 2.As admin:
> List this Vm. go to "View Affinity Group" , when affinity group is listed , launch the
detail view of this Affinity group.
> UI hangs because the API call made from the UI, returns empty list.
> GET command=listAffinityGroups&response=json&sessionkey=aGda%2FUIRf%2BIz0Ayz%2BVtquMVyx5w%3D&id=8ba39582-5004-4e77-a872-a5a4788c1371&_=1367888349988
200 { "listaffinitygroupsresponse" : { } }
> mysql> select * from affinity_group where uuid="8ba39582-5004-4e77-a872-a5a4788c1371";
> +----+------------+--------------------+--------------------------------------+-------------+-----------+------------+
> | id | name       | type               | uuid                                 | description
| domain_id | account_id |
> +----+------------+--------------------+--------------------------------------+-------------+-----------+------------+
> | 12 | testsangee | host anti-affinity | 8ba39582-5004-4e77-a872-a5a4788c1371 | testsangee
 |         1 |          4 |
> +----+------------+--------------------+--------------------------------------+-------------+-----------+------------+
> 1 row in set (0.00 sec)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message