From 0ec5bd1a631e34c7b1d3289f78968d797a7cec79 Mon Sep 17 00:00:00 2001 From: Warren Usui Date: Fri, 22 Aug 2014 17:39:38 -0700 Subject: [PATCH] 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 --- tasks/ceph.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tasks/ceph.py b/tasks/ceph.py index 07eb604ba9a02..b3e759b9ce68c 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): """ -- 2.39.5