Bug 1416877
Summary: | A space character in LDAP url in hosts file converts to \_ in master-config.yaml | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Steven Walter <stwalter> |
Component: | Installer | Assignee: | Russell Teague <rteague> |
Status: | CLOSED NOTABUG | QA Contact: | Johnny Liu <jialiu> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.4.0 | CC: | aos-bugs, jokerman, kborup, mmccomas, myllynen, rteague, sdodson, stwalter |
Target Milestone: | --- | ||
Target Release: | --- | ||
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: | 2017-03-27 13:26:41 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
Steven Walter
2017-01-26 16:57:44 UTC
I have been unable to reproduce this bug in development environments. Additionally, I noticed in the original problem description, the ldap url was show within double quotes. I've not see this in the master-config.yaml either. Test system details: [root@ose3-master ~]# rpm -qa atomic\* atomic-openshift-master-3.4.0.39-1.git.0.5f32f06.el7.x86_64 atomic-openshift-clients-3.4.0.39-1.git.0.5f32f06.el7.x86_64 atomic-openshift-3.4.0.39-1.git.0.5f32f06.el7.x86_64 [root@ose3-master ~]# rpm -qa PyYAML PyYAML-3.10-11.el7.x86_64 [root@ose3-master ~]# cat /etc/origin/master/master-config.yaml | grep url: url: ldap://staging.example.com:389/OU=Example Users,DC=stage,DC=example,DC=com?cn I have also Ansible 2.1 and 2.2. Please provide at package version listing for both the control host and the master. Something like: # rpm -qa | sort > installed-rpms.txt Following up to see if the requested information can be provided or if this issue is no longer reproducible in the customer environment. Checking with the customer. I was never able to replicate but customer had gotten it to happen consistently. I'll let you know results I have been able to reproduce the behavior reported when using non-breaking spaces in the host file. Please ensure your hosts file does not include non-breaking spaces. To check: # grep -P -n "\xA0" hosts Any lines with non-breaking spaces will be listed. To fix: # sed -i.bak 's/\xC2\xA0/ /g' hosts Any lines containing non-breaking spaces will be updated to have normal spaces. A backup will be made of the original at hosts.bak. Non-breaking spaces are generally artifacts from copy/paste or inadvertent key combinations when typing in editors. YAML 1.1 spec states that non-breaking spaces are converted to "\_" during dumping. This yaml.dump was occurring in the openshift_master translate_idps filter module. Please let me know if this resolves your issue. Created KCS with your solution for future customers to use https://access.redhat.com/solutions/3026781 -- thanks! |