Bug 1813266 - Console incorrectly counts init containers in its readiness count
Summary: Console incorrectly counts init containers in its readiness count
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks: 1814869
TreeView+ depends on / blocked
 
Reported: 2020-03-13 12:09 UTC by Samuel Padgett
Modified: 2020-07-13 17:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1814869 (view as bug list)
Environment:
Version: 4.5.0-0.ci-2020-03-12-012451 Cluster ID: bfc758ad-8aa3-42a3-a6aa-bc05c35ed458 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0
Last Closed: 2020-07-13 17:19:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
console shows 5 ready containers (115.64 KB, image/png)
2020-03-13 12:09 UTC, Samuel Padgett
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 4728 0 None closed Bug 1813266: Don't include init containers in readiness counts 2020-04-17 18:25:55 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:20:26 UTC

Description Samuel Padgett 2020-03-13 12:09:04 UTC
Created attachment 1669921 [details]
console shows 5 ready containers

On the pod list, console counts for readiness include init containers. This is inconsistent with the CLI, which only shows readiness like (3/3) for containers that are not init containers.

CLI shows 3/3 ready containers for hive server, whereas the console shows 5/5.

$ oc get pods
NAME                                 READY   STATUS    RESTARTS   AGE
hive-metastore-0                     2/2     Running   0          10m
hive-server-0                        3/3     Running   0          10m
metering-operator-57868c7b97-xhs7r   2/2     Running   0          14m
presto-coordinator-0                 2/2     Running   0          9m53s
reporting-operator-d857b4b85-rg7x6   2/2     Running   0          9m17s

Comment 1 Samuel Padgett 2020-03-13 12:18:27 UTC
The CLI also only counts init container restarts if the pod is still initializing.

https://github.com/kubernetes/kubernetes/blob/release-1.18/pkg/printers/internalversion/printers.go

Comment 5 Peter Ruan 2020-03-20 07:19:09 UTC
verified with 4.5.0-0.nightly-2020-03-19-112259.  UI pod count matches those from the CLI.

Comment 8 errata-xmlrpc 2020-07-13 17:19:58 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.