mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
tasks/ceph_objectstore_tool: use existing manager
This is only used after the ceph task, which already createds a manager for the cluster. Use the default 'ceph' cluster manager for now. Signed-off-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
parent
274d79ade3
commit
e00437ae89
@ -173,16 +173,7 @@ def task(ctx, config):
|
||||
log.info(osds)
|
||||
log.info(osds.remotes)
|
||||
|
||||
first_mon = teuthology.get_first_mon(ctx, config)
|
||||
(mon,) = ctx.cluster.only(first_mon).remotes.iterkeys()
|
||||
manager = ceph_manager.CephManager(
|
||||
mon,
|
||||
ctx=ctx,
|
||||
config=config,
|
||||
logger=log.getChild('ceph_manager'),
|
||||
)
|
||||
ctx.manager = manager
|
||||
|
||||
manager = ctx.managers['ceph']
|
||||
while (len(manager.get_osd_status()['up']) !=
|
||||
len(manager.get_osd_status()['raw'])):
|
||||
time.sleep(10)
|
||||
@ -222,7 +213,7 @@ def task(ctx, config):
|
||||
|
||||
|
||||
def test_objectstore(ctx, config, cli_remote, REP_POOL, REP_NAME, ec=False):
|
||||
manager = ctx.manager
|
||||
manager = ctx.managers['ceph']
|
||||
|
||||
osds = ctx.cluster.only(teuthology.is_type('osd'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user