failed to spawn a docker instance on kilo ubuntu 14.04

asked 2015-10-14 11:32:57 -0500

alan gravatar image

updated 2015-10-15 13:05:09 -0500

dbaxps gravatar image

I am using openstack kilo docker setup with ubuntu 14.04, I failed to spawn a docker instance after docker is installed. can anyone help to figure out the issue?

nova boot --flavor m1.small --image 36f6cb95-ff36-48e4-96ea-804a209cde90  --availability-zone nova:compute1 --nic net-id=298c82ad-0c63-461f-bb7e-11a6ee60c6e9 docker13

docker driver:
pip install -e git+https://github.com/stackforge/nova-docker#egg=novadocker

docker version:

root@compute1:~# docker version
Client:
 Version:      1.8.2
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   0a8c2e3
 Built:        Wed Oct  7 17:48:28 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.8.2
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   0a8c2e3
 Built:        Wed Oct  7 17:48:28 UTC 2015
 OS/Arch:      linux/amd64

root@controller:/var/log/nova# nova list

+--------------------------------------+----------------+--------+------------+-------------+---------------------+
| ID                                   | Name           | Status | Task State | Power State | Networks            |
+--------------------------------------+----------------+--------+------------+-------------+---------------------+
| 73e0cd3e-dbfc-4ccc-938e-bff885d2a8bf | 124            | ERROR  | -          | NOSTATE     | N20=20.20.20.7      |
| 67b4a284-001e-4747-b5f6-c5c1b32107f6 | 23             | ERROR  | -          | NOSTATE     | N20=20.20.20.6      |
| e1240275-96ce-4afa-9d93-c92b836a8740 | demo-instance1 | ERROR  | spawning   | NOSTATE     |                     |
| 73988e91-a19a-4e86-bda4-08c7930c27a5 | demo-instance2 | ACTIVE | -          | Running     | demo-net=10.10.10.3 |
| db4cd9e9-d4dc-494c-b980-8a3ef8da0221 | demo-instance3 | ACTIVE | -          | NOSTATE     | demo-net=10.10.10.4 |
| bd9cbef1-023f-4597-8b81-b1b7da01188d | docker12       | ERROR  | -          | NOSTATE     | data1=1.0.1.29      |
| 3bdd685f-632a-4148-9479-65c6ad6623f4 | docker13       | ERROR  | -          | NOSTATE     | data1=1.0.1.30      |
| a55e6256-3a9e-4760-b034-393cf381851b | vm3            | ACTIVE | -          | Running     | N20=20.20.20.3      |
| cf142df8-11b7-457f-ac16-43497d55f29b | vm_test        | ERROR  | spawning   | NOSTATE     | N20=20.20.20.5      |
| 1caf1225-83c7-4d32-819b-d86949c9a1d4 | vmy            | ERROR  | -          | NOSTATE     | N20=20.20.20.4      |


2015-10-14 10:01:26.152 74657 WARNING novadocker.virt.docker.driver [req-c94420e1-6e24-4665-bf2e-09ea33efe0d5 a096ccd6bbf2408ab248192abe320ae3 c4fe6c8daa79423788cd8516e63774c3 - - -] [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4] Cannot setup network: Cannot find any PID under container "5a2238d43c713a2928e1b5bc2c651c404250d732af64b43115992f4b13d51bde"
2015-10-14 10:01:26.152 74657 TRACE novadocker.virt.docker.driver [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4] Traceback (most recent call last):
2015-10-14 10:01:26.152 74657 TRACE novadocker.virt.docker.driver [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4]   File "/etc/nova/src/novadocker/novadocker/virt/docker/driver.py", line 452, in _start_container
2015-10-14 10:01:26.152 74657 TRACE novadocker.virt.docker.driver [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4]     self._attach_vifs(instance, network_info)
2015-10-14 10:01:26.152 74657 TRACE novadocker.virt.docker.driver [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4]   File "/etc/nova/src/novadocker/novadocker/virt/docker/driver.py", line 236, in _attach_vifs
2015-10-14 10:01:26.152 74657 TRACE novadocker.virt.docker.driver [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4]     raise RuntimeError(msg.format(container_id))
2015-10-14 10:01:26.152 74657 TRACE novadocker.virt.docker.driver [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4] RuntimeError: Cannot find any PID under container "5a2238d43c713a2928e1b5bc2c651c404250d732af64b43115992f4b13d51bde"
2015-10-14 10:01:26.152 74657 TRACE novadocker.virt.docker.driver [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4]
2015-10-14 10:01:26.277 74657 ERROR nova.compute.manager [req-c94420e1-6e24-4665-bf2e-09ea33efe0d5 a096ccd6bbf2408ab248192abe320ae3 c4fe6c8daa79423788cd8516e63774c3 - - -] [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4] Instance failed to spawn
2015-10-14 10:01:26.277 74657 TRACE nova.compute.manager [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4] Traceback (most recent call last):
2015-10-14 10:01:26.277 74657 TRACE nova.compute.manager [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2461, in _build_resources
2015-10-14 10:01:26.277 74657 TRACE nova.compute.manager [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4]     yield resources
2015-10-14 10:01:26.277 74657 TRACE nova.compute.manager [instance: 3bdd685f-632a-4148-9479-65c6ad6623f4]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2333, in _build_and_run_instance
2015-10-14 10:01:26.277 74657 ...
(more)
edit retag flag offensive close merge delete