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
When reproducing, I find a `cluster-version-operator-*` pod to be a good option where logs update regularly.
This is the result of an upstream bug in PatternFly. Bug filed: https://github.com/patternfly/patternfly-react/issues/7498
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.
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))
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.
@Hyosun Kim Thanks for your confirmation.Now this bug is move to verified
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