Seen this failure today:
*16:16:05* Stopping and removing all running containers*16:16:05*
Stopping and removing name=unnamed,
id=b1d61f20b7fd4746ed83f308ab292b1d53a02de2271965268890b35c1344da04*16:16:40*
Stopping and removing name=unnamed,
id=22a8ace28d96e469bfc8177ee6afb52d6ca7b4578c27475c92862465253caa2b*16:17:16*
Stopping and removing name=unnamed,
id=5bab561632b6c179446df56dd3aadf10402989047564202f86c6b3989551820c*16:17:28*
Stopping and removing name=unnamed,
id=4c04d87ec8b55a774c9e6558a814b944d665b4c0984d6677972285209c5eea7c*16:17:41*
Stopping and removing name=unnamed,
id=5b40e3237c00cb56897b75fbac500d22b81e53894683ff1a872e4f9e4a48fc1d*16:17:41*
Traceback (most recent call last):*16:17:41* File
"/home/jenkins/workspace/ovirt-imageio_4.2_check-patch-el7-x86_64/jenkins/scripts/docker_cleanup.py",
line 290, in <module>*16:17:41* main()*16:17:41* File
"/home/jenkins/workspace/ovirt-imageio_4.2_check-patch-el7-x86_64/jenkins/scripts/docker_cleanup.py",
line 34, in main*16:17:41*
stop_all_running_containers(client)*16:17:41* File
"/home/jenkins/workspace/ovirt-imageio_4.2_check-patch-el7-x86_64/jenkins/scripts/docker_cleanup.py",
line 125, in stop_all_running_containers*16:17:41*
_remove_container(client, container)*16:17:41* File
"/home/jenkins/workspace/ovirt-imageio_4.2_check-patch-el7-x86_64/jenkins/scripts/docker_cleanup.py",
line 152, in _remove_container*16:17:41*
client.stop(container)*16:17:41* File
"/usr/lib/python2.7/site-packages/docker/utils/decorators.py", line
21, in wrapped*16:17:41* return f(self, resource_id, *args,
**kwargs)*16:17:41* File
"/usr/lib/python2.7/site-packages/docker/api/container.py", line 403,
in stop*16:17:42* self._raise_for_status(res)*16:17:42* File
"/usr/lib/python2.7/site-packages/docker/client.py", line 173, in
_raise_for_status*16:17:42* raise errors.NotFound(e, response,
explanation=explanation)*16:17:42* docker.errors.NotFound: 404 Client
Error: Not Found ("{"message":"No such container:
5b40e3237c00cb56897b75fbac500d22b81e53894683ff1a872e4f9e4a48fc1d"}")
Looks like we need to handle docker.errors.NotFound - it is expected error.
https://jenkins.ovirt.org/job/ovirt-imageio_4.2_check-patch-el7-x86_64/55...
Nir