Bug 1277695
Summary: | hostname regex fails in update-cluster in some locales | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | John W. Lamb <jolamb> |
Component: | ImageStreams | Assignee: | Abhishek Gupta <abhgupta> |
Status: | CLOSED ERRATA | QA Contact: | DeShuai Ma <dma> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.2.0 | CC: | abhgupta, adellape, agrimm, aos-bugs, dma, gpei, jokerman, mmccomas, tiwillia |
Target Milestone: | --- | Keywords: | UpcomingRelease |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openshift-origin-cartridge-haproxy-1.31.4.1-1.el6op | Doc Type: | Bug Fix |
Doc Text: |
Particular locales trigger different definitions for regular expression character classes [a-z] and [A-Z] in Bash. This caused regex-based host name validation to fail when, for example, the Estonian locale "et_EE" was set in $LC_ALL, because the Estonian letter "u" falls outside of the [a-z] character class, and "rhcloud.com" has a "u" in it. This bug fix updates the `update-cluster` script to enforce use of the POSIX locale just for the locale-sensitive regex, and to restore the user's locale setting immediately afterwards. As a result, host name validation for the `update-cluster` script now works regardless of what locale may be specified by the user.
|
Story Points: | --- |
Clone Of: | 1261147 | Environment: | |
Last Closed: | 2015-12-17 17:11:20 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: | 1261147 | ||
Bug Blocks: | 1277547 |
Description
John W. Lamb
2015-11-03 20:47:40 UTC
verify this bug with openshift-origin-cartridge-haproxy-1.31.4.1-1.el6op.noarch Steps: 1. Create a scaleble app rhc app create bin jbossews-2.0 -s 2. Set the LANG and LC_ALL to et_EE.utf8 [root@broker ~]# rhc env-set LANG=et_EE.utf8 -a bin Setting environment variable(s) ... done [root@broker ~]# rhc env-set LC_ALL=et_EE.utf8 -a bin Setting environment variable(s) ... done 3. Scale-up this app [root@broker ~]# rhc app-scale-up -a bin RESULT: bin scaled up [root@broker ~]# rhc app show bin --gears ID State Cartridges Size SSH URL --------- ------- ------------------------ ----- ------------------------------- ---------- yes-bin-1 started haproxy-1.4 jbossews-2.0 small yes-bin-1- auto.com.cn yes-bin-2 started haproxy-1.4 jbossews-2.0 small yes-bin-2.com.cn 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://rhn.redhat.com/errata/RHSA-2015-2666.html |