Nova-Docker:container lost the ip address withouy dhcp assignment ip if docker kill / docker start

Bug #1498402 reported by gavin.nie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-docker
New
Undecided
Unassigned

Bug Description

OS:Ubuntu 14.04
openstack KILO with nova-docker

Problem:Nova-Docker:container lost the ip address if docker kill / docker start (DHCP assighend)

Steps:
1 Bring up the ubuntu kilo setup
2 Bring up the ubuntu docker setup
3 select one container
root@quasarucn1:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6fff17927b94 leo_ubuntu "/usr/sbin/sshd -D" About an hour ago Up 3 seconds nova-a2d1d62e-7fca-4ede-8ce6-98886b0c5036

4 Kill the docker container
root@quasarucn1:~# docker kill -s 6fff17927b94

5 check the docker status
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6fff17927b94 leo_ubuntu "/usr/sbin/sshd -D" About an hour ago Exited (137) 2 minutes ago nova-a2d1d62e-7fca-4ede-8ce6-98886b0c5036

6 then start the docker and check the status
root@quasarucn1:~# docker start 6fff17927b94
6fff17927b94

7 check the status
root@quasarucn1:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6fff17927b94 leo_ubuntu "/usr/sbin/sshd -D" About an hour ago Up 3 seconds nova-a2d1d62e-7fca-4ede-8ce6-98886b0c5036

8 check the container ip
root@quasarucn1:~# docker exec -i -t 6fff17927b94 /bin/bash
root@instance-00000154:/# ifconfig
ip lost and can not get the ip address again

Xiao Li Xu (xiao-li-xu)
affects: neutron → nova-docker
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.