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

Vishvananda Ishaya vishvananda at gmail.com
Tue May 15 23:11:09 UTC 2012


AFAIK there isn't a way to get the uuid from the metadata server in essex. We were also discussing that it might be valuable for the ec2 api to tag the uuid onto the instance, but that doesn't help for essex either.

Vish

On May 15, 2012, at 3:40 PM, Martin Packman wrote:

> 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
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp





More information about the Openstack mailing list