tripleo-ansible/tripleo_ansible/roles/tripleo-container-rm
Jose Luis Franco Arza 8ee4416dfd Enhance docker check verifying its socket existence.
The overcloud nodes have podman emulated from the docker command
therefore the check for 'command -v docker' is not a valid check
anymore, as we'll obtain a false possitive. This can end up in
an uglier situation for the case of [0], as if we don't properly
identify that docker is not in the system we might end up removing
the podman containers we have just upgraded.

This patch checks the existence of the docker socket file to
make sure docker is not installed in the system. For podman
we still rely on 'command -v podman'.

[0] - https://github.com/openstack/tripleo-heat-templates/blob/master/deployment/cinder/cinder-api-container-puppet.yaml#L378-L386

Change-Id: I16f1df08ab049600d6139fe4ccf3a680360a3f21
2019-09-12 14:18:24 +02:00
..
defaults Import the tripleo-docker-rm role 2019-06-24 14:07:48 -05:00
meta Import tripleo-container-rm role 2019-06-24 14:23:26 -04:00
molecule Add molecule test for stopped container scenario 2019-07-11 17:00:34 +00:00
tasks Enhance docker check verifying its socket existence. 2019-09-12 14:18:24 +02:00