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},
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 cloudinit/ cloudinit. go: cfg.SetAttr( "manage_ etc_hosts" , true) cloudinit/ cloudinit. go: cfg.UnsetAttr( "manage_ etc_hosts" ) cloudinit/ cloudinit_ test.go: map[string] interface{ }{"manage_ etc_hosts" : true},
cloudconfig/
cloudconfig/
cloudconfig/