Closed Tomasz-Smelcerz-SAP closed 1 week 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.
With the new 1.1.0 release this issue cannot be reproduced. We will reopen the ticket if that thing pops up again.
Description
During the deletion the Manifest CR is in
Ready
state, it never entersDeleting
state. The only thing that indicates the deletion in progress is thedeletionTimestamp
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 theWarning
state, but this one isReady
When testing on STAGE (the same KLM version) with all modulesReady
, the module being deleted correctly switched toDeleting
state during deletion.Steps to reproduce
kubectl -n kyma-system edit kyma default
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:
group: apps kind: Deployment name: keda-manager namespace: kyma-system version: v1
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:
group: apps kind: Deployment name: keda-manager namespace: kyma-system version: v1
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" deletionGracePeriodSeconds: 0 deletionTimestamp: "2024-07-09T09:40:02Z" finalizers:
group: apps kind: Deployment name: keda-manager namespace: kyma-system version: v1
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" deletionGracePeriodSeconds: 0 deletionTimestamp: "2024-07-09T09:40:02Z" finalizers:
group: apps kind: Deployment name: keda-manager namespace: kyma-system version: v1
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" deletionGracePeriodSeconds: 0 deletionTimestamp: "2024-07-09T09:40:02Z" finalizers: