Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-11277

Integrate Watcher in Horizon-operator

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None

      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.

              amoralej1@redhat.com Alfredo Moralejo Alonso
              rhn-engineering-chkumar Chandan Kumar
              rhos-workloads-evolution
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: