From: Patrick Donnelly Date: Fri, 28 Jan 2022 01:55:58 +0000 (-0500) Subject: qa/tasks/cephadm: setup CephManager when OSDs are provisioned X-Git-Tag: v18.0.0~1412^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=27c1110129bd5c8eb7b58e7051e9c1ac2446328c;p=ceph.git qa/tasks/cephadm: setup CephManager when OSDs are provisioned The Filesystem object may use this when configuring EC data pools at file system creation (via a FuseMount). Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index d1e6b08ba9fc..602676eed7f7 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -813,6 +813,16 @@ def ceph_osds(ctx, config): if int(j.get('num_up_osds', 0)) == num_osds: break; + if not hasattr(ctx, 'managers'): + ctx.managers = {} + ctx.managers[cluster_name] = CephManager( + ctx.ceph[cluster_name].bootstrap_remote, + ctx=ctx, + logger=log.getChild('ceph_manager.' + cluster_name), + cluster=cluster_name, + cephadm=True, + ) + yield finally: pass @@ -1573,16 +1583,6 @@ def task(ctx, config): lambda: ceph_clients(ctx=ctx, config=config), lambda: create_rbd_pool(ctx=ctx, config=config), ): - if not hasattr(ctx, 'managers'): - ctx.managers = {} - ctx.managers[cluster_name] = CephManager( - ctx.ceph[cluster_name].bootstrap_remote, - ctx=ctx, - logger=log.getChild('ceph_manager.' + cluster_name), - cluster=cluster_name, - cephadm=True, - ) - try: if config.get('wait-for-healthy', True): healthy(ctx=ctx, config=config)