-
Notifications
You must be signed in to change notification settings - Fork 351
if no parents exist t3c will use secondary parents if configured #6673
Conversation
Will you please file a GitHub issue? As far as the ATC community is concerned, there is no such thing as CDN-15204. |
|
CiaB failure may be addressed by rebasing on master |
It won't be. The failure is coming from the fact that CDN in a Box expects an RPM named |
@ocket8888 fixed in #6678 |
|
I don't think we need docs, this behavior is incidental and the only right thing to do, we don't need to document that level of detail. But that should probably be noted, rather than checking the box that it has docs when it doesn't. But it should probably have a Changelog entry, so people know how and when it changed. And it should be straightforward to add a unit test, shouldn't need an Integration Test. In https://github.com/apache/trafficcontrol/blob/3b8c0cdc/lib/go-atscfg/parentdotconfig_test.go just needs to make a test with no Primaries and a Secondary via CacheGroups, which should pass with the code change and fail without it. Other than that, this change looks good. The previous behavior was generating broken config, this is the right thing to do. |
|
You can probably base the test on |
|
Yea that's what got me into this mess. Something went wrong. |
|
TM tests are known to be flaky. I re-ran them |
Created issue #6780 |
rob05c
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
…che#6673) * If there are no parents use secondary parents if configured. * If there are no parents use secondary parents if configured. * added 2 tests to use secondary parents when no primary parents are available. * Substituted admin_down with constant tc.CacheStatusAdminDown * Added changelog entry

Closes: #6780
Which Traffic Control components are affected by this PR?
t3c, formerly ORT)What is the best way to verify this PR?
In a staging environment offline the primary parent in an MSO and run t3c. you will see the error messages in the warning summary and check parent.config.
If this is a bugfix, which Traffic Control versions contained the bug?
PR submission checklist