Comment 6 for bug 871966

Revision history for this message
Scott Moser (smoser) wrote : Re: [Bug 871966] Re: FQDN written to /etc/hosts causes problems for clustering systems

On Tue, 11 Oct 2011, Clint Byrum wrote:

> Excerpts from Scott Moser's message of Tue Oct 11 00:18:27 UTC 2011:
> > gethostbyname(hostname) is non-determinable.
> > there could be multiple responses. and indeterminable order.
> >
>
> Agreed, which is precisely why I believe cloud-init must leave the FQDN
> out of /etc/hosts if there is any response to this call.

That doesn't make any sense. Its non-determinable, its non-determinable
when cloud-init runs as well as later on.
When cloud-init ran to decide if there was a response to this call, it may
give a single value, or may give 4 values, or may give no response. That
may change later on when some other utility was asking.