From: Alfredo Deza Date: Thu, 29 Mar 2018 18:02:25 +0000 (-0400) Subject: ceph-volume lvm.activate warn when no osds are found with --all X-Git-Tag: v13.1.0~336^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=967938a0cf4353e99eb55815cde4ee90d6d4b79b;p=ceph-ci.git ceph-volume lvm.activate warn when no osds are found with --all Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index 600c0b956d7..11b2338909f 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/activate.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/activate.py @@ -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(