Bug 1261147
Summary: | hostname regex fails in update-cluster in some locales | |||
---|---|---|---|---|
Product: | OpenShift Online | Reporter: | Andy Grimm <agrimm> | |
Component: | Image | Assignee: | John W. Lamb <jolamb> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | DeShuai Ma <dma> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 2.x | CC: | abhgupta, aos-bugs, jgoulding, jokerman, mmccomas | |
Target Milestone: | --- | Keywords: | UpcomingRelease | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1277695 (view as bug list) | Environment: | ||
Last Closed: | 2016-01-29 16:23: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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1277547, 1277695 |
Description
Andy Grimm
2015-09-08 17:25:19 UTC
This is very similar to this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1056666 It should probably be fixed in a similar manner: LANG=en_US.UTF.8 if [[ ! $ep =~ <long regex> ]] ; then I'll test this out in the next day or two. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/bc48f5cf55e5191e1738394333f3fa212c551b66 haproxy: use POSIX locale for validating endpoints Bug 1261147 Bugzilla link <https://bugzilla.redhat.com/show_bug.cgi?id=1261147> Different locales have different ideas of what `[a-z]` mean in a regex. The regex used for endpoint validation in `update-cluster` depends on the `POSIX` locale being set. Users that want to control the locale their apps run in by setting `LC_ALL` to some non-`POSIX` locale via `rhc set-env LC_ALL=xyz` (e.g. Estonian - `ee_ET`) would find that scaling events might fail because `[a-z]` in the new locale excludes some letters that might appear in a valid hostname. This change updates the `update-cluster` script in the `haproxy` cartridge so that it preserves the user's locale setting and switches to the `POSIX` locale only for the part of the script that does the endpoint validation. See also: * <https://bugzilla.redhat.com/show_bug.cgi?id=1056666> This was already released. |