OCP-Route: sub path route doesn't work as expected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-kubernetes |
Fix Released
|
Critical
|
Yossi Boaron |
Bug Description
How to reproduce?
1. Create service named 'kuryr-demo' as follows:
oc run --image=
oc scale dc/kuryr-demo --replicas=2
oc expose dc/kuryr-demo --port 80 --target-port 8080
2. Create OCP-Route that will point www.example.
2.1 Create yaml file for the path route:
$ cat >> route_path.yaml << EOF
apiVersion: v1
kind: Route
metadata:
name: route-unsecured
spec:
host: www.example.com
path: "/test"
to:
kind: Service
name: kuryr-demo
EOF
2.2 create the route
$ oc create -f route_path.yaml
3. Hack etc/hosts to resolve www.example.com to L7 router floating IP
3.1 Get L7 router FIP
$ openstack loadbalancer show kuryr-l7-router | awk '/vip_address/ {print $4}'
10.0.0.163
$ openstack floating ip list | grep 10.0.0.163 | awk ' {print $4}'
172.24.4.7
3.2 Add resolve line to /etc/hosts file
$echo "172.24.4.7 www.example.com" >> /etc/hosts
4. Run the test
4.1 Curl the exact path - works OK
$ curl www.example.
kuryr-demo-1-zqpn8: HELLO, I AM ALIVE!!!
4.2 Curl subpath
$curl www.example.
Actual results:
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>
Expected results:
Curl succeded.
Changed in kuryr-kubernetes: | |
assignee: | nobody → Yossi Boaron (yossi-boaron-1234) |
Changed in kuryr-kubernetes: | |
importance: | Undecided → Critical |
Fix proposed to branch: master /review. openstack. org/582810
Review: https:/