]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: adds a --prepare flag to ceph-volume lvm batch
authorAndrew Schoen <aschoen@redhat.com>
Mon, 15 Oct 2018 14:33:30 +0000 (09:33 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 25 Oct 2018 16:33:28 +0000 (11:33 -0500)
This flag will only prepare the OSDs, not activate them. This is useful
in our containerized ceph solution.

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

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

index b511bce13154b1bf93172ac3e87205d5faf02b39..cce58b166d05b58eaf4104a627de88dce24acd84 100644 (file)
@@ -263,6 +263,11 @@ class Batch(object):
             type=int,
             help='Override the "osd_journal_size" value, in megabytes'
         )
+        parser.add_argument(
+            '--prepare',
+            action='store_true',
+            help='Only prepare all OSDs, do not activate',
+        )
         args = parser.parse_args(self.argv)
 
         if not args.devices: