From a095ec8b0fc0b787a0253b076c193b3bd83fc725 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 8 Feb 2018 11:20:40 -0600 Subject: [PATCH] ceph-disk: --no-mon-config 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 --- src/ceph-disk/ceph_disk/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ceph-disk/ceph_disk/main.py b/src/ceph-disk/ceph_disk/main.py index f46e43976b057..e9c1a5148065d 100644 --- a/src/ceph-disk/ceph_disk/main.py +++ b/src/ceph-disk/ceph_disk/main.py @@ -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, ], -- 2.39.5