| Summary: | [userinterface_public_646]Hostname is not set automatically for route when edit the route without specifying Hostname on web console | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | OKD | Reporter: | Yanping Zhang <yanpzhan> | ||||||
| Component: | Management Console | Assignee: | Ben Bennett <bbennett> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Yadan Pei <yapei> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 3.x | CC: | aos-bugs, mmccomas, pweil, ramr | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2016-09-19 13:51:03 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: | |||||||
| Attachments: |
|
||||||||
|
Description
Yanping Zhang
2016-04-28 09:00:56 UTC
Created attachment 1151781 [details]
Warning-info
Paul, what should happen when you edit a route and remove hostname? Ram, going through the history of this it looks like it was always only in the REST create (and then moved to the create strategy when REST was refactored). That seems a little odd. This route would be dropped by the router since it is not in a valid format unless the router was configured with the DNS pattern override in which case a blank host would be fine. Should we allocate a host name on updates in PrepareForUpdate? Does it make sense to have the host name be immutable? Probably not although I do wonder how this would work in the future with sharding strategies that work based on route attributes. @Paul, Yeah that is a bug - we should do it for both PrepareFor{Create,Update} if Spec.Host not set. Though that said, there's an overlap between the hostname generator and the router subdomain config parameter.
Paul, thanks! Is there additional work beyond that PR that needs to happen for this, or can we close this bug? ready for testing Checked on devenv-rhel7_4374. When update hostname of the route, it will prompt error info to indicate that the field is immutable. Since the field is immutable, why not disable the input box for hostname, and remove this info:"Public hostname for the route. If not specified, a hostname is generated."? Customers may feel confused by it. Assign it back first, if dev think this is acceptable and won't update, pls move to ON_QA, then QE will verify it. Last minute update :). This behavior was just changed yesterday to avoid stealing routes and the field is now immutable. I think your test was valid. https://github.com/openshift/origin/pull/9325 Checked on devenv-rhel7_4409, routes can be edited and hostname is immutable and can not be updated now. Move the bug to Verified. |