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

openstack-horizon operator is shown as "in progress" even though operator failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhos-18.0.0
    • horizon-operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None
    • Moderate

      openstack-horizon operator is shown as "in progress" even though operation failed

      The same as for telemetry and other components:

      [root@jumphost 05_control_plane]# oc get -f 00_control_plane.yaml 
      NAME                      STATUS   MESSAGE
      openstack-control-plane   False    OpenStackControlPlane Horizon in progress
      

      Yet, when I check the operator logs:

      oc logs -n openstack-operators horizon-operator-controller-manager-5b466cb-nrcks -f
      (...)
      2024-09-10T11:11:33Z    INFO    Controllers.Horizon     Reconciling Service     {"controller": "horizon", "controllerGroup": "horizon.openstack.org", "controllerKind": "Horizon", "Horizon": {"name":"horizon","namespace":"openstack"}, "namespace": "openstack", "name": "horizon", "reconcileID": "1784f06c-f466-4028-b193-941249e011fc"}
      2024-09-10T11:11:33Z    INFO    Warning: Reconciler returned both a non-zero result and a non-nil error. The result will always be ignored if the error is non-nil and the non-nil error causes reqeueuing with exponential backoff. For more details, see: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile#Reconciler        {"controller": "horizon", "controllerGroup": "horizon.openstack.org", "controllerKind": "Horizon", "Horizon": {"name":"horizon","namespace":"openstack"}, "namespace": "openstack", "name": "horizon", "reconcileID": "1784f06c-f466-4028-b193-941249e011fc"}
      2024-09-10T11:11:33Z    ERROR   Reconciler error        {"controller": "horizon", "controllerGroup": "horizon.openstack.org", "controllerKind": "Horizon", "Horizon": {"name":"horizon","namespace":"openstack"}, "namespace": "openstack", "name": "horizon", "reconcileID": "1784f06c-f466-4028-b193-941249e011fc", "error": "openstack secret  not found"}
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:329
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:266
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:227
      2024-09-10T11:12:55Z    INFO    Controllers.Horizon     Reconciling Service     {"controller": "horizon", "controllerGroup": "horizon.openstack.org", "controllerKind": "Horizon", "Horizon": {"name":"horizon","namespace":"openstack"}, "namespace": "openstack", "name": "horizon", "reconcileID": "c0334592-85f7-49cf-8631-769846ec8359"}
      2024-09-10T11:12:55Z    INFO    Warning: Reconciler returned both a non-zero result and a non-nil error. The result will always be ignored if the error is non-nil and the non-nil error causes reqeueuing with exponential backoff. For more details, see: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile#Reconciler        {"controller": "horizon", "controllerGroup": "horizon.openstack.org", "controllerKind": "Horizon", "Horizon": {"name":"horizon","namespace":"openstack"}, "namespace": "openstack", "name": "horizon", "reconcileID": "c0334592-85f7-49cf-8631-769846ec8359"}
      2024-09-10T11:12:55Z    ERROR   Reconciler error        {"controller": "horizon", "controllerGroup": "horizon.openstack.org", "controllerKind": "Horizon", "Horizon": {"name":"horizon","namespace":"openstack"}, "namespace": "openstack", "name": "horizon", "reconcileID": "c0334592-85f7-49cf-8631-769846ec8359", "error": "openstack secret  not found"}
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:329
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:266
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
              /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.6/pkg/internal/controller/controller.go:227
      (...)
      

      Printing that stack trace is a bit ugly just for a missing secret.
      Also, the horizon operator clearly is not "in progress", it encountered a failure:

      • emit an event about this
      • change the status of the openstackcontrolplane resource and the openstackcontrolplane resource should report failure in the short output

              Unassigned Unassigned
              akaris@redhat.com Andreas Karis
              rhos-dfg-ui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: