Bug 2004953

Summary: [vSphere] Incorrect user agent in vCenter sessions list
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Cloud ComputeAssignee: dmoiseev
Cloud Compute sub component: Other Providers QA Contact: Yihao Guo <yihguo>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: mfedosin
Version: 4.10   
Target Milestone: ---   
Target Release: 4.9.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: 2021-11-01 13:44:33 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: 2002262    
Bug Blocks: 2047844, 2048496    

Description OpenShift BugZilla Robot 2021-09-16 13:44:05 UTC
+++ This bug was initially created as a clone of Bug #2002262 +++

Description of problem:
Currently user-agent record in vCenter session list does not allow to track MAPI related open sessions.

Version-Release number of selected component (if applicable):
4.5+, or whatever version where vsphere platform was introduced

How reproducible:
Always (?? checked on vCenter 7.0)

Steps to Reproduce:
1. Setup IPI cluster on vSphere platform
2. Check vsphere sessions list via, for example ```govc session.ls```. Or in vCenter web interface.

Actual results:
MAPI related session/s have `Go-http-client/1.1` user-agent.


Expected results:
User agent record should have some meaningful value, which allow to track sessions opened by vsphere-machine-controller.


Additional info:
there was an attempt to set this user-agent in vsphere controller, but it doesn't work: https://github.com/openshift/machine-api-operator/blob/aa3aa87654a3db7dd96feb4c157e744c4bcce986/pkg/controller/vsphere/session/session.go#L92

Comment 8 errata-xmlrpc 2021-11-01 13:44:33 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.9.5 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-2021:4005