<div dir="ltr">Hi Patrizio,<div><div><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I have an external dns providing name resolution for bare metal machines and everything works fine.</div><div>Basically we have a subnet 10.10.xxx.xxx/16 allocated where first addresses are statically registered in the dns server, while the others are "assigned" (meaning, without any hostname association) to maas so it can dynamically use them.</div></div></blockquote><div><br></div><div>Does this mean that your machines in MAAS share the same hostname as those in your upstream DNS server? Are you configuring MAAS DNS to point to the upstream DNS (Under the Settings page). This would allow MAAS to use your upstream DNS server to resolve for domains names MAAS doesn't know about.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>I could not deploy the openstack-telemetry charm because</div><div><div>Mar 13 08:13:41 juju-45a437-0-lxd-0 aodh-api[20910]: Traceback (most recent call last):</div><div>Mar 13 08:13:41 juju-45a437-0-lxd-0 aodh-api[20910]: File "/usr/bin/aodh-api", line 14, in <module></div><div>Mar 13 08:13:41 juju-45a437-0-lxd-0 aodh-api[20910]: my_ip = socket.gethostbyname(<a href="http://socket.ge" target="_blank">socket.ge</a><wbr>thostname())</div><div>Mar 13 08:13:41 juju-45a437-0-lxd-0 aodh-api[20910]: socket.gaierror: [Errno -2] Name or service not known</div></div><div><br></div><div>infact the LXD containers allocated by juju don't have a dns entry. Beside the need to fix the juju charm somehow it spots a problem: how to register a container ip/hostname in a upstream dns.</div></div></blockquote><div><br></div><div>What version of Juju are you using? Juju should be registering the container in MAAS, and requesting an static IP address, that will trigger the creation of a DNS entry and a hostmap. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>It looks something similar to <a href="https://lists.ubuntu.com/archives/maas-devel/2017-February/002381.html" target="_blank">https://lists.ubuntu.com/archi<wbr>ves/maas-devel/2017-February/0<wbr>02381.html</a></div><div><br></div><div>Question is: can maas trigger a custom script (actually a remote rest api curl) when a machine or a container is created (event of new dns entry) and when it gets destroyed (so we can unregister the hostname?). </div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>I was looking at DHCP Snippets but i'm not sure it's the most proper way (actually should be a bind trigger).</div></div></blockquote><div><br></div><div>MAAS can't trigger a custom script when a machine/container is created, however, you can use DHCP snippets to include configuration to trigger a script when a new hostmap / lease is created. That said, although discouraged, you could also potentially use DHCP snippets to do DDNS. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class="gmail-m_-1701893001309568197m_8173282467454893433HOEnZb"><font color="#888888"><div><br></div><div>Patrizio<br></div><div><br></div><div><br><br><div class="gmail-m_-1701893001309568197m_8173282467454893433m_-817901971828881904m_-3102138065897566067gmail_signature"></div>
</div></font></span></div>
<br>--<br>
Maas-devel mailing list<br>
<a href="mailto:Maas-devel@lists.ubuntu.com" target="_blank">Maas-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/maas-devel" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/maas-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_-1701893001309568197m_8173282467454893433gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Andres Rodriguez<div>Engineering Manager, MAAS</div><div>Canonical USA, Inc.</div></div></div></div></div></div></div>
</div></div></div>