Nova create volume snapshot doc is incorrect

Bug #1540581 reported by Carolyn Van Slyck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Undecided
Sana Khan

Bug Description

I am using OpenStack Liberty and referencing http://developer.openstack.org/api-ref-compute-v2.1.html#createSnapshot from the Nova v2.1 API.

The request body for create volume snapshot is incorrect and looks like it is actually a response object instead of a request. Looking at the code (https://github.com/openstack/nova/blob/1221688fb873305ef7c5ac987e87f9522497ac0a/nova/api/openstack/compute/volumes.py#L530) the request should look like the sample below, where only volume_id is required:

{
  "snapshot": {
    "volume_id": "24f5921a-20d9-480f-9f70-c309b7627909"
    "force": False,
    "display_name": "my snaphot",
    "display_description": "a moment in time"
  }
}

Tags: nova
Ayush Garg (ayushgrg93)
tags: added: nova
Atsushi SAKAI (sakaia)
Changed in openstack-api-site:
status: New → Confirmed
Changed in openstack-api-site:
assignee: nobody → Sana Khan (sana.khan)
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/280402

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

Reviewed: https://review.openstack.org/280402
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=3c5a01d2193ca95e8469b6aa7e8d627a24ed71bf
Submitter: Jenkins
Branch: master

commit 3c5a01d2193ca95e8469b6aa7e8d627a24ed71bf
Author: Sana Khan <email address hidden>
Date: Tue Feb 16 02:33:34 2016 +0530

    Changes Create Snapshot link to snapshot-create-request.json
    Closes-Bug: #1540581
    Change-Id: I8a6c82d0e07848a434c838eff5628570548a8c25

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.