Skip to content
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

fix: deletion error when deleting dashboard configmaps #274

Merged

Conversation

sthaha
Copy link
Collaborator

@sthaha sthaha commented Oct 11, 2023

This commit fixes following reconcilation error when deleting dashboards installed to openshift-config-managed namespace.

continue reconciliation despite error   {"name":"kepler", "error": "power-monitoring-overview (/v1, Kind=ConfigMap): deleter: timed out waiting for deletion : timed out waiting for the condition"}
continue reconciliation despite error   {"name":"kepler", "error": "power-monitoring-by-ns (/v1, Kind=ConfigMap): deleter: timed out waiting for deletion : timed out waiting for the condition"}
finalizer state                         {"name":"kepler", "reconciler": "finalizer", "deleted": true, "finalizer": true}
2023-10-06T08:24:03Z    ERROR   Reconciler error        {"controller": "kepler", "controllerGroup": "kepler.system.sustainable.computing.io", "controllerKind": "Kepler", "Kepler": {"name":"kepler"}, "namespace": "", "name": "kepler", "reconcileID": "514af8c3-7d06-4dde-ac80-daffd24c5138", "error": "power-monitoring-by-ns (/v1, Kind=ConfigMap): deleter: timed out waiting for deletion : timed out waiting for the condition"}

The error occurs because the client does not cache objects in openshift-config-managed namespace, which this commit fixes

Fixes: #271
Signed-off-by: Sunil Thaha sthaha@redhat.com

This commit fixes following reconcilation error when deleting dashboards
installed to `openshift-config-managed` namespace.
```
continue reconciliation despite error   {"name":"kepler", "error": "power-monitoring-overview (/v1, Kind=ConfigMap): deleter: timed out waiting for deletion : timed out waiting for the condition"}
continue reconciliation despite error   {"name":"kepler", "error": "power-monitoring-by-ns (/v1, Kind=ConfigMap): deleter: timed out waiting for deletion : timed out waiting for the condition"}
finalizer state                         {"name":"kepler", "reconciler": "finalizer", "deleted": true, "finalizer": true}
2023-10-06T08:24:03Z    ERROR   Reconciler error        {"controller": "kepler", "controllerGroup": "kepler.system.sustainable.computing.io", "controllerKind": "Kepler", "Kepler": {"name":"kepler"}, "namespace": "", "name": "kepler", "reconcileID": "514af8c3-7d06-4dde-ac80-daffd24c5138", "error": "power-monitoring-by-ns (/v1, Kind=ConfigMap): deleter: timed out waiting for deletion : timed out waiting for the condition"}
```
The error occurs because the client does not cache objects in `openshift-config-managed`
namespace, which this commit fixes

Fixes: sustainable-computing-io#271
Signed-off-by: Sunil Thaha <sthaha@redhat.com>
(cherry picked from commit c8a68a7acdda7d35d9bfd6f3e8a124320e0baef2)
@sthaha sthaha requested a review from vprashar2929 October 11, 2023 06:39
Copy link
Collaborator

@vprashar2929 vprashar2929 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sthaha sthaha merged commit c057003 into sustainable-computing-io:v1alpha1 Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kepler Instance gets timeout at time of deletion
2 participants