Bug 2081678
| Summary: | ANSI color modification carried over to pods without ANSI color code defined | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Simon Reber <sreber> |
| Component: | Management Console | Assignee: | Yadan Pei <yapei> |
| Status: | CLOSED WONTFIX | QA Contact: | Yanping Zhang <yanpzhan> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.10 | CC: | jcaiani, jhadvig, juntwang, simon.reber, yapei |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-04-30 18:04:53 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
Simon Reber
2022-05-04 11:01:44 UTC
This is a PatternFly Log Viewer extension bug. The logs will not reset ANSI styles when switching. There is a fix in PF: https://github.com/patternfly/patternfly-react/pull/7355 When the PR is merged and the new version is released, bumping to the latest PF log viewer version should be able to fix this issue. I will post the target version here after it's released. The new version of PF log viewer is @patternfly/react-log-viewer.3, bump to this version could fix the issue. patternfly/react-log-viewer is on 4.76.8. This bug was fixed when the pf packages were updated for 4.56.3 here: https://github.com/openshift/console/pull/11489 @simon.reber this should be fixed in 4.11 Checked on ocp 4.11 clusters with payload 4.11.5 and 4.11.0-0.nightly-arm64-2022-09-20-200648, and on ocp 4.12 cluster with payload 4.12.0-0.nightly-2022-09-20-095559.
Steps to verify:
1.Create pod with yaml:
apiVersion: v1
kind: Pod
metadata:
name: coloring
labels:
purpose: coloring
spec:
containers:
- args:
- -c
- |
# trying color scheme
echo -e "\e[31mRed Text\e[0m"
echo -e "\e[42mGreen Background\e[0m"
echo -e "\e[0;35mPurple"
echo -e "No coloring"
sleep 9999
command:
- /bin/bash
name: color-container
image: registry.redhat.io/ubi8/toolbox:8.5
restartPolicy: OnFailure
2.After pod is running, check the pod's log, after `Purple` output all following lines are colored `Purple` in the pod log.
3.Check other pod's log, eg, in `openshift-ingress` `namespace` and inspect `router` logs, the logs color is normal, not purple now.
The bug is fixed.
OCP is no longer using Bugzilla and this bug appears to have been left in an orphaned state. If the bug is still relevant, please open a new issue in the OCPBUGS Jira project: https://issues.redhat.com/projects/OCPBUGS/summary |