Ask Your Question
0

havana docker, cannot create instance error

asked 2014-07-31 14:22:31 -0500

naveenkothamasu gravatar image

I am able to run the containers using docker. But when I tried to launch the same image using nova apis, it gives the following error. I believe there could be some problem with my local.config file especially the network configuration part. local.config. Any help?

keystone_authtoken]
auth_protocol=http

[[local|localrc]]
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron

FLOATING_RANGE=137.69.144.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth1
ADMIN_PASSWORD=123
DATABASE_PASSWORD=123
MYSQL_PASSWORD=123
SERVICE_PASSWORD=123
SERVICE_TOKEN=123
RABBIT_PASSWORD=123
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=1
LOG_COLOR=False
SYSLOG=True
SYSLOG_HOST=$HOST_IP
SYSLOG_PORT=516
KEYSTONE_TOKEN_FORMAT=UUID
SCREEN_LOGDIR=$DEST/logs/screen
VIRT_DRIVER=docker

n-cpu.log

2014-07-31 12:14:31.638 ERROR nova.compute.manager [req-4e2731bf-6a9e-404a-9d15-ffb783de817c admin demo] [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5] Error: Cannot create container
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5] Traceback (most recent call last):
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5]   File "/opt/stack/nova/nova/compute/manager.py", line 1044, in _build_instance
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5]     set_access_ip=set_access_ip)
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5]   File "/opt/stack/nova/nova/compute/manager.py", line 1427, in _spawn
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5]     LOG.exception(_('Instance failed to spawn'), instance=instance)
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5]   File "/opt/stack/nova/nova/compute/manager.py", line 1424, in _spawn
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5]     block_device_info)
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5]   File "/opt/stack/nova/nova/virt/docker/driver.py", line 309, in spawn
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5]     instance_id=instance['name'])
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5] InstanceDeployFailure: Cannot create container
2014-07-31 12:14:31.638 15709 TRACE nova.compute.manager [instance: c608eaaf-42ae-4039-8dfe-47e3bd5d41a5]
edit retag flag offensive close merge delete

1 answer

Sort by ┬╗ oldest newest most voted
0

answered 2014-08-06 13:27:53 -0500

naveenkothamasu gravatar image

updated 2014-08-06 13:28:12 -0500

Answering my own question to help others. I am not sure why the command (per the doc, https://wiki.openstack.org/wiki/Docker ) uploads the image and I can see in the glance image-list but docker fails to launch this image.

$ docker save samalba/hipache | glance image-create --is-public=True --container-format=docker --disk-format=raw --name samalba/hipache

I tagged the image and then used docker push as follows and I am able to launch the containers now. (5042 is the default docker registry port)

docker tag image_name <host-ip>:5042/image_name

docker push <host-ip>:5042/image_name

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: 2014-07-31 14:22:31 -0500

Seen: 249 times

Last updated: Aug 06 '14