+++ This bug was initially created as a clone of Bug #1561752 +++
Description of problem: when we enable this optional wildcard route: It takes precedence over other routes, rendering them unreachable, but we have noticed that it only overrides routes starting with a number.
Version-Release number of selected component (if applicable): kubernetes v1.6.1+5115d708d7
How reproducible: 100%
Steps to Reproduce:
curl service188.8.131.52.1.nip.io -> hits service1
curl random.127.0.0.1.nip.io -> hits route-wildcard, this is expected.
curl service184.108.40.206.1.nip.io -> hits service2
curl 3service127.0.0.1.nip.io -> hits route-wildcard, this is NOT expected
--- Additional comment from Eric Rich on 2018-03-28 15:59:29 EDT ---
A PR to fix this issue seems to be proposed: https://github.com/openshift/origin/pull/19076
--- Additional comment from Ram Ranganathan on 2018-04-09 15:26:09 EDT ---
Based on Clayton's review comments on the previous PR,
created a new PR: https://github.com/openshift/origin/pull/19219
--- Additional comment from Ram Ranganathan on 2018-04-12 14:11:42 EDT ---
Setting to modified (is that the right workflow, @ben/@mengbo?) as the PR got merged.
@ramr: Can you backport this to OSE 3.9 please.
Just spoke to Ben about this right now. On the original PR set, there was some comments and a follow on PR is in the works.
So rather than merge an intermediate change - will merge the changes in based on the new PR (yet-to-be-created) getting approved.
The second version of the original fix in origin is: https://github.com/openshift/origin/pull/19492
waiting for that to merge (in origin) before I backport this.
@Ben, just realized a back port is going to require more cherry picks than I had initially thought.
The template simplification changes (for backends) were done as part of 3.10 work and the fixes for the sorting are based on those template simplification changes.
Should I cherry pick those changes as well? Otherwise we will have to make changes to the sort template helper code specifically for 3.9 - which does create some divergence.
Let me know how you want me to proceed on this. My 2c is to pull in the template simplification changes.
@Ram: Let's just backport the sort in bash for this... I'm getting nervous if we have to backport too much.
@Ben, cool - that is definitely safer.
Created a PR: https://github.com/openshift/ose/pull/1252
Note: this is the original commit + fixes specific to OSE 3.9
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.
*** Bug 1582875 has been marked as a duplicate of this bug. ***