Deleting a namespace hangs with Kubevirt in place

Solution Verified - Updated -

Issue

Deleting a namespace is hanging and has a Finalizer of "kubernetes" in the oc get project -o yaml output. The namespace will stay in a Terminating state. All hung namespaces in the OKD cluster have the same kubernetes finalizer, and force deleting the project is not working.

user@coder:/tmp$ oc get project delete -o yaml
apiVersion: project.openshift.io/v1
kind: Project
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"v1","kind":"Namespace","metadata":{"annotations":{"openshift.io/description":"","openshift.io/display-name":"","openshift.io/requester":"system:serviceaccount:default:name","openshift.io/example.com":"asdasdasd","openshift.io/example.com.supplemental-groups":"1000140000/10000","openshift.io/example.com.uid-range":"1000140000/10000"},"creationTimestamp":"2019-05-08T22:02:22Z","deletionTimestamp":"2019-05-08T22:02:31Z","name":"delete","namespace":"","resourceVersion":"38784358","selfLink":"/api/v1/namespaces/delete","uid":"f47c1b92-71dc-11e9-a06a-fa163ee0dcae"},"spec":{"finalizers":[]},"status":{"phase":"Terminating"}}
    openshift.io/description: ""
    openshift.io/display-name: ""
    openshift.io/requester: system:serviceaccount:default:umwami
    openshift.io/example: s0:c12,c4
    openshift.io/example.supplemental-groups: 1000140000/10000
    openshift.io/example-range: 1000140000/10000
  creationTimestamp: 2019-05-08T22:02:22Z
  deletionTimestamp: 2019-05-08T22:02:31Z
  name: delete
  resourceVersion: "38796850"
  selfLink: /apis/project.openshift.io/v1/projects/delete
  uid: 1h1h32hdwhjdf98yeksjh
spec:
  finalizers:
  - kubernetes
status:
  phase: Terminating

Environment

OpenShift Origin Community Distribution

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In