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

Operator address controller doesn't check for CR Status fields before trying to apply resources to the pod

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • False
    • None
    • False

      See attached logs for address example. operator should wait for Pods to be ready as indicated by CR Status fields.

      2023-06-22T00:47:35.530Z	INFO	Trying finding pod ex-aao-ss-0	{"Request.Namespace": "broker-largemess", "Request.Name": "ex-aaoaddress"}
      2023-06-22T00:47:35.530Z	ERROR	Pod IsNotFound	{"Request.Namespace": "broker-largemess", "Request.Name": "ex-aaoaddress", "Namespace": "broker-largemess", "Name": "ex-aaoaddress", "error": "Pod \"ex-aao-ss-0\" not found"}
      github.com/artemiscloud/activemq-artemis-operator/controllers.getPodBrokers
      	/workspace/app/controllers/activemqartemisaddress_controller.go:360
      github.com/artemiscloud/activemq-artemis-operator/controllers.createQueue
      	/workspace/app/controllers/activemqartemisaddress_controller.go:190
      github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisAddressReconciler).Reconcile
      	/workspace/app/controllers/activemqartemisaddress_controller.go:118
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
      	/workspace/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
      	/workspace/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
      	/workspace/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
      	/workspace/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227
      

              dbruscin Domenico Francesco Bruscino
              mkrutov Mikhail Krutov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: