Removing leftover resources from container-native virtualization 2.1 uninstallation
Uninstalling container-native virtualization 2.1 does not remove all container-native virtualization resources from the cluster. These resources prevent the openshift-cnv namespace from being deleted and prevents re-installation of container-native virtualization. This content is not included.BZ#1757705, This content is not included.BZ#1712429
The workaround is to manually delete these resources and the openshift-cnv namespace.
Procedure
-
The
hco-operatorCluster Service Version (CSV) remains in one or more namespaces. Use the following command to find and delete these CSVs:-
List the namespaces that have the
kubevirt-hyperconverged-operatorCSV:$ oc get csv --all-namespaces | grep kubevirt-hyperconverged-operator -
Delete each CSV from the namespaces listed in the previous step. Run this command for each of the namespaces:
$ oc delete csv kubevirt-hyperconverged-operator -n <namespace>
-
-
Delete the following resources:
$ oc delete service kubemacpool-service -n openshift-cnv $ oc delete og hco-catalogsource -n openshift-marketplace $ oc delete apiservices v1alpha3.subresources.kubevirt.io -n openshift-cnv -
Delete the
openshift-cnvnamespace:$ oc delete ns openshift-cnv