]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: improve message when removing osd 46735/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 17 Jun 2022 14:27:34 +0000 (16:27 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 5 Jul 2022 13:29:22 +0000 (15:29 +0200)
make it clearer that not passing --zap will leave VG/LV, therefore all
LVM metadata associated with the osd being removed from the Ceph cluster.

Fixes: https://tracker.ceph.com/issues/56092
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/pybind/mgr/cephadm/module.py

index ada900a7f5ac8f3e3fcde9cf88a2be3edfb6901a..395d4dfe9d6ed0e8d9c44365d6b159041c3e8d04 100644 (file)
@@ -2816,7 +2816,10 @@ Then run the following:
 
         # trigger the serve loop to initiate the removal
         self._kick_serve_loop()
-        return "Scheduled OSD(s) for removal"
+        warning_zap = "" if not zap else ("\nVG/LV for the OSDs won't be zapped (--zap wasn't passed).\n"
+                                          "Run the `ceph-volume lvm zap` command with `--destroy`"
+                                          " against the VG/LV if you want them to be destroyed.")
+        return f"Scheduled OSD(s) for removal.{warning_zap}"
 
     @handle_orch_error
     def stop_remove_osds(self, osd_ids: List[str]) -> str: