mimic: pass --no-mon-config for osd config

Ensure that local configuration files are used for all
settings, instead of mon set configuration which requires
access to the mon cluster which may not be running at the
point in time that configuration is required.

Change-Id: I1fa80c78d6e6e501848d14098fe88d0df4f9e8bc
This commit is contained in:
James Page 2018-07-24 06:45:33 +01:00
parent afdd9a974d
commit 427e6d38f8
2 changed files with 2 additions and 0 deletions

View File

@ -1717,6 +1717,7 @@ def get_conf(variable):
return subprocess.check_output([
'ceph-osd',
'--show-config-value={}'.format(variable),
'--no-mon-config',
]).strip()

View File

@ -628,6 +628,7 @@ class CephTestCase(unittest.TestCase):
_check_output.assert_called_with([
'ceph-osd',
'--show-config-value=bluestore_block_db_size',
'--no-mon-config',
])
def test_partition_name(self):