Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1676479 Details for
Bug 1821095
Wrong message error displayed when creating a route with path based
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
All the steps to reproduce the issue with two scenarios
route-bug.txt (text/plain), 10.19 KB, created by
aygarg
on 2020-04-06 02:01:25 UTC
(
hide
)
Description:
All the steps to reproduce the issue with two scenarios
Filename:
MIME Type:
Creator:
aygarg
Created:
2020-04-06 02:01:25 UTC
Size:
10.19 KB
patch
obsolete
># oc version >oc v3.11.188 >kubernetes v1.11.0+d4cacc0 >features: Basic-Auth GSSAPI Kerberos SPNEGO > >Server https://aygarg-latest.gsslab.pnq2.redhat.com:443 >openshift v3.11.188 >kubernetes v1.11.0+d4cacc0 > >------------------------------------------------------------------------ > >--> Created a new project and deployed the ruby application. > ># oc new-project ruby-test > ># oc new-app centos/ruby-25-centos7~https://github.com/sclorg/ruby-ex.git > ># oc get svc >NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE >ruby-ex ClusterIP 172.30.191.120 <none> 8080/TCP 1m > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > >--> The route with same hostname and without path was created. > ># cat pixel-service-develop-api-route.yaml >apiVersion: route.openshift.io/v1 >kind: Route >metadata: > name: pixel-service-develop-api >spec: > host: rest-pixelservice-develop.app.os-t1.swi.srse.net > port: > targetPort: 8080-tcp > tls: > insecureEdgeTerminationPolicy: Redirect > termination: edge > to: > kind: Service > name: ruby-ex > weight: 100 > wildcardPolicy: None > ># oc create -f pixel-service-develop-api-route.yaml >route.route.openshift.io/pixel-service-develop-api created > ># oc get routes >NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD >pixel-service-develop-api rest-pixelservice-develop.app.os-t1.swi.srse.net ruby-ex 8080-tcp edge/Redirect None > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > >--> Created the pixel-service-test route. > ># cat pixel-service-test-route.yaml >apiVersion: route.openshift.io/v1 >kind: Route >metadata: > name: pixel-service-test >spec: > host: rest-pixelservice-develop.app.os-t1.swi.srse.net > path: /test > port: > targetPort: 8080-tcp > tls: > insecureEdgeTerminationPolicy: Redirect > termination: edge > to: > kind: Service > name: ruby-ex > weight: 100 > wildcardPolicy: None > ># oc create -f pixel-service-test-route.yaml >route.route.openshift.io/pixel-service-test created > ># oc get routes >NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD >pixel-service-develop-api rest-pixelservice-develop.app.os-t1.swi.srse.net ruby-ex 8080-tcp edge/Redirect None >pixel-service-test rest-pixelservice-develop.app.os-t1.swi.srse.net /test ruby-ex 8080-tcp edge/Redirect None > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > >--> Created the pixel-service-test-2 route. > ># cat pixel-service-test-2-route.yaml >apiVersion: route.openshift.io/v1 >kind: Route >metadata: > name: pixel-service-test-2 >spec: > host: rest-pixelservice-develop.app.os-t1.swi.srse.net > path: /test > port: > targetPort: 8080-tcp > tls: > insecureEdgeTerminationPolicy: Redirect > termination: edge > to: > kind: Service > name: ruby-ex > weight: 100 > wildcardPolicy: None > ># oc create -f pixel-service-test-2-route.yaml >route.route.openshift.io/pixel-service-test-2 created > ># oc get routes >NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD >pixel-service-develop-api rest-pixelservice-develop.app.os-t1.swi.srse.net ruby-ex 8080-tcp edge/Redirect None >pixel-service-test rest-pixelservice-develop.app.os-t1.swi.srse.net /test ruby-ex 8080-tcp edge/Redirect None >pixel-service-test-2 HostAlreadyClaimed /test ruby-ex 8080-tcp edge/Redirect None > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > >--> The "HostAlreadyClaimed" came up for "pixel-service-test-2" route so I deleted the "pixel-service-test" route but even after that "HostAlreadyClaimed" is showing. > ># oc delete route pixel-service-test >route.route.openshift.io "pixel-service-test" deleted > ># oc get routes >NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD >pixel-service-develop-api rest-pixelservice-develop.app.os-t1.swi.srse.net ruby-ex 8080-tcp edge/Redirect None >pixel-service-test-2 HostAlreadyClaimed /test ruby-ex 8080-tcp edge/Redirect None > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > ># cat route-path.yaml >apiVersion: route.openshift.io/v1 >kind: Route >metadata: > name: route-path >spec: > host: springboot.apps.d2.casl.rht-labs.com > path: /graphql > port: > targetPort: '8080' > tls: > insecureEdgeTerminationPolicy: Redirect > termination: edge > to: > kind: Service > name: sunrise-roaming-service-master > weight: 100 > wildcardPolicy: None > ># oc create -f route-path.yaml > ># oc create -f route-path.yaml >route.route.openshift.io/route-path created > ># oc get routes >NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD >route-path springboot.apps.d2.casl.rht-labs.com /graphql sunrise-roaming-service-master 8080 edge/Redirect None > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > ># cat route-base.yaml >apiVersion: route.openshift.io/v1 >kind: Route >metadata: > name: route-base >spec: > host: springboot.apps.d2.casl.rht-labs.com > port: > targetPort: '8080' > tls: > insecureEdgeTerminationPolicy: Redirect > termination: edge > to: > kind: Service > name: sunrise-roaming-service-master > weight: 100 > wildcardPolicy: None > ># oc create -f route-base.yaml >route.route.openshift.io/route-base created > ># oc get routes >NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD >route-base springboot.apps.d2.casl.rht-labs.com sunrise-roaming-service-master 8080 edge/Redirect None >route-path springboot.apps.d2.casl.rht-labs.com /graphql sunrise-roaming-service-master 8080 edge/Redirect None > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > ># cat route-base-2.yaml >apiVersion: route.openshift.io/v1 >kind: Route >metadata: > name: route-base-2 >spec: > host: springboot.apps.d2.casl.rht-labs.com > port: > targetPort: '8080' > tls: > insecureEdgeTerminationPolicy: Redirect > termination: edge > to: > kind: Service > name: sunrise-roaming-service-master > weight: 100 > wildcardPolicy: None > ># oc create -f route-base-2.yaml >route.route.openshift.io/route-base-2 created > ># oc get routes >NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD >route-base springboot.apps.d2.casl.rht-labs.com sunrise-roaming-service-master 8080 edge/Redirect None >route-base-2 HostAlreadyClaimed sunrise-roaming-service-master 8080 edge/Redirect None >route-path springboot.apps.d2.casl.rht-labs.com /graphql sunrise-roaming-service-master 8080 edge/Redirect None > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > ># oc describe route route-base-2 >Name: route-base-2 >Namespace: ruby-test >Created: 48 seconds ago >Labels: <none> >Annotations: <none> >Requested Host: springboot.apps.d2.casl.rht-labs.com > rejected by router router: HostAlreadyClaimed (48 seconds ago) > route route-path already exposes springboot.apps.d2.casl.rht-labs.com and is older >Path: <none> >TLS Termination: edge >Insecure Policy: Redirect >Endpoint Port: 8080 > >Service: sunrise-roaming-service-master >Weight: 100 (100%) >Endpoints: <error: endpoints "sunrise-roaming-service-master" not found> > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > >The route-base-2 is showing wrong message that "route-path" is already exposing the hostname instead of "route-base" route. > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > ># oc delete route route-base > ># oc delete route route-base >route.route.openshift.io "route-base" deleted > ># oc get routes >NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD >route-base-2 HostAlreadyClaimed sunrise-roaming-service-master 8080 edge/Redirect None >route-path springboot.apps.d2.casl.rht-labs.com /graphql sunrise-roaming-service-master 8080 edge/Redirect None > >------------------------------------------------------------------------ > >------------------------------------------------------------------------ > ># oc describe route route-base-2 >Name: route-base-2 >Namespace: ruby-test >Created: 4 minutes ago >Labels: <none> >Annotations: <none> >Requested Host: springboot.apps.d2.casl.rht-labs.com > rejected by router router: HostAlreadyClaimed (4 minutes ago) > route route-path already exposes springboot.apps.d2.casl.rht-labs.com and is older >Path: <none> >TLS Termination: edge >Insecure Policy: Redirect >Endpoint Port: 8080 > >Service: sunrise-roaming-service-master >Weight: 100 (100%) >Endpoints: <error: endpoints "sunrise-roaming-service-master" not found>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1821095
:
1676479
|
1679155