Bug 1391382 - [networking_public_222]edge/Allow temination route cannot work for http request when enable wildcard routes
Summary: [networking_public_222]edge/Allow temination route cannot work for http reque...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.4.0
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Ram Ranganathan
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-03 08:35 UTC by zhaozhanqi
Modified: 2022-08-04 22:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-01-18 12:49:11 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Origin (Github) 11760 0 None None None 2016-11-04 13:41:50 UTC
Red Hat Product Errata RHBA-2017:0066 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 17:23:26 UTC

Description zhaozhanqi 2016-11-03 08:35:11 UTC
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 19:56:16 UTC
Fixed with PR: https://github.com/openshift/origin/pull/11760

Comment 2 Troy Dawson 2016-11-04 18:42:22 UTC
This has been merged into ose and is in OSE v3.4.0.22 or newer.

Comment 4 Meng Bo 2016-11-07 11:25:21 UTC
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 12:49:11 UTC
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.