]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume lvv.activate allo to configure the CLI with --all
authorAlfredo Deza <adeza@redhat.com>
Mon, 26 Mar 2018 18:20:30 +0000 (14:20 -0400)
committerAlfredo Deza <alfredo@deza.pe>
Thu, 19 Apr 2018 16:31:20 +0000 (12:31 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 4f305eb661553bebc1a86d18c11f596fa6206828)

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

index e43295b748d72592d254c6825a86af509309c02a..07c0cae49ca1442260a5a02878802edc58ebdb13 100644 (file)
@@ -9,6 +9,7 @@ from ceph_volume.util import prepare as prepare_utils
 from ceph_volume.util import encryption as encryption_utils
 from ceph_volume.systemd import systemctl
 from ceph_volume.api import lvm as api
+from .listing import direct_report
 
 
 logger = logging.getLogger(__name__)
@@ -218,6 +219,11 @@ class Activate(object):
         The lvs associated with the OSD need to have been prepared previously,
         so that all needed tags and metadata exist.
 
+        When migrating OSDs, or a multiple-osd activation is needed, the
+        ``--all`` flag can be used instead of the individual ID and FSID:
+
+            ceph-volume lvm activate --all
+
         """)
         parser = argparse.ArgumentParser(
             prog='ceph-volume lvm activate',
@@ -252,6 +258,11 @@ class Activate(object):
             action='store_true',
             help='filestore objectstore',
         )
+        parser.add_argument(
+            '--all',
+            action='store_true',
+            help='Activate all OSDs found in the system',
+        )
         if len(self.argv) == 0:
             print(sub_command_help)
             return