Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

havana docker, cannot create instance error

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]