From: Andrew Schoen Date: Mon, 15 Oct 2018 14:33:30 +0000 (-0500) Subject: ceph-volume: adds a --prepare flag to ceph-volume lvm batch X-Git-Tag: v13.2.3~92^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ef8275f9985c41a2d7fa2a5329fcfcbec7354ea1;p=ceph.git ceph-volume: adds a --prepare flag to ceph-volume lvm batch This flag will only prepare the OSDs, not activate them. This is useful in our containerized ceph solution. Signed-off-by: Andrew Schoen (cherry picked from commit 4368ca7d48f4ce35f67854e8b0ca2be9babc5371) --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/batch.py b/src/ceph-volume/ceph_volume/devices/lvm/batch.py index b511bce13154..cce58b166d05 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/batch.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/batch.py @@ -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: