From: Andrew Schoen Date: Wed, 10 Jan 2018 15:29:15 +0000 (-0600) Subject: ceph-volume: adds a --crush-device-class flag to lvm create and prepare X-Git-Tag: v12.2.3~80^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48591335c3903cb5446208da9940752fb8b390c7;p=ceph.git ceph-volume: adds a --crush-device-class flag to lvm create and prepare Signed-off-by: Andrew Schoen (cherry picked from commit bf468bc3737c15a8f15ec19ebf81c42672e28aaf) --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/common.py b/src/ceph-volume/ceph_volume/devices/lvm/common.py index 291839227372..a22b2184cedc 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