Bug 1528461

Summary: Once a route is created, the TLS section becomes immutable
Product: OpenShift Container Platform Reporter: Eric Jones <erjones>
Component: NetworkingAssignee: Rajat Chopra <rchopra>
Networking sub component: router QA Contact: zhaozhanqi <zzhao>
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: high CC: aos-bugs, pdwyer
Version: 3.6.0   
Target Milestone: ---   
Target Release: ---   
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: 2018-01-18 22:22:09 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 Eric Jones 2017-12-21 22:24:59 UTC
Description of problem:
Once a route is created, it cannot be updated to add a certificate (and therefore secure the route) by anything less than a cluster-admin. The error returned is:

An error occurred updating route test. Reason: Route "test" is invalid: spec.tls: Invalid value: route.TLSConfig{Termination:"edge", Certificate:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", Key:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", CACertificate:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", DestinationCACertificate:"", InsecureEdgeTerminationPolicy:""}: field is immutable


Version-Release number of selected component (if applicable):
3.6

How reproducible:
100%

Steps to Reproduce:
1. create an app with a route
2. edit the route to secure and add certificates


Actual results:
An error occurred updating route test. Reason: Route "test" is invalid: spec.tls: Invalid value: route.TLSConfig{Termination:"edge", Certificate:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", Key:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", CACertificate:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", DestinationCACertificate:"", InsecureEdgeTerminationPolicy:""}: field is immutable


Expected results:
Route updated successfully

Additional info:
Similar to bz:
https://bugzilla.redhat.com/show_bug.cgi?id=1524707

Comment 1 Rajat Chopra 2018-01-18 22:22:09 UTC
Will be addressed in bz: https://bugzilla.redhat.com/show_bug.cgi?id=1524707

*** This bug has been marked as a duplicate of bug 1524707 ***