"Cannot setup network: Cannot find any PID under container" displayed when launch container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-docker |
New
|
Undecided
|
Unassigned |
Bug Description
In my openstack-docker setup(kilo), I have one image named "leo_ubuntu_media", and that image is workable in my setup.
Based on this image, I neededt o add one script and make sure the script will be execuble when the container is up, so I created one dockerfile, and make one new image(called "ubuntu_traffic"). This image was workaed ok when I do "docker run ubuntu_traffic", but when I added it into the openstack glance, and try to lanunch container in openstack, the container could not be up, the error "{"message": "Build of instance d0a7b333-
Logs:
Create the image:
Create the image:
[root@46-37 temp(keystone_
# VERSION 3.0
# use the ubuntu base image provided by dotCloud
FROM leo_ubuntu_media
MAINTAINER Victor Coisne <email address hidden>
#Copy the script
ADD vm_traffic_start.sh /root/vm_
RUN chmod 777 /root/vm_
RUN ln -fs /bin/bash /bin/sh
#Execute the script
ENTRYPOINT /root/vm_
[root@46-37 temp(keystone_
Sending build context to Docker daemon 7.168 kB
Step 0 : FROM leo_ubuntu_media
---> 818d2afe9d31
Step 1 : MAINTAINER Victor Coisne <email address hidden>
---> Running in b0f20fa1a0c7
---> ac460e901843
Removing intermediate container b0f20fa1a0c7
Step 2 : ADD vm_traffic_start.sh /root/vm_
---> f415d5f65a3d
Removing intermediate container 77cb9f391be9
Step 3 : RUN chmod 777 /root/vm_
---> Running in e0e43a09aef3
---> 3550e4535450
Removing intermediate container e0e43a09aef3
Step 4 : RUN ln -fs /bin/bash /bin/sh
---> Running in e29ad22a6822
---> 5ad1e407f102
Removing intermediate container e29ad22a6822
Step 5 : ENTRYPOINT /root/vm_
---> Running in 184b0a6f85f1
---> 3a185c47dda4
Removing intermediate container 184b0a6f85f1
Successfully built 3a185c47dda4
Lanunch the container and errors:
[root@46-37 ~(keystone_admin)]# nova boot --flavor 2 --image ubuntu_traffic --availability-zone nova:46-40.ibm.com --nic net-id=
[root@46-37 ~(keystone_admin)]# nova show leo20
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | error |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2015-09-
| fault | {"message": "Build of instance d0a7b333-
| | filter_properties) |
| | File \"/usr/
| | instance_
| | ", "created": "2015-09-
| flavor | m1.small (2) |
| hostId | f24a900199c31bf
| id | d0a7b333-
I have had this issue before, but it turned out to be a networking issue, have a look at your networking status and logs to see if there is an issue there.