<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>​I'm using masterless puppet recipes within the project and they instances are spun up with heat templates<br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Frá:</b> gustavo panizzo (gfa) <gfa@zumbi.com.ar><br>
<b>Sent:</b> 18. febrúar 2016 15:32<br>
<b>Til:</b> Davíð Örn Jóhannsson; Mohammed Naser<br>
<b>Afrit:</b> openstack@lists.openstack.org<br>
<b>Efni:</b> Re: [Openstack] Tenant name from within an instance</font>
<div> </div>
</div>
<div>If you are using automation outside the instance (for example to create the instance) you can pass arbitrary metadata to the instance<br>
<br>
Check nova meta and nova boot --meta <br>
<br>
<div class="gmail_quote">On February 18, 2016 10:56:57 PM GMT+08:00, "Davíð Örn Jóhannsson" <davidoj@siminn.is> wrote:
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<pre class="k9mail">In order to access the API, I'd already have to know the Tenant name. <br><br>This is for automation purposes where I need to be able to run scripts with unique parameters/name per each tenant.<br><br><hr><br>Frá: Mohammed Naser <mnaser@vexxhost.com><br>Sent: 18. febrúar 2016 14:53<br>Til: Davíð Örn Jóhannsson<br>Afrit: openstack@lists.openstack.org<br>Efni: Re: [Openstack] Tenant name from within an instance<br><br>Hey,<br><br>I don’t think there is an alternative, you will need to make an API<br>call to get the name.<br><br>The Nova API doesn’t know anything about tenant/project names, it only<br>works with IDs anyways.<br><br>Mohammed<br><br>On Thu, Feb 18, 2016 at 9:38 AM, Davíð Örn Jóhannsson <davidoj@siminn.is> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 1ex 0.8ex; border-left:1px solid #729fcf; padding-left:1ex"> I'm currently looking for ways to be able to
retrieve information on what<br> tenant a given openstack instance lives in from within that instance it<br> self.<br><br><br> This information is not available from<br> <a href="http://169.254.169.254/latest/meta-data">http://169.254.169.254/latest/meta-data</a> and setting up a nova client to<br> access the api is not the way I want to go.<br><br><br><hr><br> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br> Post to     : openstack@lists.openstack.org<br> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></blockquote><br><br><hr><br>Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>Post to     : openstack@lists.openstack.org<br>Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br></pre>
</blockquote>
</div>
<br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</div>
</div>
</body>
</html>