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

Fix atstccfg to not log errors for unrelated dses#4261

Merged
rawlinp merged 1 commit into
apache:masterfrom
rob05c:fix-atscfg-bad-logging
Jan 8, 2020
Merged

Fix atstccfg to not log errors for unrelated dses#4261
rawlinp merged 1 commit into
apache:masterfrom
rob05c:fix-atscfg-bad-logging

Conversation

@rob05c

@rob05c rob05c commented Jan 6, 2020

Copy link
Copy Markdown
Member

Fixes atstccfg to not log errors for any_map and steering DSes which
are unrelated to the DS of the config file.

  • This PR is not related to any other Issue

No tests, because the changed function makes a request to Traffic Ops, and ORT doesn't have an integration test framework yet.
No docs, no interface change.
No changelog, no interface change.

Which Traffic Control components are affected by this PR?

  • Traffic Ops ORT

What is the best way to verify this PR?

Request a regex_remap_*.config config using atstccfg for a delivery service on a CDN which also has any_map and/or steering DSes, and verify no error is logged atscfg.DeliveryServicesToCDNDSes got X DS with nil values! Skipping!.

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

  • 4.0.x

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

Fixes atstccfg to not log errors for any_map and steering DSes which
are unrelated to the DS of the config file.
@rob05c rob05c added bug something isn't working as intended cache-config Cache config generation labels Jan 6, 2020

@rawlinp rawlinp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified it builds, UTs pass, ran it manually without this PR and observed the errors, then ran it again with this PR and verified that the errors were gone.

@rawlinp
rawlinp merged commit 5494016 into apache:master Jan 8, 2020
rob05c added a commit to rob05c/trafficcontrol that referenced this pull request Jan 9, 2020
Fixes atstccfg to not log errors for any_map and steering DSes which
are unrelated to the DS of the config file.

(cherry picked from commit 5494016)
rawlinp pushed a commit that referenced this pull request Jan 9, 2020
Fixes atstccfg to not log errors for any_map and steering DSes which
are unrelated to the DS of the config file.

(cherry picked from commit 5494016)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug something isn't working as intended cache-config Cache config generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants