Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-1667

[GHI#30449] Migration stuck if versions incompatible

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [X] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      operator

      Describe the bug

      When performing a keycloak upgrade to a version that has an incompatible infinispan version keycloak is stuck with one of three pods running (on the old version) and with another one (on the new version) being unable to get healthy.

      Version

      24.05

      Regression

      [ ] The issue is a regression

      Expected behavior

      When performing a keycloak upgrade, the operator is supposed to scale down the keycloak statefulset to one pod (on the new version) to make keycloak perform a database migration on just one pod instead of having multiple pods running. After the pod is back up and healthy the statefulset is scaled back up to three pods.

      The described process would make all pods go away and start a new pod on the new version, do the possibly needed migration, and then start another one until all three are running again.

      Actual behavior

      When performing a keycloak upgrade, the operator scales down the keycloak statefulset to one pod (on the old version) as soon as this is done it updates the version in the statefulset to the new one and scales it back to three pods.

      How to Reproduce?

      Do an upgrade from keycloak v23 to v24 using the operator by changing the image in the keycloak resource.

      Anything else?

      No response

            Unassigned Unassigned
            pvlha Pavel Vlha
            Keycloak Cloud Native
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: