]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-osd: check container engine rc for pools
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 22 Jul 2019 20:58:40 +0000 (16:58 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 31 Jul 2019 18:07:41 +0000 (14:07 -0400)
commit36e18e20d140201c553239e0b51a12e51ebffcbf
tree3673d79c6b5c0925063f2ed39ed5a91dec0a61a7
parentd2ef85b615176eb112a16c3b858f6e8a3cc9f6a3
ceph-osd: check container engine rc for pools

When creating OpenStack pools, we only check if the return code from
the pool list command isn't 0 (ie: if it doesn't exist). In that case,
the return code will be 2. That's why the next condition is rc != 0 for
the pool creation.
But in containerized deployment, the return code could be different if
there's a failure on the container engine command (like container not
running). In that case, the return code could but either 1 (docker) or
125 (podman) so we should fail at this point and not in the next tasks.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1732157

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit d549fffdd24d21661b64b31bda20b4e8c6aa82b6)
roles/ceph-osd/tasks/openstack_config.yml