Description of problem: oc adm top --help indicates that oc adm top can display storage usage, however, oc adm top can only display CPU and memory usage. $ oc adm top --help Show usage statistics of resources on the server This command analyzes resources managed by the platform and presents current usage statistics. Usage: oc adm top [flags] Available Commands: images Show usage statistics for Images imagestreams Show usage statistics for ImageStreams node Display Resource (CPU/Memory/Storage) usage of nodes pod Display Resource (CPU/Memory/Storage) usage of pods Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Run oc adm top --help command Actual results: It shows that oc adm top can display CPU/Memory/Storage usage Expected results: It shows that oc adm top can display CPU/Memory usage Additional info:
This was fixed in kubernetes v1.21 (https://github.com/kubernetes/kubernetes/pull/99060) and should be available in oc 4.8
Confirmed with latest oc , only show cpu and memory now: [root@localhost ~]# oc version --client Client Version: 4.8.0-202104292348.p0.git.a765590-a765590 [root@localhost ~]# oc adm top -h Show usage statistics of resources on the server This command analyzes resources managed by the platform and presents current usage statistics. Usage: oc adm top [flags] Available Commands: images Show usage statistics for images imagestreams Show usage statistics for image streams node Display Resource (CPU/Memory) usage of nodes pod Display Resource (CPU/Memory) usage of pods ... [root@localhost ~]# oc adm top node NAME CPU(cores) CPU% MEMORY(bytes) MEMORY% ip-10-0-128-170.ec2.internal 334m 11% 3775Mi 25% ip-10-0-131-191.ec2.internal 526m 15% 6734Mi 46% ip-10-0-147-197.ec2.internal 1139m 37% 7792Mi 25% ip-10-0-151-66.ec2.internal 1188m 33% 7574Mi 51% ip-10-0-163-33.ec2.internal 107m 3% 2047Mi 6% ip-10-0-195-108.ec2.internal 93m 3% 1686Mi 11% ip-10-0-208-152.ec2.internal 717m 20% 8638Mi 59% ip-10-0-212-184.ec2.internal 103m 3% 1799Mi 12% ip-10-0-237-27.ec2.internal 150m 5% 1869Mi 12%
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