← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1498402] [NEW] Nova-Docker:container lost the ip address withouy dhcp assignment ip if docker kill / docker start

 

Public bug reported:

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

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1498402

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

Status in neutron:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1498402/+subscriptions


Follow ups