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

Failure to create Route is not indicated in CR Status

    XMLWordPrintable

Details

    • Story
    • Resolution: Done
    • Normal
    • None
    • AMQ 7.11.0.OPR.1.GA
    • operator

    Description

      Route for a given Service might fail to be created due to length limit on route name (domain name of the route in particular). In this case, the error is almost silent: its only indicated in AMQ Operator's logs, but not in the CR status. As CR status is supposed to represent the status of all resources which are parented by the CR, it should represent the status of the Routes as well.

      Log from operator:

      Failed to create new *v1.Route	{"ActiveMQArtemis Name": "cfg-broker-23a-amq-acceptor-original-0-svc-rte", "Namespace": "brkconfig-tests-47fbfc", "error": "Route.route.openshift.io \"cfg-broker-23a-amq-acceptor-original-0-svc-rte\" is invalid: spec.host: Invalid value: \"cfg-broker-23a-amq-acceptor-original-0-svc-rte-brkconfig-tests-47fbfc.apps.mkrutov-rel711v2.broker.app-services-dev.net\": must be no more than 63 characters"}
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconcilerImpl).createRequestedResource
      	/workspace/app/controllers/activemqartemis_reconciler.go:1163
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconcilerImpl).createResource
      	/workspace/app/controllers/activemqartemis_reconciler.go:1146
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconcilerImpl).ProcessResources
      	/workspace/app/controllers/activemqartemis_reconciler.go:1126
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconcilerImpl).Process
      	/workspace/app/controllers/activemqartemis_reconciler.go:158
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconciler).Reconcile
      	/workspace/app/controllers/activemqartemis_controller.go:163
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
      	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.1/pkg/internal/controller/controller.go:114
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
      	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.1/pkg/internal/controller/controller.go:311
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
      	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.1/pkg/internal/controller/controller.go:266
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
      	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.1/pkg/internal/controller/controller.go:227
      

      Attachments

        Issue Links

          Activity

            People

              gtully@redhat.com Gary Tully
              mkrutov Mikhail Krutov
              Michal Toth Michal Toth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: