-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
None
-
3
-
False
-
-
False
-
-
In order to enable watcher in horizon, we need to do following things.
- In tcib project under container-images/kolla/horizon/extend_start.sh file:
--- a/container-images/kolla/horizon/extend_start.sh
+++ b/container-images/kolla/horizon/extend_start.sh
@@ -80,6 +80,18 @@ function config_octavia_dashboard {
"${SITE_PACKAGES}/openstack_dashboard/local/enabled/_1482_project_load_balancer_panel.py"
}
+function config_watcher_dashboard {
+ for file in ${SITE_PACKAGES}/watcher_dashboard/local/enabled/_*[^__].py; do
+ config_dashboard "${ENABLE_WATCHER}" \
+ "${SITE_PACKAGES}/watcher_dashboard/local/enabled/${file##*/}" \
+ "${SITE_PACKAGES}/openstack_dashboard/local/enabled/${file##*/}"
+ done
+
+ config_dashboard "${ENABLE_WATCHER}" \
+ "${SITE_PACKAGES}/watcher_dashboard/conf/watcher_policy.json" \
+ "/etc/openstack-dashboard/watcher_policy.json"
+}
+
# Regenerate the compressed javascript and css if any configuration files have
# changed. Use a static modification date when generating the tarball
# so that we only trigger on content changes.
@@ -105,6 +117,7 @@ config_heat_dashboard
config_ironic_dashboard
config_manila_ui
config_octavia_dashboard
+config_watcher_dashboard
- Add `ENABLE_WATCHER` variable in horizon operator.
Note: We need to wait openstack-watcher container to be available downstream.