Bug 1214243
| Summary: | Should validate HOST/PORT when creating route if has been used | ||
|---|---|---|---|
| Product: | OKD | Reporter: | zhaozhanqi <zzhao> |
| Component: | Routing | Assignee: | Ram Ranganathan <ramr> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | bleanhar, bmeng, dmcphers, ejacobs, jialiu, jkaur, jliggitt, jokerman, mmccomas, twiest |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-23 21:17:08 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
zhaozhanqi
2015-04-22 09:50:56 UTC
ack. Host uniqueness validation has not been addressed yet. The current plan is that we will enforce uniqueness per shard. Related card: https://trello.com/c/DtPlixdb/592-8-router-sharding-routing-future. Perhaps there is a simple short term validation we can put in place since we know we are in a single shard setup. Discussed with Dan and Paul. Short term plan: 1. Add admission controller to prevent exact duplicate routes (scheme + host:port + path) from being added (scheme and host should be case-insensitive, path should be case-sensitive?) 2. Allow routes with the same host that differ by scheme or by path Post-GA, we can look at enhancing restrictions. For example: 1. Only allow routes with the same host in the same namespace 2. Disallow routes that override subpaths etc. PR https://github.com/openshift/origin/pull/2606 For Testing: Please test scenarios in the same namespace and across namespaces. This applies to both add and updates (for instance updating an existing route to a scheme/host/path that already exists, even in another namespace). An example of an update being denied: [vagrant@openshiftdev openshift]$ osc create -f route.json routes/route-unsecure [vagrant@openshiftdev openshift]$ osc create -f route_path.json routes/route-unsecure-path [vagrant@openshiftdev openshift]$ osc get routes NAME HOST/PORT PATH SERVICE LABELS route-unsecure www.example.com hello-nginx route-unsecure-path www.example.com /test hello-nginx [vagrant@openshiftdev openshift]$ vi route_path.json <edit to match route-unsecure> [vagrant@openshiftdev openshift]$ osc update -f route_path.json Error from server: Route "route-unsecure-path" is forbidden: Route http://www.example.com already exists in namespace default. If you are the owner of this domain please contact support. Update: Based on the discussion in GH this is probably not going to be a 3.0 piece and will be in a different form post 3.0. Setting back to assigned for now. *** Bug 1243664 has been marked as a duplicate of this bug. *** This issue should be fixed in devenv_fedora-2323 with the latest route images, Could you help change the status to ON_QA to verify this bug. thanks @zhaozhanqi done - thx. This bug has been fixed with the latest haproxy router images, when those same route, the later one will refer to the oldest one. |