[Openstack] Oz for CentOS image not work for key inject
Ritesh Nanda
riteshnanda09 at gmail.com
Wed Jan 8 10:02:37 UTC 2014
Hello,
You need to check your metadata service is running. In case of nuetron you
need to enable nova metadata service and do some configuration to make it
act as proxy.
Check this out
To allow virtual machines to access the Compute metadata information, the
Networking metadata agent must be enabled and configured. The agent will
act as a proxy for the Compute metadata service.
On the controller, edit the /etc/nova/nova.conf file to define a secret key
that will be shared between the Compute Service and the Networking metadata
agent.
Add to the [DEFAULT] section:
[image: Select Text]
1
2
3
[DEFAULT]
neutron_metadata_proxy_shared_secret = METADATA_PASS
service_neutron_metadata_proxy = true
Restart the nova-api service:
# service nova-api restart
http://docs.openstack.org/havana/install-guide/install/apt/content/neutron-install.dedicated-network-node.html
Regards,
Ritesh
On Wed, Jan 8, 2014 at 2:31 PM, Shake Chen <shake.chen at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
--
* With Regards *
* Ritesh Nanda*
<http://www.ericsson.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140108/7ced5890/attachment.html>
More information about the Openstack
mailing list