docker virt driver does not stop containers if spawn fails to setup network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Guangya Liu (Jay Lau) |
Bug Description
Using docker virt driver (i.e. compute_driver = docker.DockerDriver in /etc/nova/
A snippet from docker virt driver's spawn() method:
try:
except Exception as e:
msg = _('Cannot setup network: {0}')
raise exception.
As shown above, the docker container is started and then networking is attempted -- if the _setup_network() call fails, and exception is raised but the docker container is left running... I had this happen to me and after the _setup_network() error I issued a "docker ps" command -- my container was still running until I stopped it manually with "docker stop CID".
The result of the above is container sprawl.
tags: | added: docker |
Changed in nova: | |
milestone: | none → icehouse-3 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-3 → 2014.1 |
I also encounter this, will provide a patch later.