qa/tasks/ceph_manager: --no-mon-config to ceph-objectstore-tool

The config is currently fetched at osd.admin, so the keyring is not
found.

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2020-01-17 12:12:31 -06:00
parent 7fefcdb6d3
commit 81c735fc9c

View File

@ -262,9 +262,12 @@ class OSDThrasher(Thrasher):
random.random() < self.chance_move_pg):
exp_osd = random.choice(self.dead_osds[:-1])
exp_remote = self.ceph_manager.find_remote('osd', exp_osd)
prefix = ['--data-path', FSPATH.format(id=osd),
'--journal-path', JPATH.format(id=osd),
'--log-file=/var/log/ceph/objectstore_tool.$pid.log']
prefix = [
'--no-mon-config',
'--data-path', FSPATH.format(id=osd),
'--journal-path', JPATH.format(id=osd),
'--log-file=/var/log/ceph/objectstore_tool.$pid.log',
]
cmd = prefix + ['--op', 'list-pgs']
if not self.ceph_manager.cephadm: