[Openstack] Tenant name from within an instance

Davíð Örn Jóhannsson davidoj at siminn.is
Thu Feb 18 15:00:07 UTC 2016


can that be configured on a global scale or would that have to be done using heat templates or something like that??

________________________________
Frá: Chris Card <ctcard at hotmail.com>
Sent: 18. febrúar 2016 14:58
Til: Davíð Örn Jóhannsson; openstack at lists.openstack.org
Efni: RE: [Openstack] Tenant name from within an instance



________________________________
From: davidoj at siminn.is
To: openstack at lists.openstack.org
Date: Thu, 18 Feb 2016 14:38:00 +0000
Subject: [Openstack] Tenant name from within an instance

> I'm currently looking for ways to be able to retrieve information on what tenant a given openstack instance lives in from within that instance it self.



> 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.


I don't know a way using the meta-data server, but one way would be to get cloud-init to write a file when the instance is created.

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160218/68b2c336/attachment.html>


More information about the Openstack mailing list