Bug 2002262

Summary: [vSphere] Incorrect user agent in vCenter sessions list
Product: OpenShift Container Platform Reporter: dmoiseev
Component: Cloud ComputeAssignee: dmoiseev
Cloud Compute sub component: Other Providers QA Contact: sunzhaohua <zhsun>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: mrobson
Version: 4.10   
Target Milestone: ---   
Target Release: 4.10.0   
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-03-10 16:08:32 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:
Bug Depends On:    
Bug Blocks: 2004953    

Description dmoiseev 2021-09-08 11:20:18 UTC
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 2 sunzhaohua 2021-09-18 09:02:13 UTC
I noticed in pr Denis has tested this bug, so move to verified.

QE don't have admin account, couldn't test.

$ govc session.ls
govc: NoPermission

Comment 7 errata-xmlrpc 2022-03-10 16:08:32 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 (Moderate: OpenShift Container Platform 4.10.3 security 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/RHSA-2022:0056