Description of problem:
Node list page, CPU column only shows CPU usage, but for Memory and Filesystem, we are showing both usage and total in usage/total format
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.admin user goes to Node list page, check the columns in table
1. Memory column shows 2.03 GiB / 15.2 GiB, Filesystem shows 33.93 GiB / 493.6 GiB but CPU column only show usage 0.217 cores
1. CPU column should also show values in format: usage/total, sometimes master node has 8 vCPU, while some other nodes may only havef 4 vCPU, it's better if we can show the total number in the column to be consistent with other columns
Created attachment 1699443 [details]
Node Lists Page
Reassigning to Sam as he already has a PR in flight to change node list metrics at https://github.com/openshift/console/pull/5819
Checked on 4.7 cluster with payload: 4.7.0-0.ci-2020-10-11-211311
Now on nodes list page, in cpu column, it shows used cpu and total cpu, eg: "0.416 / 4 cores", to keep consistent with other columns format, it's better to show as "0.416 cores/ 4 cores". Sam, WDYT?
Based on question in Comment 9, assigned the bug first. Thanks!
I'm a little undecided on this since the unit will always be the same, and there's not much space in the table. But probably we should be consistent.
On Nodes list page, now we show 0.481 cores / 4 cores
Goes to Node Terminal and check CPU info manually
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model name: Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
CPU MHz: 3104.057
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 1024K
L3 cache: 36608K
NUMA node0 CPU(s): 0-3
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves ida arat pku ospke
sh-4.4# cat /proc/cpuinfo | grep 'processor' | wc -l
sh-4.4# cat /proc/cpuinfo | grep 'physical id' | uniq | wc -l
From above output, we can know that the node has 1 physical CPU and 4 logic CPUs, I understand that the number 4 is not the number of cores so we should remove the `cores` unit labels from the list
Let me know if I'm wrong
Simon, can you help answer the question in comment #15?
I guess it depends on whether "cores" applies to the Kubernetes level  (e.g. 1 core = 1 vCPU or 1 hyperthread) or to the hardware level (1 core = 1 physical core). I'm quite sure that most people would assume Kubernetes cores here. I'm not sure if there's a term other than "cores" which would be better suited.
Thank you very much @firstname.lastname@example.org, then I think using 'cores' is more reasonable and acceptable
based on comment 15, comment 18 and comment 19, now Nodes list page is showing correct usage/total
Moving to VERIFIED
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.