Bug 1337322
| Summary: | Generated route host DNS segment should not exceed 63 characters | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Matt Woodson <mwoodson> |
| Component: | Networking | Assignee: | Ram Ranganathan <ramr> |
| Networking sub component: | router | QA Contact: | zhaozhanqi <zzhao> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | aos-bugs, bbennett, eparis, jokerman, mmccomas, tdawson, yadu |
| Version: | 3.1.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: We were not validating that the generated host names for routes were lower than the DNS max lengths.
Consequence: We were generating names (based on the user-provided template) that would not be usable in DNS.
Fix: Add more stringent validation of the generated names.
Result: We catch the error for the user when the route is processed by the router and provide a clear error about why the route won't work.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-18 12:40:57 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
Matt Woodson
2016-05-18 19:54:21 UTC
Ram: Not necessarily asking you to fix this, but I need design advice. Is it reasonable for the router to screen the names and reject routes where the name is too long (with appropriate status in the label?) Or is there a better approach? @Ben: so we already have validation when a route host name is specified. https://github.com/openshift/origin/blob/master/pkg/route/api/validation/validation.go#L29 For generated names at runtime using the hostname template (which seems to be the case here that Matt listed), the approach you listed sounds good. I'll create a PR for this with a fix. Associated PR: https://github.com/openshift/origin/pull/10434 since this bug was reported on OCP, so mark this bug to 'MODIFIED' for now. please feel free change to 'ON_QA' once it is merged to OCP. thanks. This has been merged into ose and is in OSE v3.4.0.19 or newer. Verified this bug on: openshift v3.4.0.19+346a31d kubernetes v1.4.0+776c994 etcd 3.1.0-rc.0 with haproxy images (v3.4.0.19 6e54d63e6bc9 13 hours ago 628.7 MB) steps: 1. create one 63 chars route host. success 2. Create one 64 chars route host. failed. 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-2017:0066 |