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

Fix atstccfg hosting.config including inactive DS#4214

Merged
rawlinp merged 1 commit into
apache:masterfrom
rob05c:atstccfg-fix-hosting-config-to-include-offline-mids
Dec 16, 2019
Merged

Fix atstccfg hosting.config including inactive DS#4214
rawlinp merged 1 commit into
apache:masterfrom
rob05c:atstccfg-fix-hosting-config-to-include-offline-mids

Conversation

@rob05c

@rob05c rob05c commented Dec 14, 2019

Copy link
Copy Markdown
Member

Fixes atstccfg hosting.config generation to include inactive DSes for
edges, but not mids. Matches Perl behavior.

This is more important than it might appear, because a common Ops
procedure is to ORT "badass" new OFFLINE servers, to get their
proper config before setting them REPORTED.

No tests, because this is in the data loading and not the logic it can't reasonably be unit tested, and ORT doesn't have an integration test framework yet. I've manually tested, and verified all our production servers diff identical to the old Perl.
No docs, no interface change.
No changelog, no interface change.

  • This PR is not related to any other Issue

Which Traffic Control components are affected by this PR?

  • Traffic Ops ORT

What is the best way to verify this PR?

Run ORT or atstccfg and verify OFFLINE edges are inserted into hosting.config.

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

  • master

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)

Fixes atstccfg hosting.config generation to include inactive DSes for
edges, but not mids. Matches Perl behavior.

This is more important than it might appear, because a common Ops
procedures is to ORT "badass" new OFFLINE servers, to get their
proper config before setting them REPORTED.
@rob05c rob05c added bug something isn't working as intended high impact impacts the basic function, deployment, or operation of a CDN cache-config Cache config generation labels Dec 14, 2019
@asf-ci

asf-ci commented Dec 14, 2019

Copy link
Copy Markdown
Contributor

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4933/

@rawlinp rawlinp merged commit 383f8b5 into apache:master Dec 16, 2019
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 high impact impacts the basic function, deployment, or operation of a CDN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants