Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-6811

[Operator] Log errors when exposing WebConsole

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • AMQ 7.10.0.OPR.3.GA
    • AMQ 7.10.0.OPR.2.GA
    • operator
    • None
    • False
    • None
    • False
    • Hide

      Install the AMQ Operator (the test was done installing it for waching a single namespace)

      Deploy AMQ using a basic CR but exposing the webconsole. Example

       

      apiVersion: broker.amq.io/v1beta1
      kind: ActiveMQArtemis
      metadata:
        name: ex-aao
      spec:
        deploymentPlan:
          persistenceEnabled: false
          size: 1
          image: placeholder
          resources:
            limits:
              cpu: 1000m
              memory: 1024Mi
            requests:
              cpu: 500m
              memory: 1024Mi
        console:
          expose: true
          sslEnabled: false   

       

       

       

      Show
      Install the AMQ Operator (the test was done installing it for waching a single namespace) Deploy AMQ using a basic CR but exposing the webconsole. Example   apiVersion: broker.amq.io/v1beta1 kind: ActiveMQArtemis metadata:   name: ex-aao spec:   deploymentPlan:     persistenceEnabled: false     size: 1     image: placeholder     resources:       limits:         cpu: 1000m         memory: 1024Mi       requests:         cpu: 500m         memory: 1024Mi   console:     expose: true     sslEnabled: false        

      When deploying AMQ and the web-console is exposed, there are strange errors in the Operator logs:

       

      2022-07-07T14:17:33.554Z    ERROR    package k8s_actions    Failed to update *v1.Service    {"ActiveMQArtemis Name": "ex-aao-wconsj-0-svc", "error": "Service \"ex-aao-wconsj-0-svc\" is invalid: [metadata.resourceVersion: Invalid value: \"\": must be specified for an update, spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset, spec.ipFamilies[0]: Invalid value: []core.IPFamily(nil): primary ipFamily can not be unset]"}
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconcilerImpl).ProcessResources
          /remote-source/app/controllers/activemqartemis_reconciler.go:1377
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconcilerImpl).Process
          /remote-source/app/controllers/activemqartemis_reconciler.go:144
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*CreatingK8sResourcesState).Update
          /remote-source/app/controllers/creatingk8sresources_state.go:164
      github.com/artemiscloud/activemq-artemis-operator/pkg/utils/fsm.(*Machine).Update
          /remote-source/app/pkg/utils/fsm/fsm.go:144
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisFSM).Update
          /remote-source/app/controllers/activemqartemis_fsm.go:315
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconciler).Reconcile
          /remote-source/app/controllers/activemqartemis_controller.go:232
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227
      2022-07-07T14:17:33.554Z    ERROR    controller_v1beta1activemqartemis    updated Failed    {"ActiveMQArtemis Name": "ex-aao", "kind ": "v1.Service", "named ": "ex-aao-wconsj-0-svc", "error": "Service \"ex-aao-wconsj-0-svc\" is invalid: [metadata.resourceVersion: Invalid value: \"\": must be specified for an update, spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset, spec.ipFamilies[0]: Invalid value: []core.IPFamily(nil): primary ipFamily can not be unset]"}
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconcilerImpl).Process
          /remote-source/app/controllers/activemqartemis_reconciler.go:144
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*CreatingK8sResourcesState).Update
          /remote-source/app/controllers/creatingk8sresources_state.go:164
      github.com/artemiscloud/activemq-artemis-operator/pkg/utils/fsm.(*Machine).Update
          /remote-source/app/pkg/utils/fsm/fsm.go:144
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisFSM).Update
          /remote-source/app/controllers/activemqartemis_fsm.go:315
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconciler).Reconcile
          /remote-source/app/controllers/activemqartemis_controller.go:232
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227

      Those errors appear only when you expose the webconsole (regardless you enable TLS or not). If you don't expose the webconsole, the error doesn't appear.

      Anyway, the error doesn't seem to affect or have a negative impact: the service and the route are created and the webconsole is exposed and accesible.

      The whole log output is attached.operator-output.log

       

       

       

            rhn-support-rkieley Roderick Kieley
            ryanezil Rafael Yáñez Illescas
            Roman Vais Roman Vais
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: