[Openstack] Oz for CentOS image not work for key inject

Shake Chen shake.chen at gmail.com
Wed Jan 8 09:01:05 UTC 2014


Hi

Now I use RDO deploy Openstack Havana, use GRE network.

I use Ubuntu image, work well,

but I according to the
http://docs.openstack.org/grizzly/openstack-image/content/ch_creating_images_automatically.html

use Oz create centOS6.4 image, include cloud init.

when create instance use the image, the log show

Rebuilding /boot/initrd-2.6.32-431.3.1.el6.x86_64kdump.img
Starting kdump:[  OK  ]
Starting cloud-init: ci-info: lo    : 1 127.0.0.1       255.0.0.0       .
ci-info: eth0  : 1 10.10.10.4      255.255.255.0   fa:16:3e:50:bf:91
ci-info: route-0: 10.10.10.0      0.0.0.0         255.255.255.0   eth0   U
ci-info: route-1: 169.254.0.0     0.0.0.0         255.255.0.0     eth0   U
ci-info: route-2: 0.0.0.0         10.10.10.1      0.0.0.0         eth0   UG
cloud-init start running: Wed, 08 Jan 2014 07:44:22 +0000. up 24.15 seconds
2014-01-08 02:44:25,861 - DataSourceEc2.py[WARNING]:
'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
[3/120s]: url error [[Errno 113] No route to host]

Now I can use root user login vm, check the router

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.10.10.0      *               255.255.255.0   U     0      0        0 eth0
link-local      *               255.255.0.0     U     1002   0        0 eth0
default         10.10.10.1      0.0.0.0         UG    0      0        0 eth0

but I can not access 169.254.169.254

# curl -f http://169.254.169.254/openstack
curl: (7) couldn't connect to host

the image have installed cloud init.

# rpm -qa | grep cloud-init
cloud-init-0.6.3-0.12.bzr532.el6.noarch







-- 
Shake Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140108/8ab4e9a6/attachment.html>


More information about the Openstack mailing list