Bug 2003603 - "View logs" dialog displays the "--selector" option, which does not print all logs
Summary: "View logs" dialog displays the "--selector" option, which does not print all...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: UI
Version: 1.6.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 1.6.0
Assignee: John Matthews
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-13 09:46 UTC by Xin jiang
Modified: 2021-09-29 14:36 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-29 14:36:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-ui pull 1337 0 None open Bug 2003603: Add dropdown for proper log selector pod name 2021-09-17 21:27:59 UTC
Github konveyor mig-ui pull 1338 0 None open Bug 2003603: Add dropdown for proper log selector pod name (#1337) 2021-09-17 23:57:45 UTC
Red Hat Product Errata RHSA-2021:3694 0 None None None 2021-09-29 14:36:26 UTC

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


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