[Openstack] Cloud-init not pulling metadata when booting instances

Ricardo Carrillo Cruz ricardo.carrillo.cruz at gmail.com
Fri Jun 13 08:13:27 UTC 2014


Hi there

I installed a one node Icehouse cloud at home, with Neutron and GRE.
Everything is ok, except I can't ssh to ubuntu instances.
The problem is that cloud-init is unable to reach the metadata service,
thus the keypair is never injected into the instance.
This is the error:

<snip>

cloud-init start-local running: Fri, 13 Jun 2014 07:51:10 +0000. up 3.33 seconds
no instance data found in start-local
ci-info: lo    : 1 127.0.0.1       255.0.0.0       .
ci-info: eth0  : 1 192.168.0.21    255.255.255.0   fa:16:3e:41:82:7b
ci-info: route-0: 0.0.0.0         192.168.0.1     0.0.0.0         eth0   UG
ci-info: route-1: 192.168.0.0     0.0.0.0         255.255.255.0   eth0   U
cloud-init start running: Fri, 13 Jun 2014 07:51:10 +0000. up 3.85 seconds
2014-06-13 07:51:13,829 - util.py[WARNING]:
'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
[2/120s]: url error [[Errno 113] No route to host]
2014-06-13 07:51:16,829 - util.py[WARNING]:
'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
[5/120s]: url error [[Errno 113] No route to host]
2014-06-13 07:51:19,829 - util.py[WARNING]:
'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
[8/120s]: url error [[Errno 113] No route to host]
2014-06-13 07:51:22,829 - util.py[WARNING]:
'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
[11/120s]: url error [[Errno 113] No route to host]
2014-06-13 07:51:25,829 - util.py[WARNING]:
'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
[14/120s]: url error [[Errno 113] No route to host]

</snip>


I have set up metadata like this in nova and neutron:


<nova.conf snip>

[DEFAULT]

...

service_neutron_metadata_proxy = true
neutron_metadata_proxy_shared_secret = openstack

</nova.conf snip>


<metadata-agent.ini snip>

[DEFAULT]

...

# IP address used by Nova metadata server
nova_metadata_ip = controller

# TCP Port used by Nova metadata server
# nova_metadata_port = 8775

# When proxying metadata requests, Neutron signs the Instance-ID header with a
# shared secret to prevent spoofing.  You may select any string for a secret,
# but it must match here and in the configuration used by the Nova Metadata
# Server. NOTE: Nova uses a different key: neutron_metadata_proxy_shared_secret
metadata_proxy_shared_secret = openstack

</snip>


Is there anything else I miss in my configuration to get this working?

Any help is greatly appreciated.


Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140613/05de156b/attachment.html>


More information about the Openstack mailing list