<div dir="ltr">The last time I tried this, which was probably 18 months ago to be fair, there is no way for the VM to get it's own tenant name. You could pass it in with cloud-init if you want but its not in the metadata that I recall.<div><br></div><div>For Designate however I don't know why you'd want this. You want the format above for the DNS record, but you don't need it for the VM name. My VMs are called (for example): fred & bob and so Nova sees "fred" and "bob" but Designate has:</div><div><br></div><div><a href="http://fred.tenant-subdomain.foo.com">fred.tenant-subdomain.foo.com</a></div><div><a href="http://bob.tenant-subdomain.foo.com">bob.tenant-subdomain.foo.com</a></div><div><br></div><div>In other words, I don't think the name in nova and the DNS record need to match for this to work the way you want it to.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 10, 2016 at 11:36 AM, Jonathan Mills <span dir="ltr"><<a href="mailto:jonmills@gmail.com" target="_blank">jonmills@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What I would like to see in terms of the FQDNs of my VMs is something like this:<br>
<br>
%{hostname}.%{tenant-name}.<a href="http://example.com" rel="noreferrer" target="_blank">exa<wbr>mple.com</a><br>
<br>
Does anyone know the easiest way to make this possible? From my browsing, the tenant-name part doesn’t seem like a native capability. I had been wondering if achieving this was going to require a post-boot setting. For instance, using cloud-init to pull info from the metadata service to set the FQDN. But I don’t even see where the tenant name is part of the metadata. Then again, I’m not so familiar with these corners of OpenStack.<br>
<br>
In terms of DNS integration, if I could make Nova create the FQDNs I want, then I assume I could get Designate to do the right thing. But if I end up setting the VMs’ FQDNs as a post-boot function, then it seems like I would need a dynamic DNS update to happen….and probably not run Designate. Am I on the right path? What are others running?<br>
______________________________<wbr>_________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
</blockquote></div><br></div>