Description of problem: It seems the behavior is different when viewing logs with a label selector. for instance, the 1st command just print our around 10 lines logs, the 2nd print out hundreds lines logs. 1. oc logs --follow --selector logreader=mig --namespace openshift-migration --container color 2. oc logs migration-log-reader-58dc94fbf8-twf88 -c color Because of above behavior, the oc commands on tree view of Migration Resource cannot print out logs by grep the resource name, for example $ oc logs --selector control-plane=controller-manager --namespace openshift-migration --container mtc | grep '"dism":"migration-f42f3-pqhgn-rp467"' Version-Release number of selected component (if applicable): MTC 1.5.0 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: It cannot print all logs Expected results: It should print out all logs Additional info:
verified with 1.5.0, build is registry.redhat.io/rhmtc/openshift-migration-ui-rhel8@sha256:4fa42a785864bbc75929aaa6cfc2fc5bef201ddfd829da36054fb74130af927b the command looks like oc logs migration-log-reader-7789f5d7d-wvvzd -c plain | grep '"dim":"migration-a3e18-zcrl7"'
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 (Migration Toolkit for Containers (MTC) image release advisory 1.5.0), 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/RHEA-2021:2929