Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cannot setup network: Cannot find any PID under container

Hi,

I am using nova-docker to run docker containers from Openstack. Some of my containers are not able to setup network and they give this error: Cannot setup network: Cannot find any PID under container

I have already tried to set tty:True on the driver.py and it still fails. When I fire up those docker by using "docker run -it --net bridge ..." everything works fine. I guess that there is a problem assigning the correct network on nova-docker.

Thanks in advance,

2016-02-22 10:22:34.400 5146 WARNING novadocker.virt.docker.driver [req-c29f063d-f54b-44d1-b608-82face013275 bdc8aedaf84b4ed8a8d2659928a3d0af 3407b066d1f542668f70715d5597a680 - - -] [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] Cannot setup network: Cannot find any PID under container "79520cf58bfad8770399b86844513369ae42b7e33b100245f45101df1905ee7a" 2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] Traceback (most recent call last): 2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 406, in _start_container 2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] self._attach_vifs(instance, network_info) 2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 214, in _attach_vifs 2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] raise RuntimeError(msg.format(container_id)) 2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] RuntimeError: Cannot find any PID under container "79520cf58bfad8770399b86844513369ae42b7e33b100245f45101df1905ee7a" 2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] 2016-02-22 10:22:34.421 5146 ERROR nova.compute.manager [req-c29f063d-f54b-44d1-b608-82face013275 bdc8aedaf84b4ed8a8d2659928a3d0af 3407b066d1f542668f70715d5597a680 - - -] [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] Instance failed to spawn 2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] Traceback (most recent call last): 2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2473, in _build_resources 2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] yield resources 2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2345, in _build_and_run_instance 2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] block_device_info=block_device_info) 2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 449, in spawn 2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] self._start_container(container_id, instance, network_info) 2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 414, in _start_container 2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] instance_id=instance['name']) 2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] InstanceDeployFailure: Cannot setup network: Cannot find any PID under container "79520cf58bfad8770399b86844513369ae42b7e33b100245f45101df1905ee7a

Cannot setup network: Cannot find any PID under container

Hi,

I am using nova-docker to run docker containers from Openstack. Some of my containers are not able to setup network and they give this error: Cannot setup network: Cannot find any PID under container

I have already tried to set tty:True on the driver.py and it still fails. When I fire up those docker by using "docker run -it --net bridge ..." everything works fine. I guess that there is a problem assigning the correct network on nova-docker.

Thanks in advance,

2016-02-22 10:22:34.400 5146 WARNING novadocker.virt.docker.driver [req-c29f063d-f54b-44d1-b608-82face013275 bdc8aedaf84b4ed8a8d2659928a3d0af 3407b066d1f542668f70715d5597a680 - - -] [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] Cannot setup network: Cannot find any PID under container "79520cf58bfad8770399b86844513369ae42b7e33b100245f45101df1905ee7a"
2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] Traceback (most recent call last):
2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 406, in _start_container
2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]     self._attach_vifs(instance, network_info)
2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 214, in _attach_vifs
2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]     raise RuntimeError(msg.format(container_id))
2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] RuntimeError: Cannot find any PID under container "79520cf58bfad8770399b86844513369ae42b7e33b100245f45101df1905ee7a"
2016-02-22 10:22:34.400 5146 TRACE novadocker.virt.docker.driver [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] 
2016-02-22 10:22:34.421 5146 ERROR nova.compute.manager [req-c29f063d-f54b-44d1-b608-82face013275 bdc8aedaf84b4ed8a8d2659928a3d0af 3407b066d1f542668f70715d5597a680 - - -] [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] Instance failed to spawn
2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] Traceback (most recent call last):
2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2473, in _build_resources
2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]     yield resources
2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2345, in _build_and_run_instance
2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]     block_device_info=block_device_info)
2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 449, in spawn
2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]     self._start_container(container_id, instance, network_info)
2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]   File "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py", line 414, in _start_container
2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6]     instance_id=instance['name'])
2016-02-22 10:22:34.421 5146 TRACE nova.compute.manager [instance: f0c9868f-3753-4ba7-b8ad-dc5e8e728bc6] InstanceDeployFailure: Cannot setup network: Cannot find any PID under container "79520cf58bfad8770399b86844513369ae42b7e33b100245f45101df1905ee7a

"79520cf58bfad8770399b86844513369ae42b7e33b100245f45101df1905ee7a