Bug 1949554

Summary: Metrics of vSphere CSI driver sidecars are not collected
Product: OpenShift Container Platform Reporter: Jan Safranek <jsafrane>
Component: StorageAssignee: Jan Safranek <jsafrane>
Storage sub component: Operators QA Contact: Wei Duan <wduan>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:00:33 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:

Description Jan Safranek 2021-04-14 14:25:32 UTC
When the vSphere CSI driver is installed, we do not collect metrics of its CSI drivers.

Comment 2 Wei Duan 2021-04-20 03:53:48 UTC
Verified pass on 4.8.0-0.nightly-2021-04-19-121657

$ oc get pvc -A 
NAMESPACE      NAME    STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
wduan-csi      mypvc   Bound    pvc-ea0489b7-468c-41ed-8870-0534bb13159d   2Gi        RWO            thin-csi       9m52s
wduan-intree   mypvc   Bound    pvc-713ca14d-694c-4091-bf8a-9f1ae73a3773   2Gi        RWO            thin           12m


 TYPE kubelet_volume_stats_available_bytes gauge
kubelet_volume_stats_available_bytes{namespace="wduan-csi",persistentvolumeclaim="mypvc"} 1.916198912e+09
kubelet_volume_stats_available_bytes{namespace="wduan-intree",persistentvolumeclaim="mypvc"} 2.023571456e+09

Comment 4 Jan Safranek 2021-04-23 10:12:08 UTC
`unknown-driver` is OK. It comes from the sidecars when it calls GetPluginInfo to get the driver name. The sidecar does not know name of the driver yet at that point. Therefore it's accounted as 'unknown-driver'. You could see also other calls with `unknown-driver`, such as Probe().

Comment 5 Wei Duan 2021-04-23 13:10:36 UTC
Thanks, change the status to Verified.

Comment 8 errata-xmlrpc 2021-07-27 23:00: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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and 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-2021:2438