<div dir="ltr">Hi All,<div><br></div><div>I'm on maas 2.1.3 using it for a juju openstack deploy.<br></div><div><br></div><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><br></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(socket.<wbr>gethostname())</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><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/<wbr>archives/maas-devel/2017-<wbr>February/002381.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><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><br></div><div>Patrizio<br></div><div><br></div><div><br><br><div class="m_-3102138065897566067gmail_signature"></div>
</div></div>