Bug 2055333
| Summary: | Unable to delete assisted-service operator | ||
|---|---|---|---|
| Product: | Red Hat Advanced Cluster Management for Kubernetes | Reporter: | bjacot |
| Component: | Infrastructure Operator | Assignee: | Sarah Lavie <slavie> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | high | Docs Contact: | Derek <dcadzow> |
| Priority: | low | ||
| Version: | rhacm-2.5 | CC: | ccrum, eglottma, mfilanov, mhrivnak, ram.onfergusonw55005, thnguyen, trwest, yfirst, yuhe |
| Target Milestone: | --- | Flags: | bjacot:
rhacm-2.5+
|
| Target Release: | rhacm-2.6 | ||
| Hardware: | All | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-06-09 02:11:10 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2068893 | ||
|
Description
bjacot
2022-02-16 17:50:07 UTC
Are there any finalizers that you see on the resources? Any update on the issue? @bjacot any updates? Are there any finalizers that you see on the resources? I see the traditional kubernetes finalizer. When i delete the operator shouldnt it clean up apiservice v1.admission.agentinstall.openshift.io? Its not doing that. If i manually remove that then i can delete. Is it created on a default namespace or in the same namespace as the other components? If it's in a different namespace then it will make sense, after all you deleted the namespace that the operator is running on.| I don't see that the operator have any finalizers so it means that it doesn't handle cleanup, most of the resources are inside the namespace but if we put something in the a default namespace then it will not be removed. @mhrivnak maybe you know what should be the standard in this situation? Does an operator responsible for cleanup as well? Looking at the code it looks like it's missing a controller reference controllerutil.SetControllerReference the same as any other reseource https://github.com/openshift/assisted-service/blob/8d81418a72d85143c1822df720877f6b6ea583d5/internal/controller/controllers/agentserviceconfig_controller.go#L1867 Maybe need to add it to https://github.com/openshift/assisted-service/blob/8d81418a72d85143c1822df720877f6b6ea583d5/internal/controller/controllers/agentserviceconfig_controller.go#L1890-L1913 *** Bug 2060134 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Red Hat Advanced Cluster Management 2.5 security updates, images, and bug fixes), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:4956 This comment was flagged a spam, view the edit history to see the original text if required. Thanks for share this !! https://www.targetpayandbenefits.review/ |