]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
cephadm-adopt: make the playbook idempotent
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 20 Jan 2021 22:39:44 +0000 (17:39 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 18 Oct 2021 16:38:47 +0000 (18:38 +0200)
commit864acaae10ef476fb19be27061eb6d44d6cca70b
treeeef72767f419af5dc04c3cdb545344398e2766d1
parent360cfb156d40698bfd4e4cc4ba70d614a3c698d9
cephadm-adopt: make the playbook idempotent

If the cephadm-adopt.yml fails during the first execution and some
daemons have already been adopted by cephadm then we can't rerun
the playbook because the old container won't exist anymore.

Error: no container with name or ID ceph-mon-xxx found: no such container

If the daemons are adopted then the old systemd unit doesn't exist anymore
so any call to that unit with systemd will fail.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1918424
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 6886700a002e5d59bed5c18d082f8902bd57978c)
infrastructure-playbooks/cephadm-adopt.yml