Bug 2099942 - the pod can not be cleaned up by “helm uninstall” and was left there as an empty pod
Summary: the pod can not be cleaned up by “helm uninstall” and was left there as an em...
Keywords:
Status: CLOSED DUPLICATE of bug 2094865
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 4.10
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ---
: ---
Assignee: Peter Hunt
QA Contact: pmali
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-22 04:41 UTC by yadvendra singh
Modified: 2022-07-04 07:18 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-30 20:30:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.