From bf468bc3737c15a8f15ec19ebf81c42672e28aaf Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Wed, 10 Jan 2018 09:29:15 -0600 Subject: [PATCH] ceph-volume: adds a --crush-device-class flag to lvm create and prepare Signed-off-by: Andrew Schoen --- src/ceph-volume/ceph_volume/devices/lvm/common.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ceph-volume/ceph_volume/devices/lvm/common.py b/src/ceph-volume/ceph_volume/devices/lvm/common.py index 2918392273723..a22b2184cedc0 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/common.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/common.py @@ -94,6 +94,11 @@ def common_parser(prog, description): dest='block_wal', help='(bluestore) Path to bluestore block.wal logical volume or device', ) + parser.add_argument( + '--crush-device-class', + dest='crush_device_class', + help='Crush device class to assign this OSD to', + ) # Do not parse args, so that consumers can do something before the args get # parsed triggering argparse behavior return parser -- 2.39.5