Bug 1738702 - Openshift 4.2 web ui shows pod as "completed" when containers are still running
Summary: Openshift 4.2 web ui shows pod as "completed" when containers are still running
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.2.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-07 22:15 UTC by Alexander Pavel
Modified: 2019-10-16 06:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-16 06:35:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
YAML manifest to reproduce issue (285 bytes, text/plain)
2019-08-07 22:15 UTC, Alexander Pavel
no flags Details
Screenshot of web interface showing "Completed" status with containers still running (34.94 KB, image/png)
2019-08-07 22:16 UTC, Alexander Pavel
no flags Details
Now the pod is Running when one of the containers is Finished and the other is still Running. (42.53 KB, image/png)
2019-08-22 02:58 UTC, XiaochuanWang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 2402 0 None closed Bug 1738702: align console pod status with CLI 2020-08-05 12:16:07 UTC
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:35:25 UTC

Description Alexander Pavel 2019-08-07 22:15:00 UTC
Created attachment 1601600 [details]
YAML manifest to reproduce issue

Description of problem: If a pod has multiple containers, the pod gets marked as "Completed" in the web interface after the first container finishes, even if the other container(s) is still running. That was first noticed on the openshift api.ci cluster (origin CI), and I have been able to easily reproduce on a local openshift 3.11 cluster.


Version-Release number of selected component (if applicable): 3.11


How reproducible: Always able to reproduce


Steps to Reproduce:
1. Create a pod with 2 containers, one that finishes significantly earlier than the other. See attached "test.yaml" for a simple busybox example where 1 container runs for 1 second and the other for 100.
2. Check the pod status in the web interface and the CLI (get pods) after the first container finishes, but before the second one finishes

Actual results: Web interface shows the status of the pod as "Completed" while the CLI lists it as "Running"


Expected results: Both the web interface and CLI show the status as "Running".

Comment 1 Alexander Pavel 2019-08-07 22:16:31 UTC
Created attachment 1601601 [details]
Screenshot of web interface showing "Completed" status with containers still running

Comment 2 Alexander Pavel 2019-08-07 22:42:26 UTC
I have tested this against the latest nightly openshift origin 4.2 and the problem exists there as well

Comment 3 Alexander Pavel 2019-08-07 22:51:15 UTC
Updated version and name to indicate that is occurs on openshift 4.2

Comment 4 Samuel Padgett 2019-08-19 16:20:21 UTC
Do you happen to have the YAML for the pods or a reproducer?

Comment 5 Alexander Pavel 2019-08-19 16:56:42 UTC
There is a YAML manifest attached to this bug that should reproduce the problem.

Comment 6 Samuel Padgett 2019-08-19 18:03:28 UTC
Thanks, I see it now. Confirmed openshift/console/pull/2402 fixes the issue.

Comment 8 XiaochuanWang 2019-08-22 02:58:25 UTC
Created attachment 1606816 [details]
Now the pod is Running when one of the containers is Finished and the other is still Running.

Comment 9 XiaochuanWang 2019-08-22 02:58:50 UTC
Verified on 4.2.0-0.nightly-2019-08-21-210916
See the screenshot from attachment.

Comment 10 errata-xmlrpc 2019-10-16 06:35:15 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-2019:2922


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