Bug 2036967

Summary: [4.8.z] vsphere-problem-detector: session leak
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: StorageAssignee: Robert Bost <rbost>
Storage sub component: Operators QA Contact: Wei Duan <wduan>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs
Version: 4.10   
Target Milestone: ---   
Target Release: 4.8.z   
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-01-18 06:33:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2033733    
Bug Blocks: 2039333, 2039341    

Comment 4 Wei Duan 2022-01-12 08:31:45 UTC
Verified with 4.8.0-0.nightly-2022-01-11-214336 pass

Using following command to monitor the session and restart the vsphere-problem-detector-operator pod, we see new session launched and released immediately
$ while true; do date; govc session.ls; done
$ oc -n openshift-cluster-storage-operator delete pod vsphere-problem-detector-operator-5cfcfc76f7-c6mc7 (restart vsphere-problem-detector-operator pod)  
We could observer a new session created and released in a short time as below: 

$ grep "52fb5d6d-be05-8804-c867-f4b097493b72" /tmp/session.log
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  0s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  1s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  1s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  1s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  1s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  1s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  1s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  1s      10.8.33.116  Go-http-client/1.1   
52fb5d6d-be05-8804-c867-f4b097493b72  VSPHERE.LOCAL\Administrator                                        2022-01-12 07:59  1s      10.8.33.116  Go-http-client/1.1

Comment 6 errata-xmlrpc 2022-01-18 06:33:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.8.27 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:0113