Bug 1738702

Summary: Openshift 4.2 web ui shows pod as "completed" when containers are still running
Product: OpenShift Container Platform Reporter: Alexander Pavel <apavel>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: aos-bugs, jokerman, nmukherj, xiaocwan
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-16 06:35:15 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:
Attachments:
Description Flags
YAML manifest to reproduce issue
none
Screenshot of web interface showing "Completed" status with containers still running
none
Now the pod is Running when one of the containers is Finished and the other is still Running. none

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