metadata service reports to support 1.0 but serves incorrect data

Bug #942868 reported by Ante Karamatić
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Triaged
Medium
Unassigned
pyjuju
Confirmed
High
Unassigned

Bug Description

When getting machine-id from metadata service:

# curl http://169.254.169.254/1.0/meta-data/instance-id
1.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

output is incorrect. What should happen (I guess) is:

# curl http://169.254.169.254/1.0/meta-data/instance-id
i-00000001

as show by:

# curl http://169.254.169.254/2009-04-04/meta-data/instance-id
i-00000001

Changed in juju:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Patrick Hetu (patrick-hetu) wrote :

I think you have the route instruction missing in the "[composite:metadata]" section of the nova's api-paste.ini configuration file:

[composite:metadata]
use = egg:Paste#urlmap
/: metaversions
/latest: meta
/1.0: meta <----------------
/2007-01-19: meta
/2007-03-01: meta
/2007-08-29: meta
/2007-10-10: meta
/2007-12-15: meta
/2008-02-01: meta
/2008-09-01: meta
/2009-04-04: meta

Revision history for this message
Roman Yepishev (rye) wrote :
James Troup (elmo)
tags: added: canonistack
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → Triaged
tags: added: low-hanging-fruit
tags: added: ec2
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.