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

Fix ORT Topology Generation to Omit OFFLINE, Other CDNs, and MSO Origins without DeliveryServiceServers#5119

Merged
rawlinp merged 2 commits intoapache:masterfrom
rob05c:fix-ort-topology-only-reported-cdn
Oct 14, 2020
Merged

Fix ORT Topology Generation to Omit OFFLINE, Other CDNs, and MSO Origins without DeliveryServiceServers#5119
rawlinp merged 2 commits intoapache:masterfrom
rob05c:fix-ort-topology-only-reported-cdn

Conversation

@rob05c
Copy link
Member

@rob05c rob05c commented Oct 7, 2020

Fixes ORT generation for Topology DSes to omit parents that are
not ONLINE or REPORTED, as well as parents assigned to other CDNs.

Also fixes Topologies on MSO Delivery Services to consider
Delivery Service Servers, and omit Origins not assigned to a DS.

Includes tests.
No docs, no interface change.
No changelog, no interface change, and bug is not in an existing release.

  • 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 tests.
Run ORT with a Topology DS, with OFFLINE Mids in the Topology, and Mids in other CDNs in the Topology, and with MSO Delivery Services with assigned Origin Servers, and with Origin Servers belonging to other DSes which aren't assigned; verify OFFLINE and other-cdn mids are not added to parent.config, verify MSO origins are in parent.config, verify origins on other DSes are not on the DS parent.config line.

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)

Additional Information

@rob05c rob05c added bug something isn't working as intended Traffic Ops ORT *DEPRECATED* related to the traffic_ops_ort.pl script labels Oct 7, 2020
Copy link
Member Author

Choose a reason for hiding this comment

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

It isn't strictly necessary to do this filtering. But it will make it easier to change ORT to use the origins table or any other DSS alternative in the future.

@rob05c rob05c force-pushed the fix-ort-topology-only-reported-cdn branch from 017213a to 55342c7 Compare October 7, 2020 23:42
@rob05c rob05c requested a review from rawlinp October 7, 2020 23:42
Fixes ORT generation for Topology DSes to omit parents that are
not ONLINE or REPORTED, as well as parents assigned to other CDNs.

Also fixes Topologies on MSO Delivery Services to consider
Delivery Service Servers, and omit Origins not assigned to a DS.
@rob05c rob05c force-pushed the fix-ort-topology-only-reported-cdn branch from 55342c7 to b8a1225 Compare October 7, 2020 23:42
@zrhoffman zrhoffman added this to the Flexible Topologies milestone Oct 8, 2020
@rob05c rob05c force-pushed the fix-ort-topology-only-reported-cdn branch from aa71e88 to dd002a6 Compare October 13, 2020 18:55
@ocket8888 ocket8888 modified the milestones: Flexible Topologies, 5.0.0 Oct 14, 2020
Copy link
Contributor

@rawlinp rawlinp left a comment

Choose a reason for hiding this comment

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

Looks good, checks passed, manual comparison testing went well.

@rawlinp rawlinp merged commit ec96cf5 into apache:master Oct 14, 2020
@zrhoffman zrhoffman added the multi-site origin Related to the Multi-Site Origin feature label Dec 6, 2021
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 multi-site origin Related to the Multi-Site Origin feature 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.

4 participants