Bug 1741773

Summary: Insecure Traffic value is not correctly set when creating app by form
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Dev ConsoleAssignee: cvogt
Status: CLOSED ERRATA QA Contact: Ruchir Garg <rgarg>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: aos-bugs, calfonso, jokerman, nmukherj
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-16 06:36:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description XiaochuanWang 2019-08-16 06:07:11 UTC
Description of problem:
User create app from Developer Catalog, when user create a secure route and choose a value of "Insecure Traffic", the app can not be created and give error 

Version-Release number of selected component (if applicable):
4.2.0-0.nightly-2019-08-15-205330

How reproducible:
Always

Steps to Reproduce:
1. User go to Dev console and click +Add -> Developer Catalog (or clusteradmin user go to OperatorHub, click Developer Catalog
2. User fill the necessary fields and add a secure route: 
TLS Termination: Passthrough
Insecure Traffic: Redirect
3. Hit Create

Actual results:
3. Error "Invalid value: "redirect": invalid value for InsecureEdgeTerminationPolicy option, acceptable values are None, Redirect, or empty" for field "spec.tls.insecureEdgeTerminationPolicy".

Expected results:
3. Should be saved with route has "Insecure Traffic: Redirect"

Additional info:

Comment 3 XiaochuanWang 2019-09-11 08:04:20 UTC
Created Passthrough/Redirect route successfully and functionally works for the route link. 

$ oc get route
NAME   HOST/PORT                                                         PATH   SERVICES   PORT   TERMINATION            WILDCARD
test   test-xiaocwan-t.apps.qe-ui-09110831.qe.devcluster.openshift.com          example    80     passthrough/Redirect   None

Verified on 4.2.0-0.nightly-2019-09-10-181551

Comment 4 errata-xmlrpc 2019-10-16 06:36:15 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-2019:2922