Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1391382 - [networking_public_222]edge/Allow temination route cannot work for http request when enable wildcard routes
[networking_public_222]edge/Allow temination route cannot work for http reque...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Routing (Show other bugs)
3.4.0
All All
medium Severity medium
: ---
: ---
Assigned To: Ram Ranganathan
zhaozhanqi
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-03 04:35 EDT by zhaozhanqi
Modified: 2017-03-08 13 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-01-18 07:49:11 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Origin (Github) 11760 None None None 2016-11-04 09:41 EDT
Red Hat Product Errata RHBA-2017:0066 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 12:23:26 EST

  None (edit)
Description zhaozhanqi 2016-11-03 04:35:11 EDT
Description of problem:
Enable wildcard routes for router. Create edge route and change it to 'edge/Allow'. the route cannot work when sent a http request.

Version-Release number of selected component (if applicable):
# openshift version
openshift v3.4.0.19+346a31d
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0
openshift3/ose-haproxy-router          v3.4.0.19           6e54d63e6bc9

How reproducible:
always

Steps to Reproduce:
1. make sure the router is running
2. enable wildcard route for router
   #oc env dc router ROUTER_ALLOW_WILDCARD_ROUTES=true
3. Create app/service/edge route
 $ oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/routing/caddy-docker.json -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/routing/edge/service_unsecure.json -f https://raw.githubusercontent.com/zhaozhanqi/subdomain/master/route_edge.json

4. change route termination to 'edge/Allow'
  oc patch route secured-edge-route -p '{"spec":{"tls": { "insecureEdgeTerminationPolicy":"Allow"}}}'
5. Sent https and http request to route
 
Actual results:

https request can work well
http return 503

Expected results:
both https and http work well.

Additional info:
'edge/Redirct' works well
Comment 1 Ram Ranganathan 2016-11-03 15:56:16 EDT
Fixed with PR: https://github.com/openshift/origin/pull/11760
Comment 2 Troy Dawson 2016-11-04 14:42:22 EDT
This has been merged into ose and is in OSE v3.4.0.22 or newer.
Comment 4 Meng Bo 2016-11-07 06:25:21 EST
Checked on ocp build v3.4.0.22 with router image ccce8ccad9bb

Issue has been fixed.

The wildcard domain works well for the edge route with all the insecureEdgeTerminationPolicy.
Comment 6 errata-xmlrpc 2017-01-18 07:49:11 EST
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

Note You need to log in before you can comment on or make changes to this bug.