Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Backport 4.0.x: Fix atscfg meta to omit config files for nonexistent delivery services ( #4256)#4278

Merged
rawlinp merged 1 commit into
apache:4.0.xfrom
rob05c:backport-atscfg-omit-meta-wrong-dses
Jan 9, 2020
Merged

Backport 4.0.x: Fix atscfg meta to omit config files for nonexistent delivery services ( #4256)#4278
rawlinp merged 1 commit into
apache:4.0.xfrom
rob05c:backport-atscfg-omit-meta-wrong-dses

Conversation

@rob05c

@rob05c rob05c commented Jan 9, 2020

Copy link
Copy Markdown
Member

What does this PR (Pull Request) do?

  • This PR fixes #REPLACE_ME OR is not related to any Issue

Which Traffic Control components are affected by this PR?

  • CDN in a Box
  • Documentation
  • Grove
  • Traffic Control Client
  • Traffic Monitor
  • Traffic Ops
  • Traffic Ops ORT
  • Traffic Portal
  • Traffic Router
  • Traffic Stats
  • Traffic Vault

What is the best way to verify this PR?

If this is a bug fix, what versions of Traffic Control are affected?

The following criteria are ALL met by this PR

  • This PR includes tests OR I have explained why tests are unnecessary
  • This PR includes documentation OR I have explained why documentation is unnecessary
  • This PR includes an update to CHANGELOG.md OR such an update is not necessary
  • This PR includes any and all required license headers
  • This PR ensures that database migration sequence is correct OR this PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Additional Information

apache#4256)

* Fix atscfg meta to omit nonexistent ds files

This fixes atscfg to omit files with location parameters for config
files, hdr_rw_, regex_remap_, url_sig_, and uri_signing_ for DSes
which don't exist (typically after deleting a DS but forgetting to
delete the corresponding location Parameters).

This is important to make atstccfg work because without it, ORT will
request url_sig_ files for DSes which don't exist, and the API
endpoint to get the keys will fail. Because atstccfg uses the API,
there's no reasonable way to make it work, except to fix the meta
config to omit those nonexistent files.

In addition to nonexistent files, this also omits files for DSes
not assigned to the server. There won't even be remap lines for
those DSes anyway, so it's better and safer to omit the ancillary
files altogether.

* Fix TO API test for meta cfg to set DSS, real DS

(cherry picked from commit ea315f0)
@rob05c rob05c added the backport an upstream change merged into an older release label Jan 9, 2020
@rob05c
rob05c changed the base branch from master to 4.0.x January 9, 2020 19:34
@rawlinp rawlinp added cache-config Cache config generation Traffic Ops ORT *DEPRECATED* related to the traffic_ops_ort.pl script labels Jan 9, 2020
@rawlinp
rawlinp merged commit c085104 into apache:4.0.x Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport an upstream change merged into an older release cache-config Cache config generation Traffic Ops ORT *DEPRECATED* related to the traffic_ops_ort.pl script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants