From afa98f3880ccbb3fc098120e2ecfe8a59a83b5e7 Mon Sep 17 00:00:00 2001 From: Ilya Shakhat Date: Fri, 12 Jan 2018 10:36:01 +0100 Subject: [PATCH] Initialize osprofiler in Nova Cell configs Nova Cell conductor has its own config file and Devstack plugin should update it when osprofiler is enabled. Change-Id: Iaa6a8de9ab9d8a27ff9bf9d56ee62cd8d290609a Closes-Bug: #1731856 --- devstack/lib/osprofiler | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devstack/lib/osprofiler b/devstack/lib/osprofiler index 5c49543..99dc33a 100644 --- a/devstack/lib/osprofiler +++ b/devstack/lib/osprofiler @@ -28,6 +28,14 @@ CONF_FILES=( $ZUN_CONF ) +# Add config files of Nova Cells +NOVA_NUM_CELLS=${NOVA_NUM_CELLS:-1} +for i in $(seq 1 ${NOVA_NUM_CELLS}); do + # call function `conductor_conf` defined in lib/nova to get file name + conf=$(conductor_conf $i) + CONF_FILES+=(${conf}) +done + # This will update CEILOMETER_NOTIFICATION_TOPICS in ceilometer.conf file export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler