]> git-server-git.apps.pok.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 08:07:13 +0000 (10:07 +0200)
commitec3b687dc4d2153390fcb848e3c839244f644182
tree45d916517d33bc4e4b7664f988bfe7c269fcbc06
parent272d16e101984de41bba6fcbe6134bf39e547341
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>
roles/ceph-facts/tasks/facts.yml