volume api attributes should be consistent
Bug #943053 reported by
Brian Waldon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Fix Released
|
Undecided
|
Brian Waldon | ||
python-novaclient |
Fix Released
|
High
|
Brian Waldon |
Bug Description
The volumes api requests for creating volumes/snapshots accept attributes using underscores, but all responses format attributes as lower camel case. We should standardize on the latter.
Changed in nova: | |
milestone: | essex-4 → none |
Changed in openstack-manuals: | |
status: | New → In Progress |
assignee: | nobody → Brian Waldon (bcwaldon) |
Changed in nova: | |
milestone: | none → essex-rc2 |
Changed in nova: | |
milestone: | essex-rc2 → 2012.1 |
Changed in openstack-manuals: | |
status: | Fix Committed → Fix Released |
affects: | nova → python-novaclient |
Changed in python-novaclient: | |
milestone: | 2012.1 → none |
To post a comment you must log in.
This is actually a nasty usability issue and makes the api look unprofessional.
Create Volume Request: JSON
{
"display_ name": "vol-001",
"display_ description" : "Another volume.",
"volume_ type": "289da7f8- 6440-407c- 9fb4-7db01ec491 64",
"availability_ zone": "us-east1"
"volume": {
"size": 30,
"metadata": {"contents": "junk"},
}
}
Create Volume Response: JSON acf6-4b2d- bc7a-119f9148cd 8c",
"displayName" : "vol-001",
"displayDescri ption": "Another volume.",
"volumeType" : "289da7f8- 6440-407c- 9fb4-7db01ec491 64",
"availabilityZ one": "us-east1",
"snapshotId" : null,
"attachments" : [],
"createdAt" : "2012-02- 14T20:53: 07Z"
{
"volume": {
"id": "521752a6-
"size": 30,
"metadata": {"contents": "junk"},
}
}
It would be great if we could switch it but still support the old syntax for anyone who happens to be using it. But we should just publish the new syntax in the api docs. Supporting the old syntax will allow us to get through the merge gate as well.