we have an OpenStack installation (not with juju) on MaaS managed baremetals. For some services we have virtual IPs managed by keepalived between multiple servers. MaaS manages the DNS entries for these IPs.

Our problem is, the dnsresources in MaaS get deleted when we reboot a server.

These are the logs for MaaS after a reboot:

2018-10-11 06:25:22 maasserver.region_controller: [info] Reloaded DNS configuration: 
     * ip 10.1.1.5 connected to server2 on bond2.100
     * ip 10.1.1.5 disconnected from server1 on bond2.100
     * ip 10.1.1.4 connected to server2 on bond2.100
     * ip 10.1.1.4 disconnected from server1 on bond2.100
     * ip 10.0.0.1 connected to server2 on bond0
     * ip 10.0.0.1 disconnected from server1 on bond0
...
2018-10-11 06:25:33 maasserver.region_controller: [info] Reloaded DNS configuration: 
     * zone dc.example.org removed resource @
     * ip 10.1.1.5 disconnected from server2 on bond2.100
     * ip 10.1.1.5 unlinked from resource @ on zone dc.example.org
     * ip 10.1.1.4 disconnected from server2 on bond2.100
     * zone dc.example.org removed resource 00-maas
     * zone dc.example.org removed resource rabbitmq
     * zone dc.example.org removed resource maas
     * zone dc.example.org removed resource alertmanager
     * zone dc.example.org removed resource grafana
     * zone dc.example.org removed resource kibana
     * zone dc.example.org removed resource prometheus
     * ip 10.0.0.1 disconnected from server2 on bond0
     * ip 10.0.0.1 unlinked from resource 00-maas on zone dc.example.org
     * ip 10.0.0.1 unlinked from resource rabbitmq on zone dc.example.org
     * ip 10.0.0.1 unlinked from resource maas on zone dc.example.org
     * ip 10.0.0.1 unlinked from resource grafana on zone dc.example.org
     * ip 10.0.0.1 unlinked from resource kibana on zone dc.example.org
     * ip 10.0.0.1 unlinked from resource alertmanager on zone dc.example.org
     * ip 10.0.0.1 unlinked from resource prometheus on zone dc.example.org

The IP 10.0.0.1 is from a reserved subnet, so not managed by MaaS. The IPs .4 and .5 are static.

From my understanding of the logs, MaaS notices that an IP has moved to another server. But why does it than delete dnsresources which are assigned to these IPs?

The dnsresources are A records.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.