kyma-project / lifecycle-manager

Controller that manages the lifecycle of Kyma Modules in your cluster.
http://kyma-project.io
Apache License 2.0
9 stars 30 forks source link

Manifest CR is constantly in "Ready" state during deletion #1669

Closed Tomasz-Smelcerz-SAP closed 1 week ago

Tomasz-Smelcerz-SAP commented 2 weeks ago

Description

During the deletion the Manifest CR is in Ready state, it never enters Deleting state. The only thing that indicates the deletion in progress is the deletionTimestamp in the object metadata. It as observed on PROD, KLM version: europe-docker.pkg.dev/kyma-project/prod/lifecycle-manager:1.0.0. Some other modules are in the Warning state, but this one is Ready When testing on STAGE (the same KLM version) with all modules Ready, the module being deleted correctly switched to Deleting state during deletion.

Steps to reproduce

Environment Type

Managed

Environment Info

Kubernetes Version: x.y.z Docker Version: x.y.z Kyma CLI Version: x.y.z If used - k3d/k3s/minikube versions

Attachments

Dump from the command: kubectl -n kcp-system get --watch manifest 80ca5bc7-243d-4aae-a7c3-8f5792759cc2-keda-1095022605 -o yaml | tee watch.log

apiVersion: operator.kyma-project.io/v1beta2 kind: Manifest metadata: annotations: operator.kyma-project.io/fqdn: kyma-project.io/module/keda sync-oci-ref: sha256:5ce335c6c3a21d76ab32941cf771fcdc67ff149abe6a19b0ec9dbd0e2f7fe546 creationTimestamp: "2024-07-09T09:05:56Z" finalizers:

Tomasz-Smelcerz-SAP commented 2 weeks ago

I have verified that when all the modules are in Ready state, the module under deletion has Deleting state correctly set. It looks like if there are modules with Warning state in the Kyma installation, then deleting a Ready module succeeds, but the status of the module is never set to Deleting - it's just Ready until it's finally removed.

janmedrek commented 1 week ago

With the new 1.1.0 release this issue cannot be reproduced. We will reopen the ticket if that thing pops up again.