OSAPI: v1.1 links containers do not match spec

Bug #803505 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Brian Waldon

Bug Description

The links container for a flavor with id 3 is currently formatted like this:

[
    {u'href': u'http://172.19.0.3:8774/v1.1/flavors/3', u'rel': u'self'},
    {u'href': u'http://172.19.0.3:8774/v1.1/flavors/3', u'type': u'application/json', u'rel': u'bookmark'},
    {u'href': u'http://172.19.0.3:8774/v1.1/flavors/3', u'type': u'application/xml', u'rel': u'bookmark'},
]

According to the latest v1.1 spec, it should be:

[
    {'href': 'http://172.19.0.3:8774/v1.1/flavors/3', 'rel': 'self'},
    {'href': 'http://172.19.0.3:8774/flavors/3', 'rel': 'bookmark'},
]

This can be applied to servers and images as well.

Related branches

Alex Meade (alex-meade)
Changed in nova:
assignee: nobody → Alex Meade (alex-meade)
Alex Meade (alex-meade)
Changed in nova:
status: New → In Progress
Revision history for this message
Alex Meade (alex-meade) wrote :

This also seems to be the case for images and servers....and are we certain the spec is correct regarding the removal of the version in the 'bookmark' link?

Revision history for this message
Brian Waldon (bcwaldon) wrote :

I was planning on doing each one as a separate bug. If you'd rather tackle them all at once, I'll rename the bug. It's up to you.

Revision history for this message
Alex Meade (alex-meade) wrote :

Lets rename this bug, they will basically be C & P changes

Brian Waldon (bcwaldon)
summary: - OSAPI: v1.1 flavors links container does not match spec
+ OSAPI: v1.1 links containers do not match spec
description: updated
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Reopening since the images bookmark link isn't being added in non-detail responses.

Changed in nova:
status: Fix Committed → Triaged
Brian Waldon (bcwaldon)
Changed in nova:
assignee: Alex Meade (alex-meade) → Brian Waldon (bcwaldon)
Thierry Carrez (ttx)
Changed in nova:
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-3
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-3 → 2011.3
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.