]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: --no-mon-config
authorSage Weil <sage@redhat.com>
Thu, 8 Feb 2018 17:20:40 +0000 (11:20 -0600)
committerSage Weil <sage@redhat.com>
Tue, 6 Mar 2018 20:44:50 +0000 (14:44 -0600)
Some of these cases make sense to fetch mon configs, but we are deprecating
ceph-disk anyway, and the tests currently make use of ceph-disk in places
that do not have a mon_host defined via a ceph.conf or other environment.
This avoids breaking those test cases without any real impact on users
(which will either use ceph-volume or presumably remain in a legacy config
environment).

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-disk/ceph_disk/main.py

index f46e43976b05733a62577f5850d37745e18a09b6..e9c1a5148065d9b5e8a12935fde90b3734818941 100644 (file)
@@ -1239,6 +1239,7 @@ def get_conf_with_default(cluster, variable):
         out = _check_output(
             args=[
                 'ceph-osd',
+                '--no-mon-config',
                 '--cluster={cluster}'.format(
                     cluster=cluster,
                 ),
@@ -1544,6 +1545,7 @@ def check_journal_reqs(args):
     log_file = "/var/log/ceph/$cluster-osd-check.log"
     _, _, allows_journal = command([
         'ceph-osd', '--check-allows-journal',
+        '--no-mon-config',
         '-i', '0',
         '--log-file', log_file,
         '--cluster', args.cluster,
@@ -1552,6 +1554,7 @@ def check_journal_reqs(args):
     ])
     _, _, wants_journal = command([
         'ceph-osd', '--check-wants-journal',
+        '--no-mon-config',
         '-i', '0',
         '--log-file', log_file,
         '--cluster', args.cluster,
@@ -1560,6 +1563,7 @@ def check_journal_reqs(args):
     ])
     _, _, needs_journal = command([
         'ceph-osd', '--check-needs-journal',
+        '--no-mon-config',
         '-i', '0',
         '--log-file', log_file,
         '--cluster', args.cluster,
@@ -3172,6 +3176,7 @@ def mkfs(
         command_check_call(
             [
                 'ceph-osd',
+                '--no-mon-config',
                 '--cluster', cluster,
                 '--mkfs',
                 '-i', osd_id,
@@ -3186,6 +3191,7 @@ def mkfs(
         command_check_call(
             [
                 'ceph-osd',
+                '--no-mon-config',
                 '--cluster', cluster,
                 '--mkfs',
                 '-i', osd_id,
@@ -4133,6 +4139,7 @@ def get_space_osd_uuid(name, path):
         out = _check_output(
             args=[
                 'ceph-osd',
+                '--no-mon-config',
                 '--get-device-fsid',
                 path,
             ],