]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: print the lvm activate success message correctly 20239/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 17 Jan 2018 17:44:10 +0000 (11:44 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 1 Feb 2018 19:54:18 +0000 (13:54 -0600)
Move the terminal.success to the methods that have access to the
correct osd_id so that they do not print None for the osd_id
in the log message.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit c9f7689a7a71a6b2321301b84599f319e8ae8eba)

src/ceph-volume/ceph_volume/devices/lvm/activate.py

index f0392fed67432130b5c800bc0d33d8c9a6ab1a5b..4845fac500fa47c44e26268203fd8314fd4322a3 100644 (file)
@@ -54,6 +54,7 @@ def activate_filestore(lvs):
 
     # start the OSD
     systemctl.start_osd(osd_id)
+    terminal.success("ceph-volume lvm activate successful for osd ID: %s" % osd_id)
 
 
 def get_osd_device_path(osd_lv, lvs, device_type):
@@ -126,6 +127,7 @@ def activate_bluestore(lvs):
 
     # start the OSD
     systemctl.start_osd(osd_id)
+    terminal.success("ceph-volume lvm activate successful for osd ID: %s" % osd_id)
 
 
 class Activate(object):