Bug 1960612
Summary: | Node disk info in overview/details does not account for second drive where /var is located | ||||||
---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Neil Girard <ngirard> | ||||
Component: | Console Kubevirt Plugin | Assignee: | Yaacov Zamir <yzamir> | ||||
Status: | CLOSED ERRATA | QA Contact: | Guohua Ouyang <gouyang> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.6 | CC: | aos-bugs, danken, dsantra, gouyang, kobi.zamir, nmukherj, spadgett, sradco, tnisan, yzamir | ||||
Target Milestone: | --- | ||||||
Target Release: | 4.8.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
Cause:
The current prometheus quey take the size of the disk mounted on "/"
Consequence:
if the machine has more then one disk mounted, any disk not mounted on "/" is ignored for the storage capacity calculation
Fix:
sum up the sizes of devices mounted at any mount point.
Result:
the storage capacity shown in OCP UI is similar to the value a user will get using "lsblk" command line tool, and summing the sizes of all mounted file systems.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-07-27 23:08:28 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: | |||||||
Attachments: |
|
Description
Neil Girard
2021-05-14 11:36:53 UTC
@sradco hi, Do you know what is the correct query to get capacity of all discs in a cluster node ? This is the query used now: https://github.com/openshift/console/blob/d0f39ed0e674dfc03edf3847898569ee8480f7f0/frontend/packages/metal3-plugin/src/components/baremetal-hosts/dashboard/queries.ts#L34 Note I: bz in comment#2 is not a duplicate, it's a different bug concerning the query used to collect the filesystem data. In https://bugzilla.redhat.com/show_bug.cgi?id=1909004 it was decided to collect only the size of the disk mounted in "/" ant this coused this bug where we only use one disk even it two are used by the node. Note II: https://github.com/openshift/console/pull/8978 try to fix that by summing up by device instead of by mount point Ah, that makes sense. Thanks! @yzamir I have tested the query: sum by (instance) (max by (device, instance) (node_filesystem_size_bytes{device=~"/.*"})) against my cluster and it returns the cumulative size of both drives. Verified on master. On 4.8.0-0.nightly-2021-06-01-043518,the filesystem's utilization of the node is '6.52 GiB available of 39.49 GiB' On master, the filesystem's utilization of the same node is '71.54 GiB available of 108.2 GiB' $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 70G 0 loop sr0 11:0 1 492K 0 rom rbd0 251:0 0 50G 0 disk /var/lib/kubelet/pods/96d5e356-365d-41eb-a3de-0ac143d97e09/volumes/kubernetes.io~csi/pvc-4bf3e5b7-825a- vda 252:0 0 40G 0 disk ├─vda1 252:1 0 1M 0 part ├─vda2 252:2 0 127M 0 part ├─vda3 252:3 0 384M 0 part /boot └─vda4 252:4 0 39.5G 0 part /sysroot vdb 252:16 0 70G 0 disk /var/hpvolumes vdc 252:32 0 70G 0 disk 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 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days |