OS-DCF:diskConfig="MANUAL" using XML yields Bad Request
Bug #1189817 reported by
Navneet Kumar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Navneet Kumar |
Bug Description
When creating server via Nova API and specifying OS-DCF:
Steps to Recreate: Create a server with OS-DCF:
Workaround: Use JSON
tags: | added: api |
Changed in nova: | |
assignee: | nobody → Navneet Kumar (neet-iitk) |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → icehouse-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-1 → 2014.1 |
To post a comment you must log in.
This bug is due to missing namespace declaration in the xml request body.If we make the request with
<server xmlns="http:// docs.openstack. org/compute/ api/v1. 1" imageRef= "1c1796f0- bb4a-4cfc- b0f6-743bd0598b 5e" flavorRef="42" os-dcf: diskConfig= "MANUAL" name="demo_ instance5" />
it fails with following error: HTTP/1.1 400 Bad Request
But if we make the request with
<server xmlns="http:// docs.openstack. org/compute/ api/v1. 1" xmlns:os-dcf="http:// docs.rackspacec loud.com/ servers/ api/ext/ diskConfig/ v1.0" imageRef= "1c1796f0- bb4a-4cfc- b0f6-743bd0598b 5e" flavorRef="42" os-dcf: diskConfig= "MANUAL" name="demo_ instance5" />
it gives proper response without any error.
I have attached a screenshot for the same.