Hi All, i got no replies so i took a look into the code. When an IP address/hostname is added in a zone file in bind by MAAS i see provisioningserver/dns/actions.py calls bind_reload() which issues a execute_rndc_command() [defined in in provisioningserver/dns/config.py]
it would be nice to source a custom script to forward the event (i.e. reload/reconfig). Do you think it's possibile to implement in maas 2.2 Patrizio 2017-03-17 12:49 GMT+01:00 Patrizio Bassi <[email protected]>: > Hi All, > > I'm on maas 2.1.3 using it for a juju openstack deploy. > > I have an external dns providing name resolution for bare metal machines > and everything works fine. > 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. > > I could not deploy the openstack-telemetry charm because > Mar 13 08:13:41 juju-45a437-0-lxd-0 aodh-api[20910]: Traceback (most > recent call last): > Mar 13 08:13:41 juju-45a437-0-lxd-0 aodh-api[20910]: File > "/usr/bin/aodh-api", line 14, in <module> > Mar 13 08:13:41 juju-45a437-0-lxd-0 aodh-api[20910]: my_ip = > socket.gethostbyname(socket.gethostname()) > Mar 13 08:13:41 juju-45a437-0-lxd-0 aodh-api[20910]: socket.gaierror: > [Errno -2] Name or service not known > > 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. > > It looks something similar to https://lists.ubuntu.com/archi > ves/maas-devel/2017-February/002381.html > > 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?). > > I was looking at DHCP Snippets but i'm not sure it's the most proper way > (actually should be a bind trigger). > > Patrizio > > > >
-- Maas-devel mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/maas-devel
