Bug 1995116

Summary: Pod logs shows incorrect lines number in the log window top banner
Product: OpenShift Container Platform Reporter: Juntao Wang <juntwang>
Component: Management ConsoleAssignee: Kim Dobestein <kdoberst>
Status: CLOSED ERRATA QA Contact: Xiyun Zhao <xiyuzhao>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, jokerman, kdoberst, yapei
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:47:24 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:

Description Juntao Wang 2021-08-18 13:26:18 UTC
Description of problem:
The logs pages of pods always show incorrect lines number.

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


How reproducible:


Steps to Reproduce:
1. Go to any of the pods, click on the Logs tab.
2. Check the line numbers at the top of the log window.

Actual results:
The lines number shows in the banner is always 1 more than the actual lines number. (e.g. If there is only 1 line in the log window, the banner will show "2 lines")

Expected results:
The lines number that shows in the banner should be aligned with the actual lines number of the logs.

Additional info:

Comment 3 Xiyun Zhao 2021-09-01 01:10:45 UTC
This bug has been fixed and verified on payload 4.9.0-0.nightly-2021-08-31-123131

Verification steps:
1. Login OCP and go to any of the pods, click on the Logs tab.
2. Check the line numbers at the top of the log window.

Result:
2. The lines number that shows in the banner is aligned with the actual lines number of the logs.

Comment 6 errata-xmlrpc 2021-10-18 17:47:24 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 (Moderate: OpenShift Container Platform 4.9.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-2021:3759