Filters are not applied on Consistency group snapshots GET API

Bug #1670801 reported by prashkre
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

Current implementation of API[0] is pulling consistency group snapshots scoped to
context.[project_id/tenant_id]. To get the required project_id/tenant_id specific consistency group snapshots, request parameters are not applied for filtering the results.

When a call is made from [1] to [2] to get snapshots from cinder.cgsnapshots table, [2] is expecting search_opts which holds the filters to apply on the results but [1] is not passing them by pulling it from the request. Similarly same thing is happening on the call from [3] to [4] to get cinder.group_snapshots table.

[0] https://developer.openstack.org/api-ref/block-storage/v2/index.html?expanded=update-consistency-group-detail,list-consistency-group-snapshots-with-details-detail

[1]https://github.com/openstack/cinder/blob/master/cinder/api/contrib/cgsnapshots.py#L126
[2]https://github.com/openstack/cinder/blob/master/cinder/consistencygroup/api.py#L781

[3]https://github.com/openstack/cinder/blob/master/cinder/api/contrib/cgsnapshots.py#L128
[4]https://github.com/openstack/cinder/blob/master/cinder/group/api.py#L871

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.