X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fceph-volume%2Fceph_volume%2Fdevices%2Flvm%2Fcreate.py;fp=src%2Fceph%2Fsrc%2Fceph-volume%2Fceph_volume%2Fdevices%2Flvm%2Fcreate.py;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=353b26ab4ed8c0afb07b911d3362e6ccb3c0e5dd;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/ceph-volume/ceph_volume/devices/lvm/create.py b/src/ceph/src/ceph-volume/ceph_volume/devices/lvm/create.py deleted file mode 100644 index 353b26a..0000000 --- a/src/ceph/src/ceph-volume/ceph_volume/devices/lvm/create.py +++ /dev/null @@ -1,57 +0,0 @@ -from __future__ import print_function -from textwrap import dedent -from ceph_volume.util import system -from ceph_volume import decorators -from .common import create_parser -from .prepare import Prepare -from .activate import Activate - - -class Create(object): - - help = 'Create a new OSD from an LVM device' - - def __init__(self, argv): - self.argv = argv - - @decorators.needs_root - def create(self, args): - if not args.osd_fsid: - args.osd_fsid = system.generate_uuid() - Prepare([]).prepare(args) - Activate([]).activate(args) - - def main(self): - sub_command_help = dedent(""" - Create an OSD by assigning an ID and FSID, registering them with the - cluster with an ID and FSID, formatting and mounting the volume, adding - all the metadata to the logical volumes using LVM tags, and starting - the OSD daemon. - - Example calls for supported scenarios: - - Filestore - --------- - - Existing logical volume (lv) or device: - - ceph-volume lvm create --filestore --data {vg name/lv name} --journal /path/to/device - - Or: - - ceph-volume lvm create --filestore --data {vg name/lv name} --journal {vg name/lv name} - - """) - parser = create_parser( - prog='ceph-volume lvm create', - description=sub_command_help, - ) - if len(self.argv) == 0: - print(sub_command_help) - return - args = parser.parse_args(self.argv) - # Default to bluestore here since defaulting it in add_argument may - # cause both to be True - if args.bluestore is None and args.filestore is None: - args.bluestore = True - self.create(args)