The metadata and addresses collections in xml responses are malformed

Bug #751503 reported by Naveed Massjouni
6
This bug affects 1 person
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>
            <item>1.2.3.4</item>
        </public>
        <private>
            <item>192.168.0.3</item>
        </private>
    </addresses>
    <metadata>
        <foo>bar</foo>
    </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.168.0.3"/>
        </private>
    </addresses>
    <metadata>
        <meta key="foo">bar</meta>
    </metadata>
</server>

Related branches

Changed in nova:
assignee: nobody → Naveed Massjouni (ironcamel)
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.