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

Deletion of statefulset doesn't lead to recreation of statefulset

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • AMQ 7.10.0.OPR.1.GA
    • AMQ 7.10.0.OPR.1.GA
    • operator
    • None

      This is a regression

       

      Used to work in 7.8

       

      Steps to reproduce:

       

      1) deploy operator

      2) create CR (in this particular case pods were erroring out due to wrong env, see ENTMQBR-6583)

      3) Delete statefulset

       

      Expected and used to: SS is recreated with proper variables filled in

       

      actual: no SS recreation happens, errors concerning reconciliation in operator log

       

      2022-04-26T08:17:03.711Z
      	ERROR	Failed to get StatefulSet.	{"ActiveMQArtemis Name": 
      "ex-aao-broker", "Deployment.Namespace": "", "Deployment.Name": "", 
      "error": "StatefulSet.apps \"ex-aao-broker-ss\" not found"}github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisFSM).Update	/remote-source/app/controllers/activemqartemis_fsm.go:315github.com/artemiscloud/activemq-artemis-operator/controllers.(*ActiveMQArtemisReconciler).Reconcile	/remote-source/app/controllers/activemqartemis_controller.go:230sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266sigs.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:2272022-04-26T08:17:03.711Z	INFO	package k8s_actions	Retrieving *v1.Secret	{"ActiveMQArtemis Name": "secret-broker-ex-aao-broker"} 

              rhn-support-rkieley Roderick Kieley
              mkrutov Mikhail Krutov
              Mikhail Krutov Mikhail Krutov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: