Consistency groups API is always returning context.project_id groups from cinder.groups table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
prashkre |
Bug Description
Irrespective of passing the request parameters 'all_tenants', 'project_id' to filter the results, consistency groups GET API is always getting context.project_id consistency groups from cinder.groups table.
More information on the issue is explained here:
consistency groups GET API [0] is fetching consistency groups from cinder.
Suppose lets consider context.project_id is 'proj1' and we pass the filters as {'all_tenants': True, 'project_id': 'proj2'} to get consistency groups from 'proj2'. In the flow at [2] it is deleting "all_tenants" parameter from filter when getting groups from cinder.
[0] https:/
[1] https:/
[2] https:/
[3] https:/
Changed in cinder: | |
assignee: | nobody → prashkre (prashkre) |
Can't reproduce. Can you make sure that the "proj1" is admin? /github. com/openstack/ cinder/ blob/master/ cinder/ group/api. py#L774
if it's admin, the logic can't go to "else" in https:/
non-admin users can't use all-tenants filter