summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Shakhat <shakhat@gmail.com>2018-01-12 10:36:01 +0100
committerIlya Shakhat <shakhat@gmail.com>2018-01-12 10:36:01 +0100
commitafa98f3880ccbb3fc098120e2ecfe8a59a83b5e7 (patch)
tree7238d90ba42dcc5cd0c455b07727b0778f9c336b
parent0895a4bb91beb0b97ed3711887f28d3e9dc8b9de (diff)
downloadosprofiler-afa98f3880ccbb3fc098120e2ecfe8a59a83b5e7.tar.gz
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
-rw-r--r--devstack/lib/osprofiler8
1 files changed, 8 insertions, 0 deletions
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