]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
tools/cephfs/first-damage: default conf if CEPH_CONF not set
authorDan van der Ster <dan.vanderster@clyso.com>
Fri, 9 May 2025 02:46:02 +0000 (19:46 -0700)
committerDan van der Ster <dan.vanderster@clyso.com>
Fri, 9 May 2025 02:46:02 +0000 (19:46 -0700)
commit9d7ae6012c02da8b94616b8d29f3a8c2008fc71a
tree8314c9d9f61cb3df1159e44807a190e13cf8a589
parent40680918e13eaf84ae8dca33f3b3a82778c53a9e
tools/cephfs/first-damage: default conf if CEPH_CONF not set

If $CEPH_CONF isn't set, you get:

unable to get monitor info from DNS SRV with service name: ceph-mon
2025-05-08T22:40:06.091-0400 7f604286f1c0 -1 failed for service _ceph-mon._tcp
2025-05-08T22:40:06.091-0400 7f604286f1c0 -1 monclient: get_monmap_and_config cannot identify monitors to contact
Traceback (most recent call last):
  File "/root/first-damage.py", line 144, in <module>
    R.connect()
  File "rados.pyx", line 690, in rados.Rados.connect
rados.ObjectNotFound: [errno 2] RADOS object not found (error connecting to the cluster)

Make it default to /etc/ceph/ceph.conf if the env isn't set.

Signed-off-by: Dan van der Ster <dan.vanderster@clyso.com>
src/tools/cephfs/first-damage.py