| Summary: | Wrong route info shown under /var/lib/haproxy/conf/os_sni_passthrough.map | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Weibin Liang <weliang> |
| Component: | Networking | Assignee: | Jacob Tanenbaum <jtanenba> |
| Networking sub component: | router | QA Contact: | zhaozhanqi <zzhao> |
| Status: | CLOSED NOTABUG | Docs Contact: | |
| Severity: | low | ||
| Priority: | low | CC: | aloughla, aos-bugs, bbennett, bmeng, bperkins |
| Version: | 3.3.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: | 2017-02-15 14:53: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: | |
|
Description
Weibin Liang
2016-09-30 14:35:35 UTC
First, this should not be a problem which related to the router sharding.
The contents of os_sni_passthrough.map file will be always like this.
From the haproxy router template:
{{/*
os_sni_passthrough.map: contains a mapping of routes that expect to have an sni header and should be passed
through to the host_be. Driven by the termination type of the ServiceAliasConfigs
*/}}
{{ define "/var/lib/haproxy/conf/os_sni_passthrough.map" }}
{{ range $idx, $cfg := .State }}
{{ if and (eq $cfg.Path "") (eq $cfg.TLSTermination "passthrough") }}
{{$cfg.Host}} 1
{{ end }}
{{ end }}
{{ end }}{{/* end sni passthrough map template */}}
The "1" in the file looks like an indicator.
From end user point of view, what does "1" mean? It make no sense to customers. for consistency purpose, passthrough route in router sharding setup should display the same meaningful result as reencrypt and edge route did. hi, Weibin I'm not sure if you already found any issues about function of passthrough route unless the content of this file is not perfect. for me, I don't think the customers I mean admin user here care about what the content is and also the normal user have not the right to view it. since the function of passthrough is working well. so I think this should not be an issue too. If there two services using two different passthrough routes in two different namespaces: I hope the correct route entries should be like: www.example1.com 1 p1-route1 www.example2.com 1 p2-route2 The current route entries are like this: www.example1.com 1 www.example2.com 1 I am not sure how www.example1.com and www.example2.com know which namespace and which route it should use. I haven't setup to test above config, just curious Jake, can you please see why we are writing 1 here rather than {{$idx}} for the mapping file? It seems to be the only one where it is different.
This is not a user-visible change, so I'm lowering the priority.
The "1" can be anything, the haproxy template uses it as an if-exists check. Using 1 reduces the size of the map file, whether we care about the size of the map file could be a topic of discussion. |