You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deleting an OpentelemetryColletor object with the command kubectl delete opentelemetrycollector cluster -n observability-metrics --cascade=foreground the object does not delete and is instead stuck in a cycle trying to recreate dependent objects and dependent objects being deleted
Steps to Reproduce
Delete an OpentelemetryColletor object with --cascade=foreground
Expected Result
Object's dependent resources delete cleanly then the collector is deleted
Actual Result
Collector is not deleted, the underlying resources such as deployments or daemonsets and others are stuck in a cycle of being deleted and created multiple times per second
Example of watching the underlying deployment of the collector (after running the command to delete the collector object)
hey, this is something I haven't tested but can look in to. We should probably write a test for this as well. My bet is the reconciler isn't checking for a deletion timestamp as a blocker to reconciliation
okay was easily able to repro this. I think the problem has to do with deletion timestamp and finalizers. The fix should be simple – check for a deletion timestamp on the CRD we get. I'm not positive what to do about finalizers, i don't think we need to do anything special for it, but going to check with @pavolloffay on that one.
Yep, checking for the deletion timestamp was enough. I also found a fix for a pervasive operator issue that I'm going to solve like cockroach db here by using the retry.
Should be all set in the next release. I wrote a unit test to catch this and also tested manually on a kind cluster. Please let me know if you see any further issues after upgrading. Thank you!
Component(s)
No response
What happened?
Description
When deleting an OpentelemetryColletor object with the command
kubectl delete opentelemetrycollector cluster -n observability-metrics --cascade=foreground
the object does not delete and is instead stuck in a cycle trying to recreate dependent objects and dependent objects being deletedSteps to Reproduce
Delete an OpentelemetryColletor object with
--cascade=foreground
Expected Result
Object's dependent resources delete cleanly then the collector is deleted
Actual Result
Collector is not deleted, the underlying resources such as deployments or daemonsets and others are stuck in a cycle of being deleted and created multiple times per second
Example of watching the underlying deployment of the collector (after running the command to delete the collector object)
Kubernetes Version
1.25
Operator version
0.83.0
Collector version
0.83.0
Environment information
Environment
OS: (e.g., "Amazon Linux 2")
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: