]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-facts: use --admin-daemon to get fsid
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 1 Oct 2019 18:41:57 +0000 (14:41 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 2 Oct 2019 12:01:32 +0000 (14:01 +0200)
commit5b24c66ff7e4c23ee10a762a1ca2e2e162a2590a
treeb528c08f79ca8d2de85dcbf3b9e48598d9d59d84
parentc958bc1ddfb0a951c1269304f1f7a068e5b5ba43
ceph-facts: use --admin-daemon to get fsid

During the rolling_update scenario, the fsid value is retrieve from the
current ceph cluster configuration via the ceph daemon config command.
This command tries first to resolve the admin socket path via the
ceph-conf command.
Unfortunately this command won't work if you have a duplicate key in the
ceph configuration even if it only produces a warning. As a result the
task will fail.

Can't get admin socket path: unable to get conf option admin_socket for
mon.xxx: warning: line 13: 'osd_memory_target' in section 'osd' redefined

Instead of using ceph daemon we can use the --admin-daemon option
because we already know what the socket admin path value based on the
ceph cluster and mon hostname values.

Closes: #4492
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit ec3b687dc4d2153390fcb848e3c839244f644182)
roles/ceph-facts/tasks/facts.yml