-
Bug
-
Resolution: Done
-
Minor
-
AMQ 7.10.0.OPR.2.GA
-
None
-
False
-
None
-
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