[Openstack] [Nova] Server UUID from metadata service?

Martin Packman martin.packman at canonical.com
Tue May 15 22:40:17 UTC 2012


For juju, I need a snippet of shell that cloud-init can use to get the
server id on startup. For the ec2 provider, the following is used:

    $(curl http://169.254.169.254/1.0/meta-data/instance-id)

Is there any way of getting the server's uuid rather than the ec2
style i-08x version? Requests against the openstack api with the
integer form work, but not for comparing id values. Using the api to
resolve the integer to a uuid would require reauthenticating on the
instance.

There was some discussion about exposing openstack specific values via
the metadata service as well for folsom, but is there a method that
would work with essex?

Martin




More information about the Openstack mailing list