xml format create volume requests silently ignore imageRef, snapshot_id or source_volid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
stephen mulcahy |
Bug Description
The xml deserializer for volume requests does not recognise imageRef, snapshot_id or source_volid attributes
To reproduce on devstack:
curl -i -H "Content-Type: application/json" -H "x-auth-token: ${AUTH_TOKEN}" -d '{"volume": {"size": 10, "availability_
results in a volume create operation being logged by cinder-volume which includes the specified imageRef
while
curl -i -H "Accept: application/xml" -H "Content-Type: application/xml" -H "x-auth-token: ${AUTH_TOKEN}" -d '<volume availability_
results in a volume create operation being logged by cinder-volume which omits the specified imageRef
Similar results for snapshot_id or source_volid
This seems to be a problem with both v1 and v2 of the api
Changed in cinder: | |
assignee: | nobody → stephen mulcahy (stephen-mulcahy) |
Changed in cinder: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-2 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/32123
Review: https:/