Volume-transfer Creation doesn't support 'name' specified via xml format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Avishay Traeger |
Bug Description
Volume-transfer creation provides to specify the 'name' param in cinder.
I tested it on json format, everything's ok.
But when I create it on xml format, the 'name' param is not transmitted to Cinder.
--------------
Here is input-body of my test:
<transfer name="transfer6" volume_
Here's the result, you can found the 'name' is 'None' in response.
<?xml version='1.0' encoding='UTF-8'?>
<transfer
xmlns:
--------------
The reason is due to the inconsistent processing between xml and json.
The CreateDeserializer of xml-format uses 'display_name' param, not 'name':
--> attributes = ['volume_id', 'display_name']
But the processing of create() in volume-transfer, uses 'name' not 'display_name':
--> name = transfer.
Therefore, no matter the 'name' is specified, its value in response will also be 'None'.
Changed in cinder: | |
assignee: | nobody → wingwj (wingwj) |
Changed in cinder: | |
milestone: | none → icehouse-2 |
Changed in cinder: | |
importance: | Undecided → Medium |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | icehouse-2 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/62163
Review: https:/