Comment 8 for bug 1828988

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Might be related to the fact that juju provisions machines with manage_etc_hosts set to True so any changes made by the charm to /etc/hosts will be overridden on reboot.

grep -RiP manage_etc_hosts
cloudconfig/cloudinit/cloudinit.go: cfg.SetAttr("manage_etc_hosts", true)
cloudconfig/cloudinit/cloudinit.go: cfg.UnsetAttr("manage_etc_hosts")
cloudconfig/cloudinit/cloudinit_test.go: map[string]interface{}{"manage_etc_hosts": true},