Response is incorrect for List snapshots(detailed) in v1

Bug #1477533 reported by Eisuke Dojo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Eisuke Dojo

Bug Description

Example of the Response is found in
http://developer.openstack.org/api-ref-blockstorage-v1.html#getSnapshotsDetail

the example is incorrect because "metadata" parameter is not listed.

[Result]
curl -g -X GET http://xxx.xxx.xxx.xxx:8776/v1/2af8ddb356c0424087cde36cc39bb776/snapshots/detail -H "Accept: application/json" -H "User-Agent: python-heatclient" -H "X-Region-Name: RegionOne" -H "X-Auth-Token: $TOKEN" -H "Content-Type: application/json" -H "X-Auth-Url: http://xxx.xxx.xxx.xxx:5000/v2.0" | python -m json.tool
{
    "snapshots": [
        {
            "created_at": "2015-07-22T15:00:02.000000",
            "display_description": null,
            "display_name": null,
            "id": "4f99dbf2-af8d-4db3-a8ba-4bcdbb60d40b",
            "metadata": {},
            "os-extended-snapshot-attributes:progress": "100%",
            "os-extended-snapshot-attributes:project_id": "2af8ddb356c0424087cde36cc39bb776",
            "size": 1,
            "status": "available",
            "volume_id": "6326ebb5-1659-4d16-81c5-25f2ed3bab9b"
        },
        {
            "created_at": "2015-07-22T15:03:06.000000",
            "display_description": null,
            "display_name": null,
            "id": "5090fdb3-3425-448a-abc4-f3e212f19e86",
            "metadata": {},
            "os-extended-snapshot-attributes:progress": "100%",
            "os-extended-snapshot-attributes:project_id": "2af8ddb356c0424087cde36cc39bb776",
            "size": 1,
            "status": "available",
            "volume_id": "6326ebb5-1659-4d16-81c5-25f2ed3bab9b"
        }
    ]
}

Changed in openstack-api-site:
assignee: nobody → Eisuke Dojo (dojo-eisuke)
information type: Private Security → Public
Anne Gentle (annegentle)
Changed in openstack-api-site:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

Fix proposed to branch: master
Review: https://review.openstack.org/205877

Changed in openstack-api-site:
status: Confirmed → In Progress
Tom Fifield (fifieldt)
Changed in openstack-api-site:
milestone: none → liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/205877
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=776ad65f66f32111c054c713710f912a4f0707dc
Submitter: Jenkins
Branch: master

commit 776ad65f66f32111c054c713710f912a4f0707dc
Author: Eisuke Dojo <email address hidden>
Date: Mon Jul 27 11:54:45 2015 +0900

    Add parameter "metadata" to the example of the response body

    The example of the response body was missing parameter "metadata".

    Closes-bug: #1477533

    Change-Id: I2832bfdf9e5fef7edc5be19995da63f29ee3b626

Changed in openstack-api-site:
status: In Progress → Fix Released
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.