Bug 2091901 - Log stream paused right after updating log lines in Web Console in OCP4.10
Summary: Log stream paused right after updating log lines in Web Console in OCP4.10
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.11.0
Assignee: Robb Hamilton
QA Contact: Xiyun Zhao
URL:
Whiteboard:
Depends On:
Blocks: 2094194
TreeView+ depends on / blocked
 
Reported: 2022-05-31 09:31 UTC by Hyosun Kim
Modified: 2022-08-17 03:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:15:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11646 0 None open Bug 2091901: fix bug where log stream pauses in Chrome 2022-06-06 13:20:15 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:15:34 UTC

Description Hyosun Kim 2022-05-31 09:31:52 UTC
Description of problem:
Log stream paused right after updating log lines in Web Console in OCP4.10

Version-Release number of selected component (if applicable):
OCP4.10

How reproducible:

Steps to Reproduce:

1. Move to Workload > Pods > Logs

2. Monitor the streaming logs
   - Log stream paused right after updating log lines

Actual results:

- The user can't view log streaming continuously.
- The user should push the "Resume stream" button every time to show new lines.

Expected results:
- After pressing the "Resume Stream" button, the log is keep streaming. 

Additional info:

I test the scenario on my laptop(Mac)
And this issue is only reproduced in OCP4.10 on the chrome browser 

The Issue is reproduced
- OCP4.10.12 / Chrome 102 (Mac)

The issue is not reproduced
- OCP4.10.12 / Firefox 91.9 (Mac)
- OCP4.9.31 / Chrome 102 (Mac)

The customer also has experienced this issue in OCP4.10.9, not OCP4.9.x

Comment 2 Robb Hamilton 2022-06-02 13:34:57 UTC
When reproducing, I find a `cluster-version-operator-*` pod to be a good option where logs update regularly.

Comment 3 Robb Hamilton 2022-06-02 13:43:52 UTC
This is the result of an upstream bug in PatternFly.  Bug filed:  https://github.com/patternfly/patternfly-react/issues/7498

Comment 4 Robb Hamilton 2022-06-03 14:19:22 UTC
Per Juntao Wang on the PatternFly team:

> This is because when we use `onScroll` callback function, we inspect the `scrollOffsetToBottom` to decide whether to pause the log or not. But this value is not accurate in Chrome for some reason. It could be 0.5 sometimes instead of 0. So the best solution would be changing this line in console https://github.com/openshift/console/blob/master/frontend/public/components/utils/resource-log.tsx#L569 to `if (scrollOffsetToBottom < 1)`, then this log viewer would work perfectly. 

I will make this change and test.

Comment 7 Xiyun Zhao 2022-06-15 09:50:45 UTC
Hi @Hyosun Kim, I cannot reproduce this issue on 4.10.12 & 4.10.9 by using Chrome (102.0.5005.61) on the Macs environment(Attached reference)
Could you help to double confirm and verify if this issue is fixed on OCP 4.11?

Currently this update will not imapcat Linux environment (Confirm on Chrome (102.0.5005.61), Firefox(101.0 (64-bit)), Edge(102.0.1245.33) and Safari(15.5))

Comment 12 Hyosun Kim 2022-06-17 03:18:50 UTC
Hi @Xiyun Zhao

Thank you for sharing your test lab.

I confirmed that the issue is not reproduced anymore in OCP4.11 

#Test Env
- Mac
- Chrome 102.0.5005.61
- OCP4.11 - Fixed
- OCP4.10.12 - Issue is reproduced.

I have attached the test results as a video.

Comment 14 Xiyun Zhao 2022-06-17 03:38:00 UTC
@Hyosun Kim
Thanks for your confirmation.Now this bug is move to verified

Comment 15 errata-xmlrpc 2022-08-10 11:15:13 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security update), 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/RHSA-2022:5069


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