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

Operator doesn't recreate deleted statefulset

    XMLWordPrintable

Details

    • False
    • False
    • Hide
      1. deploy operaotr
      2. add CR
      3. delete statefulset resource
      4. expect SS to be recreated

       

      Operator does nothing even if CR is updated. To fix, operator restart or recreation of CR is required.

      Show
      deploy operaotr add CR delete statefulset resource expect SS to be recreated   Operator does nothing even if CR is updated. To fix, operator restart or recreation of CR is required.

    Description

      2022-02-08T13:48:12.661Z    INFO    controller_v2alpha4activemqartemis    Pods status updated    {"ActiveMQArtemis Name": "ex-aao"}
      2022-02-08T13:48:12.662Z    INFO    controller_v2alpha4activemqartemis    Reconciling ActiveMQArtemis    {"Request.Namespace": "oleg-sus", "Request.Name": "ex-aao"}
      2022-02-08T13:48:12.662Z    INFO    controller_v2alpha4activemqartemis    Updating ScalingState    {"ActiveMQArtemis Name": "ex-aao"}
      2022-02-08T13:48:12.662Z    ERROR    controller_v2alpha4activemqartemis    Failed to get StatefulSet.    {"ActiveMQArtemis Name": "ex-aao", "Deployment.Namespace": "", "Deployment.Name": "", "error": "StatefulSet.apps \"ex-aao-ss\" not found"}
      github.com/go-logr/zapr.(*zapLogger).Error
          /remote-source/app/vendor/github.com/go-logr/zapr/zapr.go:128
      github.com/artemiscloud/activemq-artemis-operator/pkg/controller/broker/v2alpha4/activemqartemis.(*ScalingState).Update
          /remote-source/app/pkg/controller/broker/v2alpha4/activemqartemis/scaling_state.go:81
      github.com/artemiscloud/activemq-artemis-operator/pkg/utils/fsm.(*Machine).Update
          /remote-source/app/pkg/utils/fsm/fsm.go:91
      github.com/artemiscloud/activemq-artemis-operator/pkg/controller/broker/v2alpha4/activemqartemis.(*ActiveMQArtemisFSM).Update
          /remote-source/app/pkg/controller/broker/v2alpha4/activemqartemis/activemqartemis_fsm.go:154
      github.com/artemiscloud/activemq-artemis-operator/pkg/controller/broker/v2alpha4/activemqartemis.(*ReconcileActiveMQArtemis).Reconcile
          /remote-source/app/pkg/controller/broker/v2alpha4/activemqartemis/activemqartemis_controller.go:161
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158
      k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1
          /remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133
      k8s.io/apimachinery/pkg/util/wait.JitterUntil
          /remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134
      k8s.io/apimachinery/pkg/util/wait.Until
          /remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88
       

      Attachments

        Issue Links

          Activity

            People

              gaohoward Howard Gao
              mkrutov Mikhail Krutov
              Mikhail Krutov Mikhail Krutov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: