]> git.apps.os.sepia.ceph.com Git - ceph-ci.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 <adeza@redhat.com>
Thu, 29 Mar 2018 19:12:39 +0000 (15:12 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/activate.py

index 63591b075ed85e5bb9ade2426e72e04a40295d80..8d1f1c545f0256e9f45a4e0d091d865a6474c4e0 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__)
@@ -213,6 +214,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',
@@ -247,6 +253,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