group snapshot doesn't support filter, sorter and pagnination

Bug #1670540 reported by TommyLike
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
TommyLike

Bug Description

Cinder had already add filter, sorter and pagination support for most resources. but it doesn't support group snapshot
```
## list/detail without filter ##
http://ipaddress/v3/fe3111089a75410e9cedc624897b1813/group_snapshots/detail
result:
{
  "group_snapshots": [
    {
      "status": "available",
      "name": null,
      "group_type_id": "a8205e69-9eff-40f5-be3f-f7439dae3f79",
      "created_at": "2017-03-03T08:24:55.000000",
      "group_id": "6ca0b500-2a8f-4f2e-ad67-2dca449717df",
      "id": "6917bba2-34c2-4992-aa68-bf37cac6a2d4",
      "description": "second group snapshot"
    },
    {
      "status": "available",
      "name": "first_group_snapshot",
      "group_type_id": "a8205e69-9eff-40f5-be3f-f7439dae3f79",
      "created_at": "2017-03-03T08:24:35.000000",
      "group_id": "6ca0b500-2a8f-4f2e-ad67-2dca449717df",
      "id": "85feeb25-addb-43ab-8ee6-a6f2d00da260",
      "description": "first group snapshot"
    }
  ]
}
## list/detail with filter##
http://ipaddress/v3/fe3111089a75410e9cedc624897b1813/group_snapshots/detail?group_type_id=a8205e69-9eff-40f5-be3f-f7439dae3f79
result:
{
  "group_snapshots": [
    {
      "status": "available",
      "name": null,
      "group_type_id": "a8205e69-9eff-40f5-be3f-f7439dae3f79",
      "created_at": "2017-03-03T08:24:55.000000",
      "group_id": "6ca0b500-2a8f-4f2e-ad67-2dca449717df",
      "id": "6917bba2-34c2-4992-aa68-bf37cac6a2d4",
      "description": "second group snapshot"
    },
    {
      "status": "available",
      "name": "first_group_snapshot",
      "group_type_id": "a8205e69-9eff-40f5-be3f-f7439dae3f79",
      "created_at": "2017-03-03T08:24:35.000000",
      "group_id": "6ca0b500-2a8f-4f2e-ad67-2dca449717df",
      "id": "85feeb25-addb-43ab-8ee6-a6f2d00da260",
      "description": "first group snapshot"
    }
  ]
}
The filter doesn't work

TommyLike (hu-husheng)
Changed in cinder:
assignee: nobody → TommyLike (hu-husheng)
Revision history for this message
Xing Yang (xing-yang) wrote :
Changed in cinder:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/441651
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=cb5aaf0bcb894a141a9bfb50b9aff4fb209fc850
Submitter: Jenkins
Branch: master

commit cb5aaf0bcb894a141a9bfb50b9aff4fb209fc850
Author: TommyLike <email address hidden>
Date: Sun Mar 5 14:51:00 2017 +0800

    Add filter, sorter and pagination for group snapshot

    Add filter, sorter and pagination support in group
    snapshot with new microversion v3.29.

    APIImpact
    Closes-Bug: #1670540

    Change-Id: I2ed1b87b022314b157fe432a97783ab50316367b

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 11.0.0.0b1

This issue was fixed in the openstack/cinder 11.0.0.0b1 development milestone.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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