Bug 2003603

Summary: "View logs" dialog displays the "--selector" option, which does not print all logs
Product: Migration Toolkit for Containers Reporter: Xin jiang <xjiang>
Component: UIAssignee: John Matthews <jmatthew>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: low Docs Contact: Avital Pinnick <apinnick>
Priority: low    
Version: 1.6.0CC: ernelson, ibolton, mperetz, prajoshi, rjohnson, sregidor, ssingla, vconzola
Target Milestone: ---   
Target Release: 1.6.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: 2021-09-29 14:36:19 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 Xin jiang 2021-09-13 09:46:16 UTC
Description of problem:
because of BZ#1976048, "oc log" command with "--selector" does not print all the specified logs.

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

How reproducible:
always

Steps to Reproduce:
It shows view logs command with "--selector" in the View Logs page. In fact, "oc log" command with "--selector" does not print all the specified logs. It shouldn't use "--selector" to specify pod.


Actual results:
It cannot print all logs

Expected results:
It should print out all logs, command such like

$ oc logs migration-log-reader-b5dcb7974-rq94j --namespace openshift-migration -c color

Additional info:

Comment 1 Ian 2021-09-15 23:33:57 UTC
@xinJiang It has occurred to me that we will need some UX modifications to allow the user to copy commands with the log reader pod name since we can offer the host/target/source pod name.

Comment 2 Ian 2021-09-15 23:37:20 UTC
@vconzola Will need to get with you to decide how to offer the correct "view all logs command" based on the pod names available across the different cluster resources. Maybe a dropdown to select host/target/source before copying to clipboard?

Comment 3 vconzola 2021-09-17 17:20:22 UTC
Per the discussion on Slack, add a dropdown for cluster selection. Label should be, “Select cluster to view logs” and the dropdown options will be the names of the source, target and host/controller (if applicable) clusters associated with the plan.

Comment 7 Prasad Joshi 2021-09-21 11:53:54 UTC
Verified Using:
Source Cluster: AWS OCP 4.6 (MTC 1.6.0)
Target Cluster: AWS OCP 4.9 (MTC 1.6.0)

image: registry.redhat.io/rhmtc/openshift-migration-controller-rhel8@sha256:2cfae5a025cad6e0ec421958ff9bdff1bceb6bec132d1992ea2a9e342be1c04f


Moved to Verified status.

Comment 9 errata-xmlrpc 2021-09-29 14:36:19 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: Migration Toolkit for Containers (MTC) 1.6.0 security & bugfix 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:3694