Bug 1945630

Summary: Pod log filename no longer in <pod-name>-<container-name>.log format
Product: OpenShift Container Platform Reporter: Rejeeb <rabdulra>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED ERRATA QA Contact: Siva Reddy <schituku>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.6CC: aos-bugs, jokerman, jonjacks, spadgett, yapei
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: During a previous bug fix, the download link for pod logs was changed to a standard HTML anchor element with an empty download attribute. Consequence: The downloaded file lost the previous default file name format. Fix: Add a file name to the anchor element download attribute Result: A default file name formatted as "<pod-name>-<container-name>.log" is used when downloading pod logs.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:57:07 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:
Bug Depends On:    
Bug Blocks: 1951210    
Attachments:
Description Flags
the downloaded log file names none

Description Rejeeb 2021-04-01 13:18:41 UTC
Description of problem:

In OCP 4.6 console, while we try to download pod logs, it is getting downloaded as `log.txt` for any pod logs.

However, in OCP 4.5, when we try to download a pod log the format of the file would be `<pod-name>-<container-name>.log`.

Naming every pod log file as log.txt would make it hard for the customer to understand if we try to download multiple pod logs (it will be like log.txt, log (1).txt, log (2).txt  etc).

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

OCP v4.6

How reproducible:

100%

Steps to Reproduce:
1. Download a pod log from the OpenShift Console.

Actual results:

The downloaded pod logs are in the format `log.txt`.

Expected results:

The downloaded pod logs should be in the format `<pod-name>-<container-name>.log` as we see in OpenShift 4.5.

Comment 2 Siva Reddy 2021-04-08 14:41:51 UTC
Created attachment 1770286 [details]
the downloaded log file names

The pod logs are now named as pod names instead of generic text.

Version:
4.8.0-0.nightly-2021-04-08-005413

Steps to verify:
1. Login to admin console
2. Navigate to the Workloads>pods and download logs from the details 
3. Note the name of the log file is same as the pod name.

Comment 3 Yadan Pei 2021-04-09 01:42:00 UTC
log file name is in format: ${pod_name}-${container_name}.log

Comment 14 errata-xmlrpc 2021-07-27 22:57:07 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.8.2 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:2438