From c8e4500fc0518b5ca640d0e3f6875ede73b92502 Mon Sep 17 00:00:00 2001 From: Eyal Date: Sun, 5 Nov 2017 15:11:08 +0200 Subject: [PATCH] enable global index change the policy.json file to enable to see all stacks Change-Id: I5fd0639e8f7e3be031ca5ecb729d06a1b44487d2 --- devstack/plugin.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 7183887b1..acba89e81 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -346,6 +346,14 @@ function stop_vitrage { done } +function modify_heat_global_index_policy_rule { + if is_service_enabled heat; then + local policy_file=$HEAT_CONF_DIR/policy.json + # Allow to list all stacks + sed -i 's/"stacks:global_index": "rule:deny_everybody"/"stacks:global_index": "rule:deny_stack_user"/' $policy_file + fi +} + # This is the main for plugin.sh if is_service_enabled vitrage; then if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then @@ -361,6 +369,8 @@ if is_service_enabled vitrage; then configure_vitrage elif [[ "$1" == "stack" && "$2" == "extra" ]]; then echo_summary "Initializing Vitrage" + # enable global index + modify_heat_global_index_policy_rule # Tidy base for vitrage init_vitrage # Start the services