Bug 1810937
Summary: | When viewing in the web console, Chinese in configmap attach volume to pod turn into messy code | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Catherine_H <yhuang> | ||||||||
Component: | Management Console | Assignee: | Yadan Pei <yapei> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 4.3.0 | CC: | aos-bugs, jokerman, pweil, spadgett, yapei | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | 4.5.0 | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | |||||||||||
: | 1821285 (view as bug list) | Environment: | |||||||||
Last Closed: | 2020-07-13 17:18:46 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: | 1821285 | ||||||||||
Attachments: |
|
Created attachment 1669841 [details]
Pod Terminal show messy code
1. Create configmap with Chinese character from CLI or web console(console supports creating configmap with value as Chinese character)
# cat chinese-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: special-config
data:
special.how: very
special.type: 信息技术部
# oc create -f chinese-configmap.yaml
2. View configmap details on console, Chinese character is displayed well
3. Config DC to use the ConfigMap
# cat mydc.yaml
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: example
namespace: yapei1-1
spec:
selector:
app: hello-openshift
replicas: 1
template:
metadata:
labels:
app: hello-openshift
spec:
containers:
- name: hello-openshift
image: yapei/hello-openshift
ports:
- containerPort: 8080
# oc create -f dc.yaml
# oc set volumes dc/example --add=true --name=mytestvol --type=configmap --configmap-name=special-config --mount-path=/var/datatest
4. wait for new pods is created and running, visit pod Terminal on console
sh-4.2 $ cat special.type // Chinese character is not shown correctly, it was in messy code
Created attachment 1676871 [details] Pod Terminal Show Correct Chinese Chars Follow the steps in comment 3, now Chinese chars can be shown correctly Verified on 4.5.0-0.nightly-2020-04-06-184201 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, 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/RHBA-2020:2409 |
Created attachment 1669840 [details] Workloads ConfigMaps Show Correctly