Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1421990 - option '--wildcard-policy=' cannot work for 'oc expose svc'
option '--wildcard-policy=' cannot work for 'oc expose svc'
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Routing (Show other bugs)
3.5.0
All All
medium Severity medium
: ---
: ---
Assigned To: jtanenba
zhaozhanqi
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-14 04:45 EST by zhaozhanqi
Modified: 2017-07-24 10 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-04-12 15:12:52 EDT
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) 12954 None None None 2017-02-14 11:13 EST
Red Hat Product Errata RHBA-2017:0884 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 18:50:07 EDT

  None (edit)
Description zhaozhanqi 2017-02-14 04:45:57 EST
Description of problem:
Using 'oc expose svc' to create wildcard route with option '--wildcard-policy=Subdomain'.  the column 'WILDCARD' of route still be 'None'

Version-Release number of selected component (if applicable):
# openshift version
openshift v3.5.0.20+87266c6
kubernetes v1.5.2+43a9be4
etcd 3.1.0


How reproducible:
always

Steps to Reproduce:
1. Create service
   oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/routing/unsecure/service_unsecure.json -n z1
2.  Create wildcard route
  oc expose service service-unsecure --hostname=wildcard.0214-0ml.qe.rhcloud.com --wildcard-policy=Subdomain -n z1
3. check the route
  oc get route

Actual results:

step 3

# oc get route service-unsecure -n z1 
NAME               HOST/PORT                          PATH      SERVICES           PORT      TERMINATION   WILDCARD
service-unsecure   wildcard.0214-0ml.qe.rhcloud.com             service-unsecure   http                    None

Expected results:

the route should be wildcard route when using 'Subdomin'

Additional info:
Comment 1 jtanenba 2017-02-14 11:13:32 EST
Origin PR: 
https://github.com/openshift/origin/pull/12954
Comment 2 openshift-github-bot 2017-02-15 03:52:24 EST
Commit pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/94c654d58336de796df0bba6ab50c8a078b86b11
change the parameter names in the route generation function to match the oc expose flag name

When the wildcardpolicy flag was changed to wildcard-policy the GeneraterParam was left unchanged
this mismatch caused the wildcard-policy to be ignored and always appear as none when using oc expose

Bug 1421990
Comment 3 Troy Dawson 2017-02-16 15:32:33 EST
This has been merged into ocp and is in OCP v3.5.0.21 or newer.
Comment 5 zhaozhanqi 2017-02-17 01:03:59 EST
Verified this bug on OCP v3.5.0.21
Comment 7 errata-xmlrpc 2017-04-12 15:12:52 EDT
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:0884

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