]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
lvm/activate.py: clarify error message: fsid refers to osd_fsid 32351/head
authorYaniv Kaul <ykaul@redhat.com>
Thu, 19 Dec 2019 14:54:58 +0000 (16:54 +0200)
committerYaniv Kaul <ykaul@redhat.com>
Thu, 2 Jan 2020 08:58:33 +0000 (10:58 +0200)
Users complained[1] the error message isn't clear, and they thought
it referred to the cluster fsid instead of the osd_fsid.
Made it clearer.

[1] rook/rook#4547

Fixes: https://tracker.ceph.com/issues/43442
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/activate.py

index 4f0efc52ee70e4132508be72b07ffc85da72064e..61d2275339670e02f8be2592ab2ecba5f90ffc65 100644 (file)
@@ -248,7 +248,7 @@ class Activate(object):
         elif osd_fsid and not osd_id:
             lvs.filter(lv_tags={'ceph.osd_fsid': osd_fsid})
         if not lvs:
-            raise RuntimeError('could not find osd.%s with fsid %s' % (osd_id, osd_fsid))
+            raise RuntimeError('could not find osd.%s with osd_fsid %s' % (osd_id, osd_fsid))
         # This argument is only available when passed in directly or via
         # systemd, not when ``create`` is being used
         if getattr(args, 'auto_detect_objectstore', False):