docker list_instances race condition with inspect_container results in None responses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-docker |
Fix Committed
|
High
|
Erica Windisch |
Bug Description
The docker hypervisor plugin has a race condition during list_instances where the instance list is constructed by creating a listing of containers, then extracting instance names from the result of inspecting that container. It may happen that the between fetching the list of running containers and inspecting those containers, that those containers may be deleted.
If a container is deleted after fetching the container list, the nova.virt.
Furthermore, list_instances takes an 'inspect' kwarg specific to Docker (this should move to a private method, but that is another bug)... in that case, the results of list_instances will contain None elements which are expected to be dictionaries.
affects: | nova → nova-docker |
Changed in nova-docker: | |
status: | In Progress → Fix Committed |
https:/ /review. openstack. org/#/c/ 78726/