]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: remove osd-id and osd-fsid flag
authorSébastien Han <seb@redhat.com>
Fri, 24 Jan 2020 15:27:10 +0000 (16:27 +0100)
committerJan Fajerski <jfajerski@suse.com>
Fri, 28 Feb 2020 15:38:14 +0000 (16:38 +0100)
These are not used since we only rely on the device path so removing
them to avid confusion.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 525957be98a0a6ff742f6bae4450f291591f516f)

src/ceph-volume/ceph_volume/devices/raw/activate.py
src/ceph-volume/ceph_volume/devices/raw/common.py
src/ceph-volume/ceph_volume/devices/raw/prepare.py

index 44164c844dfe7bec3571ea6a6b104564bcc2182e..57fb2223d1e62b89407587a8a089539e8e12d40d 100644 (file)
@@ -86,7 +86,6 @@ class Activate(object):
         device label (normally the first block of the device).
 
             ceph-volume raw activate --device /dev/sdb
-            ceph-volume raw activate --osd-id 1 --osd-fsid f0327efd-c28e-40bb-9199-f2e61e54c12a
 
         The device(s) associated with the OSD needs to have been prepared
         previously, so that all needed tags and metadata exist.
index 03b6cd690ed1a18265a12a05005ff13431c2ed20..ba1dae00f16efedddd632f849d131d8462d4cc34 100644 (file)
@@ -26,14 +26,6 @@ def create_parser(prog, description):
         dest='crush_device_class',
         help='Crush device class to assign this OSD to',
     )
-    parser.add_argument(
-        '--osd-id',
-        help='Reuse an existing OSD id',
-    )
-    parser.add_argument(
-        '--osd-fsid',
-        help='Reuse an existing OSD UUID',
-    )
     parser.add_argument(
         '--cluster-fsid',
         help='Specify the cluster fsid, useful when no ceph.conf is available',
index 751630563737af4b51912d48f2bd13e245af0f64..54e82c99202b3794acca7c5d1abc2c563968fa29 100644 (file)
@@ -11,7 +11,7 @@ from .common import create_parser
 logger = logging.getLogger(__name__)
 
 
-def prepare_bluestore(block, secrets, osd_id, fsid, tmpfs):
+def prepare_bluestore(block, secrets, tmpfs):
     """
     :param block: The name of the logical volume for the bluestore data
     :param wal: a regular/plain disk or logical volume, to be used for block.wal
@@ -77,7 +77,7 @@ class Prepare(object):
     @decorators.needs_root
     def prepare(self):
         secrets = {'cephx_secret': prepare_utils.create_key()}
-        osd_fsid = self.args.osd_fsid or system.generate_uuid()
+        osd_fsid = system.generate_uuid()
         crush_device_class = self.args.crush_device_class
         if crush_device_class:
             secrets['crush_device_class'] = crush_device_class