diff options
author | Alfredo Deza <adeza@redhat.com> | 2018-02-19 21:10:47 +0100 |
---|---|---|
committer | Alfredo Deza <adeza@redhat.com> | 2018-02-21 18:55:16 +0100 |
commit | 3e7c995ebe252cb785da12548113ac855aa5219b (patch) | |
tree | 9a3cbcfc927dee017c83329cf09fa66bee59be02 /src/ceph-volume/ceph_volume/devices/lvm/common.py | |
parent | Merge PR #19342 into master (diff) | |
download | ceph-3e7c995ebe252cb785da12548113ac855aa5219b.tar.xz ceph-3e7c995ebe252cb785da12548113ac855aa5219b.zip |
ceph-volume lvm.common define arg groups for objectstores
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Diffstat (limited to 'src/ceph-volume/ceph_volume/devices/lvm/common.py')
-rw-r--r-- | src/ceph-volume/ceph_volume/devices/lvm/common.py | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/src/ceph-volume/ceph_volume/devices/lvm/common.py b/src/ceph-volume/ceph_volume/devices/lvm/common.py index ac7033e6d90..eb56f43c01a 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/common.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/common.py @@ -48,33 +48,50 @@ def common_parser(prog, description): formatter_class=argparse.RawDescriptionHelpFormatter, description=description, ) - required_args = parser.add_argument_group('required arguments') - parser.add_argument( - '--journal', - help='(filestore) A logical volume (vg_name/lv_name), or path to a device', - ) - required_args.add_argument( + + required_group = parser.add_argument_group('required arguments') + filestore_group = parser.add_argument_group('filestore') + bluestore_group = parser.add_argument_group('bluestore') + + required_group.add_argument( '--data', required=True, type=arg_validators.LVPath(), help='OSD data path. A physical device or logical volume', ) - parser.add_argument( + + filestore_group.add_argument( + '--filestore', + action='store_true', + help='Use the filestore objectstore', + ) + + filestore_group.add_argument( + '--journal', + help='(REQUIRED) A logical volume (vg_name/lv_name), or path to a device', + ) + + filestore_group.add_argument( '--journal-size', default=5, metavar='GB', type=int, - help='(filestore) Size (in GB) for the journal', + help='Size (in GB) for the journal', ) - parser.add_argument( + bluestore_group.add_argument( '--bluestore', action='store_true', help='Use the bluestore objectstore', ) - parser.add_argument( - '--filestore', - action='store_true', - help='Use the filestore objectstore', + bluestore_group.add_argument( + '--block.db', + dest='block_db', + help='Path to bluestore block.db logical volume or device', + ) + bluestore_group.add_argument( + '--block.wal', + dest='block_wal', + help='Path to bluestore block.wal logical volume or device', ) parser.add_argument( '--osd-id', @@ -85,16 +102,6 @@ def common_parser(prog, description): help='Reuse an existing OSD fsid', ) parser.add_argument( - '--block.db', - dest='block_db', - help='(bluestore) Path to bluestore block.db logical volume or device', - ) - parser.add_argument( - '--block.wal', - 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', |