← Back to team overview

cloud-init-dev team mailing list archive

[Merge] lp:~philroche/cloud-init/trunk into lp:cloud-init

 

The proposal to merge lp:~philroche/cloud-init/trunk into lp:cloud-init has been updated.

Description changed to:

Removes trailing dot in metadata.google.internal GCE metadata lookup.

A bug was reported (lp:1581200) where if there is no DNS server configured
or it is not running then the metadata lookup on GCE will fail as it contains a
trailing dot 'metadata.google.internal.'. As there is no DNS configured or
running it will use the /etc/hosts file but the hosts file does not contain
an entry with the trailing dot.

One solution is to add an entry to the /etc/hosts file with the trailing dot
but according to the manpage, /etc/hosts entries must end with an alphanumeric
character and cannot end with a dot.

The trailing dot was added to avoid MIM by dns search but we should probably
assume the instance being started has no DNS and as such when querying
metadata should use a URL that will resolve using /etc/hosts.

Fixes bugs:

lp:1581200 Ubuntu cloud-init expects trailing dot on GCE metadata FQDN

For more details, see:
https://code.launchpad.net/~philroche/cloud-init/trunk/+merge/297158
-- 
Your team cloud init development team is requested to review the proposed merge of lp:~philroche/cloud-init/trunk into lp:cloud-init.


References