Bug 1820232 - crictl stats doesn't show anything
Summary: crictl stats doesn't show anything
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 4.5
Hardware: Unspecified
OS: Linux
low
low
Target Milestone: ---
: 4.5.0
Assignee: Peter Hunt
QA Contact: Sunil Choudhary
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-02 14:48 UTC by Sunil Choudhary
Modified: 2020-07-13 17:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-13 17:25:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:25:22 UTC

Description Sunil Choudhary 2020-04-02 14:48:14 UTC
$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.5.0-0.nightly-2020-04-01-072147   True        False         25h     Cluster version is 4.5.0-0.nightly-2020-04-01-072147


sh-4.4# cat /etc/os-release 
NAME="Red Hat Enterprise Linux CoreOS"
VERSION="45.81.202004010441-0"
VERSION_ID="4.5"
OPENSHIFT_VERSION="4.5"
...

sh-4.4# crictl version
Version:  0.1.0
RuntimeName:  cri-o
RuntimeVersion:  1.17.0-9.dev.rhaos4.4.gitdfc8414.el8
RuntimeApiVersion:  v1alpha1

sh-4.4# rpm -qa | grep cri-o
cri-o-1.17.0-9.dev.rhaos4.4.gitdfc8414.el8.x86_64
sh-4.4# crictl stats

CONTAINER           CPU %               MEM                 DISK                INODES
sh-4.4#

Comment 1 Sunil Choudhary 2020-04-02 14:49:06 UTC
Looks similar to https://bugzilla.redhat.com/show_bug.cgi?id=1782999

Comment 2 Ryan Phillips 2020-04-02 14:57:03 UTC
Applies to 4.5 and 4.4, so a backport might be needed. `crictl stats` is not used by Openshift, so this is low priority.

Comment 3 Peter Hunt 2020-04-02 14:58:25 UTC
I suspect this has been fixed as of https://github.com/cri-o/cri-o/commit/da1b17dc7101f5bc560242bbe45632e409c97571
which is newer than the version used in your tests (https://github.com/cri-o/cri-o/commit/dfc84147e0123c608fb24952cdd757c6aee5639f)

I have to follow up on why it hasn't been promoted in the machine os content yet

Comment 4 Peter Hunt 2020-04-02 16:35:35 UTC
Update: promotions happen on Thursdays, and the one being built today will have the required version. Can you check with the new nightly built and see if it fixes the problem?

Comment 11 errata-xmlrpc 2020-07-13 17:25:01 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, 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/RHBA-2020:2409


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