While upgrading Newton to Ocata.
kolla_toolbox and nova_libvirt are not recreated.
I reproduced this behaviour in all upgrade attempts with both centos binary and source.
Instead of recreated are removed and fails.
This is a hard issue because nova_libvirt is not present until the next upgrade attempt.
Errors:
TASK [common : Starting kolla-toolbox container] *******************************
fatal: [localhost]: FAILED! => {"changed": true, "failed": true, "msg": "'Traceback (most recent call last):\\n File \"/tmp/ansible_Xixy18/ansible_module_kolla_docker.py\", line 774, in main\\n result = bool(getattr(dw, module.params.get(\\'action\\'))())\\n File \"/tmp/ansible_Xixy18/ansible_module_kolla_docker.py\", line 592, in start_container\\n self.remove_container()\\n File \"/tmp/ansible_Xixy18/ansible_module_kolla_docker.py\", line 480, in remove_container\\n force=True\\n File \"/usr/lib/python2.7/site-packages/docker/utils/decorators.py\", line 21, in wrapped\\n return f(self, resource_id, *args, **kwargs)\\n File \"/usr/lib/python2.7/site-packages/docker/api/container.py\", line 278, in remove_container\\n self._raise_for_status(res)\\n File \"/usr/lib/python2.7/site-packages/docker/client.py\", line 174, in _raise_for_status\\n raise errors.APIError(e, response, explanation=explanation)\\nAPIError: 500 Server Error: Internal Server Error (\"{\"message\":\"Unable to remove filesystem for 0a45bbf35052607f252fd6d5ec21017086544432d5b78351632b9a42f90d6313: remove /var/lib/docker/containers/0a45bbf35052607f252fd6d5ec21017086544432d5b78351632b9a42f90d6313/shm: device or resource busy\"}\")\\n'"}
RUNNING HANDLER [nova : Restart nova-libvirt container] ************************
fatal: [localhost]: FAILED! => {"changed": true, "failed": true, "msg": "'Traceback (most recent call last):\\n File \"/tmp/ansible_M3Oedo/ansible_module_kolla_docker.py\", line 774, in main\\n result = bool(getattr(dw, module.params.get(\\'action\\'))())\\n File \"/tmp/ansible_M3Oedo/ansible_module_kolla_docker.py\", line 581, in recreate_or_restart_container\\n self.remove_container()\\n File \"/tmp/ansible_M3Oedo/ansible_module_kolla_docker.py\", line 480, in remove_container\\n force=True\\n File \"/usr/lib/python2.7/site-packages/docker/utils/decorators.py\", line 21, in wrapped\\n return f(self, resource_id, *args, **kwargs)\\n File \"/usr/lib/python2.7/site-packages/docker/api/container.py\", line 278, in remove_container\\n self._raise_for_status(res)\\n File \"/usr/lib/python2.7/site-packages/docker/client.py\", line 174, in _raise_for_status\\n raise errors.APIError(e, response, explanation=explanation)\\nAPIError: 500 Server Error: Internal Server Error (\"{\"message\":\"Unable to remove filesystem for cb03dca6fd61086a321b99646f26a31b6d79cfec6a10a4155fb4ef21a35a4014: remove /var/lib/docker/containers/cb03dca6fd61086a321b99646f26a31b6d79cfec6a10a4155fb4ef21a35a4014/shm: device or resource busy\"}\")\\n'"}
which docker-engine are u using?
i saw this in docker 1.13. but docker 1.12.x is OK.
I guess there are some bug in docker 1.13. shm file is not release by docker or container.