[Openstack] How to create OpenStack debian wheezy image?

Roman Gorodeckij holms at holms.lt
Sat Aug 24 16:18:51 UTC 2013


Hello,

I'm slightly confused with image creating. My intension is to make it work with cloud-init.

From this blog, you can see that there's 3 packages needed to make distro function correctly under OpenStack control.
http://julien.danjou.info/blog/2013/cloud-init-utils-debian

These packages appears to be only exists in: sid, jessy and wheezy-backports repos.

I had no luck with wheezy-backports due to dependency version conflict.
not intended to go with unstable.

there's no package called "cloud-tools" in jessy only "cloud-init" and "cloud-initiramfs-growroot" are in there.
So i've installed those two, added image to glance, started instance, and I've got this error in loop..

ur_helper.py[WARNING]: Calling 'http://10.0.2.2//latest/meta-data/instance-id' failed [24/120s]: request error [HTTPConnectionPool(host='10.0.2.2', port=80): Max tretries exceeded with url: //latest/meta-data/instance-id (Caused by <class 'socket.error'>: [Errno 101] Network is unreachable)]

After some time it quits the loop and i'm able to loging, eth0 shows no ip address, only ipv6.. 

I've on grizzly, with help of RDO, on centos distro.

Network interfaces on host:

[root at gvb ~(keystone_admin)]# ifconfig | grep addr
br100     Link encap:Ethernet  HWaddr FE:16:3E:CB:86:3C
          inet addr:192.168.32.1  Bcast:192.168.35.255  Mask:255.255.252.0
          inet6 addr: fe80::e81d:20ff:fe7b:539e/64 Scope:Link
eth0      Link encap:Ethernet  HWaddr 00:26:55:1A:B6:8C
          inet addr:31.193.199.45  Bcast:31.193.199.255  Mask:255.255.255.0
          inet6 addr: fe80::226:55ff:fe1a:b68c/64 Scope:Link
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
virbr0    Link encap:Ethernet  HWaddr 52:54:00:2D:74:00
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
vnet0     Link encap:Ethernet  HWaddr FE:16:3E:CB:86:3C
          inet6 addr: fe80::fc16:3eff:fecb:863c/64 Scope:Link


My purpose that openstack would be able to resize instance partition, when specifying flavor during first boot.



Roman Gorodeckij
Unix Engineer
+37065599949
holms at holms.lt







More information about the Openstack mailing list