-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flapping state of module in kyma-CR #1080
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
We agreed on investigating the root cause of this behaviour estimate it to 1. Follow-up issue for the fix will be linked here as well. |
After investigating into this Issue I have the following conclusion:
Acceptance Criterias:
if obj.GetDeletionTimestamp().IsZero() {
obj.SetStatus(status.WithState(shared.StateProcessing).WithOperation(ErrWarningResourceSyncStateDiff.Error()))
} else if status.State != shared.StateWarning {
obj.SetStatus(status.WithState(shared.StateDeleting).WithOperation("manifest should be deleted"))
}
By("And Module Manifest CR is consistently in a \"Warning\" State")
Eventually(CheckManifestIsInState).
WithContext(ctx).
WithArguments(kyma.GetName(), kyma.GetNamespace(), module.Name, controlPlaneClient,
shared.StateWarning).
Should(Succeed())
Consistently(CheckManifestIsInState).
WithContext(ctx).
WithArguments(kyma.GetName(), kyma.GetNamespace(), module.Name, controlPlaneClient,
shared.StateWarning).
Should(Succeed()) |
Template-Operator Changes will be done in kyma-project/template-operator#147 |
Closed
This was referenced Feb 9, 2024
kyma-bot
pushed a commit
to kyma-project/template-operator
that referenced
this issue
Feb 12, 2024
<!-- Thank you for your contribution. Before you submit the pull request: 1. Follow contributing guidelines, templates, the recommended Git workflow, and any related documentation. 2. Read and submit the required Contributor Licence Agreements (https://github.com/kyma-project/community/blob/main/CONTRIBUTING.md#agreements-and-licenses). 3. Test your changes and attach their results to the pull request. 4. Update the relevant documentation. If the pull request requires a decision, follow the [decision-making process](https://github.com/kyma-project/community/blob/main/governance.md) and replace the PR template with the [decision record template](https://github.com/kyma-project/community/blob/main/.github/ISSUE_TEMPLATE/decision-record.md). --> **Description** Changes proposed in this pull request: - Only add finalizer if the resource is not under deletion **Related issue(s)** kyma-project/lifecycle-manager#1080
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If a module goes into
warning
state during deletion the kyma-CR will report it alternatingIs Deleting
andWarning
Steps to reproduce
eg:
install nats module
create resources on nats:
delete the nats module
it will go into warning state as the manager will not remove the reconciler (resources exist on the nats cluster)
the result can be seen in the attachment
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
Screen.Recording.2023-11-23.at.11.54.07.mov
The text was updated successfully, but these errors were encountered: