]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
raw: --osd-fsid throughout
authorSage Weil <sage@redhat.com>
Wed, 18 Dec 2019 14:13:55 +0000 (08:13 -0600)
committerJan Fajerski <jfajerski@suse.com>
Fri, 28 Feb 2020 09:34:30 +0000 (10:34 +0100)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 4e7e694fa53c29ff1552656c892bee592d5db871)

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

index 743df16eca75234578c70cb9498abb15cf26a331..90ba8c0b0791a1f26191b96c1644ba4c5603c377 100644 (file)
@@ -98,7 +98,7 @@ 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-uuid f0327efd-c28e-40bb-9199-f2e61e54c12a
+            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.
@@ -114,7 +114,7 @@ class Activate(object):
             help='The ID of the OSD, usually an integer, like 0'
         )
         parser.add_argument(
-            '--osd-uuid',
+            '--osd-fsid',
             help='The UUID of the OSD'
         )
         parser.add_argument(
@@ -142,8 +142,8 @@ class Activate(object):
             return
         args = parser.parse_args(self.argv)
         self.args = args
-        if not args.device and not args.activate_all and not (args.osd_id and args.osd_uuid):
-            terminal.error('must specify one of --device, --activate-all, or --osd-id and --osd-uuid')
+        if not args.device and not args.activate_all and not (args.osd_id and args.osd_fsid):
+            terminal.error('must specify one of --device, --activate-all, or --osd-id and --osd-fsid')
             raise SystemExit(1)
         if not args.no_systemd:
             terminal.error('systemd support not yet implemented')
index ca7f8612c1ce85f5b616300a618f5aa0e04f0c3f..03b6cd690ed1a18265a12a05005ff13431c2ed20 100644 (file)
@@ -31,7 +31,7 @@ def create_parser(prog, description):
         help='Reuse an existing OSD id',
     )
     parser.add_argument(
-        '--osd-uuid',
+        '--osd-fsid',
         help='Reuse an existing OSD UUID',
     )
     parser.add_argument(