On 10/14/19 7:54 PM, Bastian Blank wrote: > On Mon, Oct 14, 2019 at 05:47:04PM +0200, Thomas Goirand wrote: >> The /etc/hosts isn't getting updated by cloud-init. >> Normally, the hostname of the VM should appear there >> after boot. > > Please explain what the /etc/hosts update fixes. All the environments > do DNS for exactly this name. > > Bastian
This isn't DNS related. Here, cloud-init must right the VM hostname in /etc/hosts (using 127.0.1.1) so that it is able to resolve itself, even when there's no outbound connectivity (and therefore, no DNS access). The OpenStack image has been behaving like this since the beginning, I see no valid reason why we would change the default behavior. Thomas Goirand (zigo)