Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2099942

Summary: the pod can not be cleaned up by “helm uninstall” and was left there as an empty pod
Product: OpenShift Container Platform Reporter: yadvendra singh <yasingh>
Component: NodeAssignee: Peter Hunt <pehunt>
Node sub component: CRI-O QA Contact: pmali
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: urgent CC: cgaynor, dwalsh, ealcaniz, eglottma, mfisher, mzheng, nagrawal, openshift-bugs-escalate, pehunt, pthomas, rphillips, schoudha, yasingh
Version: 4.10   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-30 20:30:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description yadvendra singh 2022-06-22 04:41:57 UTC
Description of problem:


the pod can not be cleaned up by “helm uninstall” and was left there as an empty pod. after that oc command cannot list those left empty pod

due to this when the same name pod create again to the same namespace and then unable to login to that pod using oc exec, it misrouted to the empty pod 
and unable to remove that empty pod from oc command 


How reproducible:
   perform the "helm install" to install the helm chart and The init container install failure. 
Then the clean script use the "helm uninstall" command to clean the env.  The empty pod was left there in the end.  

Steps to Reproduce:
1.use below command to install & uninstall pod and override some values by --set parameter
2.helm install sec --namespace cran1 ./helm/sec/
3. helm uninstall sec --namespace cran1

Actual results: empty pod is getting  created  when helm is used for pod creation, when we try to remove the pod using uninstall command using helm some pod not cleaned up and it creates issue when creating new pod again with same name in the same namespace where the existing empty pods are present


Expected results: pods created using helm should be successfully deployed and when try to remove pod using helm uninstall it should not left empty pod