upload-to-image doesn't recognize image name

Bug #1274552 reported by Andrew Kerr
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
High
Andrew Kerr

Bug Description

This is using devstack (icehouse)

When attempting to upload a volume to image store, it always fails stating the following:

**
ERROR: No image_name was specified in request. (HTTP 400)
**

However, the image name is properly specified in the request:

**
cinder upload-to-image ffcea321-93ed-41e5-ba0c-87abcfdf67ce myImage
**

The following is from the debug output and you can see that the name is not being included in the REST request:

REQ: curl -i http://192.168.10.11:8776/v2/7303878369c7457da7e02f05640e8fb5/volumes/ffcea321-93ed-41e5-ba0c-87abcfdf67ce/action -X POST -H "X-Auth-Project-Id: demo" -H "User-Agent: python-cinderclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token:<TOKEN REMOVED>" -d '{"os-volume_upload_image": {"container_format": "bare", "force": false, "image_name": null, "disk_format": "raw"}}'

Changed in python-cinderclient:
assignee: nobody → Andrew Kerr (andrew-kerr)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)

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

Mike Perez (thingee)
Changed in python-cinderclient:
importance: Undecided → High
Changed in python-cinderclient:
status: In Progress → Fix Committed
Changed in python-cinderclient:
milestone: none → 1.3.1
status: Fix Committed → 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.