From: Warren Usui Date: Sat, 23 Aug 2014 00:39:38 +0000 (-0700) Subject: mplement ceph.created_pool X-Git-Tag: v0.94.10~27^2^2~337^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0ec5bd1a631e34c7b1d3289f78968d797a7cec79;p=ceph.git mplement ceph.created_pool ceph.created_pool allows the user (via yaml lines) to add pools that the ceph_manager knows about. Fixes: 9091 Signed-off-by: Warren Usui --- diff --git a/tasks/ceph.py b/tasks/ceph.py index 07eb604ba9a..b3e759b9ce6 100644 --- a/tasks/ceph.py +++ b/tasks/ceph.py @@ -1038,6 +1038,17 @@ def wait_for_mon_quorum(ctx, config): time.sleep(1) +def created_pool(ctx, config): + """ + Add new pools to the dictionary of pools that the ceph-manager + knows about. + """ + for new_pool in config: + if new_pool not in ctx.manager.pools: + ctx.manager.pools[new_pool] = ctx.manager.get_pool_property( + new_pool, 'pg_num') + + @contextlib.contextmanager def restart(ctx, config): """