Skip to content

Update to operator version 26.6.0 needs deletion of all objects #48030

Description

@bo0ts

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

After upgrading via OLM on OpenShift 4.20 the keycloak operator failed to upgrade the keycloak instance and almost all resources managed by the operator needed to be deleted.

The operator printed errors like this for all resources:

Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PATCH at: https://...:443/api/v1/namespaces/keycloak/services/keycloak-service?fieldManager=keycloakcontroller&force=true. Message: Operation cannot be fulfilled on services "keycloak-service": the object has been modified; please apply your changes to the latest version and try again. Received status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[], group=null, kind=services, name=keycloak-service, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Operation cannot be fulfilled on services "keycloak-service": the object has been modified; please apply your changes to the latest version and try again, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Conflict, status=Failure, additionalProperties={}). 

Version

26.6.0

Regression

  • The issue is a regression

Expected behavior

The operator updates the instance.

Actual behavior

The operator does nothing and prints errors.

How to Reproduce?

Update a keycloak instance. It might be of note that this keycloak resource is over 3 years old.

Anything else?

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions