[Openstack] Tenant name from within an instance

Christian Berendt christian at berendt.io
Thu Feb 18 14:51:17 UTC 2016


On 02/18/2016 03:38 PM, Davíð Örn Jóhannsson wrote:
> This information is not available from
> http://169.254.169.254/latest/meta-data and setting up a nova client to
> access the api is not the way I want to go.

The name of a project is not available at the moment.

Maybe the ID of the project is sufficient?

https://github.com/openstack/nova/blob/master/nova/api/metadata/base.py#L343-L344

The project_id field is available since the Liberty release of Nova, you 
have to use the OpenStack metadata version 2015-10-15 to be able to see 
this field.

HTH, Christian.




More information about the Openstack mailing list