Bug 1820232

Summary: crictl stats doesn't show anything
Product: OpenShift Container Platform Reporter: Sunil Choudhary <schoudha>
Component: NodeAssignee: Peter Hunt <pehunt>
Status: CLOSED ERRATA QA Contact: Sunil Choudhary <schoudha>
Severity: low Docs Contact:
Priority: low    
Version: 4.5CC: aos-bugs, jokerman
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-13 17:25:01 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 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