]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: remove unused function 35831/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 25 Jun 2020 11:33:09 +0000 (13:33 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 29 Jun 2020 11:45:00 +0000 (11:45 +0000)
This function is never called in raw context, let's remove it.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 20e8286f5e1b79678b17659272daa1e28e763618)

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

index 197af3cc848f8a79ccbca9248a746ec06d57013a..08cfd02890cb0c7b588fb5f9d3a4d55f897d8415 100644 (file)
@@ -26,10 +26,6 @@ def create_parser(prog, description):
         dest='crush_device_class',
         help='Crush device class to assign this OSD to',
     )
-    parser.add_argument(
-        '--cluster-fsid',
-        help='Specify the cluster fsid, useful when no ceph.conf is available',
-    )
     parser.add_argument(
         '--no-tmpfs',
         action='store_true',
index d0d740c1c84b0acb315f5e40def429431d6366ec..3c96eedacf34a6d6f30d7ce09eceeb595016092f 100644 (file)
@@ -7,7 +7,7 @@ from ceph_volume.util import prepare as prepare_utils
 from ceph_volume.util import encryption as encryption_utils
 from ceph_volume.util import disk
 from ceph_volume.util import system
-from ceph_volume import conf, decorators, terminal
+from ceph_volume import decorators, terminal
 from ceph_volume.devices.lvm.common import rollback_osd
 from .common import create_parser
 
@@ -97,15 +97,6 @@ class Prepare(object):
         dmcrypt_log = 'dmcrypt' if args.dmcrypt else 'clear'
         terminal.success("ceph-volume raw {} prepare successful for: {}".format(dmcrypt_log, self.args.data))
 
-    def get_cluster_fsid(self):
-        """
-        Allows using --cluster-fsid as an argument, but can fallback to reading
-        from ceph.conf if that is unset (the default behavior).
-        """
-        if self.args.cluster_fsid:
-            return self.args.cluster_fsid
-
-        return conf.ceph.get('global', 'fsid')
 
     @decorators.needs_root
     def prepare(self):