Nova-Docker:container lost the ip address withouy dhcp assignment ip if docker restart

Bug #1498395 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 restart (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
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d44db1600e9c leo_ubuntu "/usr/sbin/sshd -D" 18 hours ago Up 18 hours nova-3596b4ea-00d7-4dfa-89a7-a33400db6d63

4 restart the docker container
root@quasarucn1:~# docker restart d44db1600e9c

5 check the docker status
root@quasarucn1:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d44db1600e9c leo_ubuntu "/usr/sbin/sshd -D" 18 hours ago Up 18 hours nova-3596b4ea-00d7-4dfa-89a7-a33400db6d63

6 check the container ip
root@quasarucn1:~# docker exec -i -t d44db1600e9c /bin/bash
root@instance-00000153:/# ifconfig
root@instance-00000153:/#

Revision history for this message
Xiao Li Xu (xiao-li-xu) wrote :

change it to nova-docker

affects: neutron → nova-docker
Revision history for this message
zhangguoqing (474751729-o) wrote :

Yes, this is normal, when you exec 'nova restart container-id', nova-docker will do some other things --- setup the network information as well as VM. And you can see the source code at https://github.com/stackforge/nova-docker/blob/master/novadocker/virt/docker/driver.py in the function reboot about the lines 572.

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.