Bug 1426666 - host attribute of route immutable
Summary: host attribute of route immutable
Keywords:
Status: CLOSED DUPLICATE of bug 1426538
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Routing
Version: 3.x
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Ben Bennett
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-24 14:54 UTC by Kenny Woodson
Modified: 2017-02-27 20:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-27 20:32:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kenny Woodson 2017-02-24 14:54:30 UTC
Description of problem:
When updating route objects the host attribute is immutable and causes any edits to fail.

Version-Release number of selected component (if applicable):
oc v3.5.0.32-1+4f84c83
kubernetes v1.5.2+43a9be4
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://internal.api.cicd.openshift.com:443
openshift v3.5.0.32-1+4f84c83
kubernetes v1.5.2+43a9be4


How reproducible:
This is the standard behavior.

Steps to Reproduce:
1.  oc edit route docker-registry
2.  Modify the 'host:' attribute.
3.  Verify the error.

Actual results:
# routes "docker-registry" was not valid:
# * spec.host: Invalid value: "docker-registry.router.default.svc.cluster.local": field is immutable


Expected results:
I would expect that the host field would be like any other attribute and be editable.

Additional info:

I can get the desired behavior by doing the following:

oc get route docker-registry -o yaml > route
# modify route and set host to something different
oc delete route docker-registry
oc create -f route

This seems unnecessary and could cause a larger outage window than desired if I want to keep the same name of the route but update the host attribute.

Comment 1 Clayton Coleman 2017-02-27 19:43:47 UTC
It's immutable for security reasons.  If you can change hostname, you can steal other people's host names.  We may relax this in the future, but not anytime soon.


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