Bug 2002262 - [vSphere] Incorrect user agent in vCenter sessions list
Summary: [vSphere] Incorrect user agent in vCenter sessions list
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Compute
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.10.0
Assignee: dmoiseev
QA Contact: sunzhaohua
URL:
Whiteboard:
Depends On:
Blocks: 2004953
TreeView+ depends on / blocked
 
Reported: 2021-09-08 11:20 UTC by dmoiseev
Modified: 2022-03-10 16:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:08:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift machine-api-operator pull 912 0 None None None 2021-09-08 11:52:46 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:08:52 UTC

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


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