Ask Your Question
1

Creating Ubuntu image with diskimage-builder causing metadata error at the boot time

asked 2015-04-08 04:15:57 -0500

ogzy gravatar image

I am trying to build an Ubuntu image with murano-agent and Docker elements. Somehow the regular cloud image at the Ubuntu site works without errors on my devstack though when i build the custom image with murano-agent and Docker, i get http://169.254.269..254 connection errors.

Here is what i did

$ export GITDIR=~/git
$ mkdir -p $GITDIR
$ cd $GITDIR
$ git clone https://github.com/stackforge/murano
$ git clone https://github.com/stachforge/murano-agent
$ git clone https://github.com/openstack/diskimage-builder
$ cd $GITDIR/diskimage-builder
$ git fetch https://review.openstack.org/openstack/diskimage-builder refs/changes/02/168002/2 && git checkout FETCH_HEAD
$ sudo apt-get install qemu-utils curl python-tox
$ export ELEMENTS_PATH=$GITDIR/murano/contrib/elements:$GITDIR/murano-agent/contrib/elements
$ cd $GITDIR/diskimage-builder
$ tox -e venv -- disk-image-create -a amd64 vm ubuntu docker murano-agent -o ../murano-agent.qcow2

and here is the nova console-log part

ci-info: +-------+-------------+----------+---------------+-----------+-------+
ci-info: | Route | Destination | Gateway  |    Genmask    | Interface | Flags |
ci-info: +-------+-------------+----------+---------------+-----------+-------+
ci-info: |   0   |   0.0.0.0   | 10.0.0.1 |    0.0.0.0    |    eth0   |   UG  |
ci-info: |   1   |   10.0.0.0  | 0.0.0.0  | 255.255.255.0 |    eth0   |   U   |
ci-info: +-------+-------------+----------+---------------+-----------+-------+
2015-04-08 08:55:33,834 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [50/120s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7fb5873ef550>, 'Connection to 169.254.169.254 timed out. (connect timeout=50.0)')]
2015-04-08 08:56:25,067 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [102/120s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7fb5873b2e50>, 'Connection to 169.254.169.254 timed out. (connect timeout=50.0)')]
2015-04-08 08:56:42,137 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [119/120s]: request error [(<urllib3.connectionpool.HTTPConnectionPool object at 0x7fb5873ef410>, 'Connection to 169.254.169.254 timed out. (connect timeout=16.0)')]
2015-04-08 08:56:43,148 - DataSourceEc2.py[CRITICAL]: Giving up on md from ['http://169.254.169.254/2009-04-04/meta-data/instance-id'] after 120 second

Any idea what can be the problem?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-04-08 23:09:46 -0500

RHK gravatar image
edit flag offensive delete link more
0

answered 2015-04-08 09:26:24 -0500

Have you reviewed this document ? http://docs.openstack.org/image-guide...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-04-08 04:15:57 -0500

Seen: 382 times

Last updated: Apr 08 '15