]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
cephadm-adopt: remove legacy directory after adoption
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 11 May 2022 11:47:46 +0000 (13:47 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 13 May 2022 04:58:16 +0000 (06:58 +0200)
commit081c170120b1aeafba68189677fdbef27fac5d06
treeeb822b409d0766a98214969529b5a5e952c782fa
parentc8df6e08eb80014624f24554e5161479257206ec
cephadm-adopt: remove legacy directory after adoption

When this directory is left after the osd adoption, it leads to the following error:

```
[WRN] CEPHADM_REFRESH_FAILED: failed to probe daemons or devices
    host axdesec2ocs1n002.ecommerce.inditex.grp `cephadm ceph-volume` failed: cephadm exited with an error code: 1, stderr:Inferring config /var/lib/ceph/41555360-e96b-4b16-a37c-873e0c940091/mon.axdesec2ocs1n002/config
ERROR: [Errno 2] No such file or directory: '/var/lib/ceph/41555360-e96b-4b16-a37c-873e0c940091/mon.axdesec2ocs1n002/config'.
```

this is because of an unexpected behavior regarding 'config inferring' when a legacy directory is present in /var/lib/ceph.

Note: this doesn't fix the root cause, this is a workaround.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2075510
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 6e2ebe857d0f8c2b9a7ebbd5c63fa54c9a603141)
infrastructure-playbooks/cephadm-adopt.yml