]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-volume lvm.activate warn when no osds are found with --all
authorAlfredo Deza <adeza@redhat.com>
Thu, 29 Mar 2018 18:02:25 +0000 (14:02 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 29 Mar 2018 19:12:40 +0000 (15:12 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/activate.py

index 600c0b956d77978254778b913526b758530d35a4..11b2338909febd028d764a7c21c021f3471b060d 100644 (file)
@@ -189,6 +189,10 @@ class Activate(object):
                 if fsid:
                     osds[fsid] = osd_id
                     break
+        if not osds:
+            terminal.warning('Was unable to find any OSDs to activate')
+            terminal.warning('Verify OSDs are present with "ceph-volume lvm list"')
+            return
         for osd_fsid, osd_id in osds.items():
             if systemctl.osd_is_active(osd_id):
                 terminal.warning(