Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Migration stuck if versions incompatible #30449

@torvitas

Description

@torvitas

Before reporting an issue

  • 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions