]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: create ceph-exporter sock dir if it's not present
authorAdam King <adking@redhat.com>
Sun, 10 Mar 2024 20:42:51 +0000 (16:42 -0400)
committerAdam King <adking@redhat.com>
Sun, 10 Mar 2024 20:42:51 +0000 (16:42 -0400)
commit0e3b4fa36b4574397dfbdb30f033ffbeec722bd8
tree6a3daa4b952cad1d4f2678de6027a60b35a07758
parentc2ea977b6956d1f694ccf66acc692fdd979e3baa
cephadm: create ceph-exporter sock dir if it's not present

Since this is usually /var/run/ceph/ which ends up getting
created by other daemons as well, it was common to see
ceph-exporter fail to deploy and then deploy fine after
once other daemons were down on the host. I don't see any
reason we can't just try to make the directory here instead
of bailing out.

This patch had to be rewritten for reef, as it depended on
changes in cephadm that will not be backported to reef.

Fixes: https://tracker.ceph.com/issues/64491
Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadm.py