Metadata is broken for anything but /latest/

Bug #705314 reported by Vish Ishaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Todd Willey

Bug Description

Using other versions of metadata api besides latest simply returns the list of metadata versions:
# wget -O - http://169.254.169.254/2009-04-04/
Connecting to 169.254.169.254 (169.254.169.254:80)
- 0% | | 0 --:--:-- ETA1.0
2007-01-19
2007-03-01
2007-08-29
2007-10-10
2007-12-15
2008-02-01
2008-09-01
2009-04-04

This started with the move over to pastedeploy. This breaks most of the cloud init scripts so it needs to be fixed ASAP

Related branches

Changed in nova:
importance: Undecided → Critical
Revision history for this message
Thierry Carrez (ttx) wrote :

Looks like paste:urlmap needs full path components, since adding "/2009-04-04: ec2metadata" in nova-api.conf fixes it.

Changed in nova:
importance: Critical → High
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

Attached patch works around the issue, but duplicates the list of available API versions (also found in nova/api/ec2/__init__.py).

The right fix is probably to replace pastedeploy:urlmap by some smarter wsgi middleware.

Revision history for this message
Todd Willey (xtoddx) wrote :

urlmap should to matches on partial paths. I'll have a look.

Revision history for this message
Todd Willey (xtoddx) wrote :

clarification: urlmap should match on partial paths.

Todd Willey (xtoddx)
Changed in nova:
status: Confirmed → Fix Committed
assignee: nobody → Todd Willey (xtoddx)
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.1
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.