Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-4191

Failed to delete namespace of "test" during deploy and un-deploy the edu workload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.10
    • openshift-apiserver
    • Moderate
    • False
    • Hide

      None

      Show
      None
    • 12/14: pending update re: results on 4.10.45 vs. 4.10.43

      Description of problem:

      Running the test script of deploying and un-deploying the edu workloads with 4.10.42 build, there is a failure case with following error:
      ```2022-11-23 16:29:30,485 p=237022 u=pipeline_tests n=ansible | fatal: [localhost]: FAILED! => {"attempts": 150, "changed": false, "resources": [{"apiVersion": "v1", "kind": "Namespace", "metadata": {"annotations": {"openshift.io/sa.scc.mcs": "s0:c36,c20", "openshift.io/sa.scc.supplemental-groups": "1001300000/10000", "openshift.io/sa.scc.uid-range": "1001300000/10000"}, "creationTimestamp": "2022-11-23T22:10:39Z", "deletionTimestamp": "2022-11-23T22:22:56Z", "labels": {"kubernetes.io/metadata.name": "test"}, "managedFields": [{"apiVersion": "v1", "fieldsType": "FieldsV1", "fieldsV1": {"f:metadata": {"f:labels": {".": {}, "f:kubernetes.io/metadata.name": {}}}}, "manager": "OpenAPI-Generator", "operation": "Update", "time": "2022-11-23T22:10:39Z"}, {"apiVersion": "v1", "fieldsType": "FieldsV1", "fieldsV1": {"f:metadata": {"f:annotations": {".": {}, "f:openshift.io/sa.scc.mcs": {}, "f:openshift.io/sa.scc.supplemental-groups": {}, "f:openshift.io/sa.scc.uid-range": {}}}}, "manager": "cluster-policy-controller", "operation": "Update", "time": "2022-11-23T22:10:39Z"}, {"apiVersion": "v1", "fieldsType": "FieldsV1", "fieldsV1": {"f:status": {"f:conditions": {".": {}, "k:{\"type\":\"NamespaceContentRemaining\"}": {".": {}, "f:lastTransitionTime": {}, "f:message": {}, "f:reason": {}, "f:status": {}, "f:type": {}}, "k:{\"type\":\"NamespaceDeletionContentFailure\"}": {".": {}, "f:lastTransitionTime": {}, "f:message": {}, "f:reason": {}, "f:status": {}, "f:type": {}}, "k:{\"type\":\"NamespaceDeletionDiscoveryFailure\"}": {".": {}, "f:lastTransitionTime": {}, "f:message": {}, "f:reason": {}, "f:status": {}, "f:type": {}}, "k:{\"type\":\"NamespaceDeletionGroupVersionParsingFailure\"}": {".": {}, "f:lastTransitionTime": {}, "f:message": {}, "f:reason": {}, "f:status": {}, "f:type": {}}, "k:{\"type\":\"NamespaceFinalizersRemaining\"}": {".": {}, "f:lastTransitionTime": {}, "f:message": {}, "f:reason": {}, "f:status": {}, "f:type": {}}}}}, "manager": "kube-controller-manager", "operation": "Update", "subresource": "status", "time": "2022-11-23T22:23:19Z"}], "name": "test", "resourceVersion": "839848", "uid": "1975ce7d-dde4-4423-9d3f-ff5c970932f4"}, "spec": {"finalizers": ["kubernetes"]}, "status": {"conditions": [{"lastTransitionTime": "2022-11-23T22:28:19Z", "message": "All resources successfully discovered", "reason": "ResourcesDiscovered", "status": "False", "type": "NamespaceDeletionDiscoveryFailure"}, {"lastTransitionTime": "2022-11-23T22:23:18Z", "message": "All legacy kube types successfully parsed", "reason": "ParsedGroupVersions", "status": "False", "type": "NamespaceDeletionGroupVersionParsingFailure"}, {"lastTransitionTime": "2022-11-23T22:23:26Z", "message": "Failed to delete all resource types, 1 remaining: unexpected items still remain in namespace: test for gvr: /v1, Resource=pods", "reason": "ContentDeletionFailed", "status": "True", "type": "NamespaceDeletionContentFailure"}, {"lastTransitionTime": "2022-11-23T22:23:18Z", "message": "Some resources are remaining: persistentvolumeclaims. has 2 resource instances, pods. has 6 resource instances", "reason": "SomeResourcesRemain", "status": "True", "type": "NamespaceContentRemaining"}, {"lastTransitionTime": "2022-11-23T22:23:18Z", "message": "Some content in the namespace has finalizers remaining: kubernetes.io/pvc-protection in 2 resource instances", "reason": "SomeFinalizersRemain", "status": "True", "type": "NamespaceFinalizersRemaining"}], "phase": "Terminating"}}]}
      2022-11-23 16:29:30,487 p=237022 u=pipeline_tests n=ansible | PLAY RECAP ********************************************* ```

      Version-Release number of selected component (if applicable):

      4.10.42 and 4.10.43

      How reproducible:

      Observed two times so far 

      Steps to Reproduce:

      1.Deploy SNO using ZTP site config and policy
      2.Deploy and undeploy eDU workload in iteration 
      3.Verify namesspace "test" used for deployment has been been deleted 
      

      Actual results:

      The NS deletion failed.

      Expected results:

      The namespace was deleted successfully

      Additional info:

       

            Unassigned Unassigned
            jenchen@redhat.com Jennifer Chen
            Rahul Gangwar Rahul Gangwar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: