]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: fix osd adoption with custom cluster name
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 1 Jun 2022 11:24:50 +0000 (13:24 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 1 Jun 2022 16:48:46 +0000 (18:48 +0200)
commite720a658d6a1582c0497bdf709ef4bd26bb5bb73
treede13147bc218459037fd995f7632c8f8dcdcdd0f
parent9e3d8521cf74ca105c535a86db3c3370e651dcca
cephadm: fix osd adoption with custom cluster name

When adopting Ceph OSD containers from a Ceph cluster with a custom name, it fails
because the name isn't propagated in unit.run.
The idea here is to change the lvm metadata and enforce 'ceph.cluster_name=ceph'
given that cephadm doesn't support custom names anyway.

Fixes: https://tracker.ceph.com/issues/55654
Signed-off-by: Adam King <adking@redhat.com>
Co-authored-by: Guillaume Abrioux <gabrioux@redhat.com>
src/cephadm/cephadm