Fix t3c to parent.config gen for IP origins #7021
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the cache config doesn't do any insight into the Delivery Service OrgServerFQDN field, and simply injects it as if it were a URI with an FQDN.
This causes issues as a parent.config
dest_domain=x
with an IP address is silently ignored by ATS, causing the corresponding remap.config line to either fall through to thedest_domain=.
default rule, or to not use parent.config at all and go direct if no default rule exists in parent.config. ATC cache config should always create a default rule, with default parents. But these parents won't be the parents specifically assigned to that service, and won't contain any custom rules like retry codes and number of retries.This fixes the cache config to generate
dest_ip=x
instead ofdest_domain=x
if the DS OrgServerFQDN is an IP address.dest_
parent.config directive, and MSO uses the OrgServerFQDN as the remap target and parent dest, with real origins being inserted in theparent=
directive where IPs are fine.Host
header of the request. If the origin requires a particular host be requested, it must be in the DS Origin. ATC simply lacks the data otherwise, and moreover ATS itself will always use the remap target as the host header, ATC doesn't have the ability to change that.Which Traffic Control components are affected by this PR?
t3c
, formerly ORT)What is the best way to verify this PR?
Run tests. Set an IP as an origin on a Delivery Service that uses cache parents, generate config, verify parent.config
dest_ip
is set, verify a request uses the parents specified on the line and not the parents specified in the default rule and doesn't go direct.http://192.0.2.1
not simply192.0.2.1
.If this is a bugfix, which Traffic Control versions contained the bug?
All prior versions.
PR submission checklist
[x] This PR has documentationno docs, no interface change