How to remove the openshift-cnv project deployed by OpenShift Virtualization operator in OpenShift 4.6 or earlier?
Issue
- Not able to remove the contents of
openshift-cnv
namespace properly. - Namespaces getting stuck in terminating state after deleting them. The below event is common in each of the yaml definition of failing namespaces.
- lastTransitionTime: "2020-08-14T07:25:51Z"
message: 'Discovery failed for some groups, 1 failing: unable to retrieve the
complete list of server APIs: upload.cdi.kubevirt.io/v1alpha1: the server is
currently unable to handle the request'
reason: DiscoveryFailed
- Directly deleted the
openshift-cnv
namespace, instead of following the documented steps.
Environment
- Red Hat OpenShift Container Platform
- 4.5
- Red Hat OpenShift Virtualization
- 2.3 to 2.5
- Do not use this in newer versions, follow the proper uninstallation doc instead
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.