Bug 2068893 - Unable to delete assisted-service operator
Summary: Unable to delete assisted-service operator
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Infrastructure Operator
Version: rhacm-2.4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: rhacm-2.5
Assignee: Sarah Lavie
QA Contact:
Derek
URL:
Whiteboard:
Depends On: 2055333
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-27 10:51 UTC by Michael Filanov
Modified: 2022-10-03 20:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-10-03 20:22:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 3551 0 None open [[release-ocm-2.5] Bug 2068893: gc api server when controller is done](https://github.com/openshift/assisted-service/pul... 2022-03-27 10:55:20 UTC
Github stolostron backlog issues 21174 0 None None None 2022-03-27 14:52:37 UTC
Red Hat Issue Tracker MGMTBUGSM-245 0 None None None 2022-03-27 10:51:51 UTC

Description Michael Filanov 2022-03-27 10:51:18 UTC
Description of the problem:
I am following the steps to clean up or remove the assisted-service operator according to the destroy script in the assisted-service repo.
https://github.com/openshift/assisted-service/blob/master/deploy/operator/destroy.sh

the steps consist of deleting the namespace as the first step.  Unfortunately it's not cleaning up an API service.  The agentinstall api service is hanging around and preventing the operator to delete.  The ns sits in a terminating state.  This also affects cleanup or destroying RHACM bundled with AI.

workaround before deleting namespace is to delete api service.
oc delete apiservice v1.admission.agentinstall.openshift.io

Release version:
rhacm 2.5 + upstream operator
Operator snapshot version:

OCP version:

Browser Info:

Steps to reproduce:
1. Deploy assisted service operator with hive
2. Remove hive
3. try to remove assisted service operator namespace

Actual results:
Sits in terminating state
Expected results:
to remove all resources
Additional info:
work around:  Issue this command before trying to delete namespace
oc delete apiservice v1.admission.agentinstall.openshift.io

Comment 1 Yona First 2022-04-07 15:33:35 UTC
Verified with ACM snapshot 2.5.0-DOWNSTREAM-2022-04-07-07-21-43


Note You need to log in before you can comment on or make changes to this bug.