The metadata and addresses collections in xml responses are malformed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Naveed Massjouni |
Bug Description
The current openstack api v1.0 returns the following xml response:
<server flavorId="1" hostId="" id="1" imageId="10" name="server1" status="BUILD">
<addresses>
<public>
</public>
<private>
</private>
</addresses>
<metadata>
</metadata>
</server>
Notice that the addresses and metadata collections are not structured correctly. The correct response should look like this:
<server flavorId="1" hostId="" id="1" imageId="10" name="server1" status="BUILD">
<addresses>
<public>
<ip addr="1.2.3.4"/>
</public>
<private>
<ip addr="192.
</private>
</addresses>
<metadata>
<meta key="foo"
</metadata>
</server>
Related branches
- Devin Carlen (community): Approve
- Cory Wright (community): Approve
- Titan: Pending requested
-
Diff: 107 lines (+61/-0)3 files modifiednova/api/openstack/servers.py (+7/-0)
nova/tests/api/openstack/test_servers.py (+36/-0)
nova/wsgi.py (+18/-0)
Changed in nova: | |
assignee: | nobody → Naveed Massjouni (ironcamel) |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |