Comment 4 for bug 1850642

Revision history for this message
Scott Moser (smoser) wrote : Re: Cloud init unable to find the metadata service but can CURL it

un-marked as a duplicate.
cloud-init WARNed twice in this log.
a.) openstack local datasource failed to read metadata service (timed out)
b.) openstack network datasource worked, but failed to persisting instance-data.json. This is bug 1801364 I'm pretty sure.

I think the reason for 'a' is the fact that the dhcp lease gave an explicit
route to 169.254.169.254, but cloud-init doesn't know how to read that in its
EphemeralDhcp network. See:

+++++++++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++++++++
+-------+-----------------+----------------+-----------------+-----------+-------+
| Route | Destination | Gateway | Genmask | Interface | Flags |
+-------+-----------------+----------------+-----------------+-----------+-------+
| 0 | 0.0.0.0 | 136.156.91.254 | 0.0.0.0 | eth0 | UG |
| 1 | 136.156.90.0 | 0.0.0.0 | 255.255.254.0 | eth0 | U |
| 2 | 169.254.169.254 | 136.156.90.11 | 255.255.255.255 | eth0 | UGH |
+-------+-----------------+----------------+-----------------+-----------+-------+