Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23667

OCP 4.11 with EAP operator can not scale down to 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • OpenShift
    • None
    • False
    • None
    • False
    • Hide

      Important part of the failing test:

      Operator eapOperator = new EapOperatorBuilder().applicationImage(APPLICATION_IMAGE).build();
      eapOperator.create();
      eapOperator.setReplicas(0);
      eapOperator.update();
      
      Show
      Important part of the failing test: Operator eapOperator = new EapOperatorBuilder().applicationImage(APPLICATION_IMAGE).build(); eapOperator.create(); eapOperator.setReplicas(0); eapOperator.update();

      OperatorSmokeTest is one of our tests in the OpenShift test suite to test EAP operator basics. In OCP 4.11 the test scaleDownToZero started to fail after setting numnber of replicas to 0.

      The scale down was not successful and the number of replicas remained the same.

      There was an error in the operator log:

      {"level":"error","ts":1653479163.1598973,"logger":"controller","msg":"Reconciler error","controller":"wildflyserver-controller","name":"eap74","namespace":"74-pit","error":" [[Failed to update pod labels for pod eap74-0 with label [wildfly.org/operated-by-loadbalancer=disabled], error: Pod \"eap74-0\" is invalid: spec: Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds`, `spec.tolerations` (only additions to existing tolerations) or `spec.terminationGracePeriodSeconds` (allow it to be set to 1 if it was previously negative)
        core.PodSpec{
            ... // 10 identical fields
            AutomountServiceAccountToken: nil,
            NodeName:                     \"bpratt-iwwqmt-l5pcv-worker-0-6x5kz\",
            SecurityContext: &core.PodSecurityContext{
                ... // 11 identical fields
                FSGroupChangePolicy: nil,
                Sysctls:             nil,
      -         SeccompProfile:      nil,
      +         SeccompProfile:      &core.SeccompProfile{Type: \"RuntimeDefault\"},
            },
            ImagePullSecrets: {{Name: \"default-dockercfg-6tk94\"}, {Name: \"xtf-pull-secret\"}, {Name: \"xtf-pull-secret\"}, {Name: \"xtf-pull-secret\"}, ...},
            Hostname:         \"eap74-0\",
            ... // 16 identical fields
        }
      ]],","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error
          /src/github.com/wildfly/wildfly-operator/vendor/github.com/go-logr/zapr/zapr.go:128
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
          /src/github.com/wildfly/wildfly-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:237
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
          /src/github.com/wildfly/wildfly-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:209
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker
          /src/github.com/wildfly/wildfly-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:188
      k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
          /src/github.com/wildfly/wildfly-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155
      k8s.io/apimachinery/pkg/util/wait.BackoffUntil
          /src/github.com/wildfly/wildfly-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156
      k8s.io/apimachinery/pkg/util/wait.JitterUntil
          /src/github.com/wildfly/wildfly-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133
      k8s.io/apimachinery/pkg/util/wait.Until
          /src/github.com/wildfly/wildfly-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90"}
      

      Full operator log is attached.

      OperatorSmokeTest passed on OCP version 4.9.

            yborgess1@redhat.com Yeray Borges Santana
            dcihak@redhat.com Daniel Cihak
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: