Bug 1421990 - option '--wildcard-policy=' cannot work for 'oc expose svc'
Summary: option '--wildcard-policy=' cannot work for 'oc expose svc'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.5.0
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Jacob Tanenbaum
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-14 09:45 UTC by zhaozhanqi
Modified: 2022-08-04 22:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-04-12 19:12:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Origin (Github) 12954 0 None None None 2017-02-14 16:13:31 UTC
Red Hat Product Errata RHBA-2017:0884 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 22:50:07 UTC

Description zhaozhanqi 2017-02-14 09:45:57 UTC
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 Jacob Tanenbaum 2017-02-14 16:13:32 UTC
Origin PR: 
https://github.com/openshift/origin/pull/12954

Comment 2 openshift-github-bot 2017-02-15 08:52:24 UTC
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 20:32:33 UTC
This has been merged into ocp and is in OCP v3.5.0.21 or newer.

Comment 5 zhaozhanqi 2017-02-17 06:03:59 UTC
Verified this bug on OCP v3.5.0.21

Comment 7 errata-xmlrpc 2017-04-12 19:12:52 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:0884


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