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

Conversation

@rawlinp
Copy link
Contributor

@rawlinp rawlinp commented Dec 6, 2021

In order to prevent accidental outages, TO currently has validation which
prevents things like deleting the last server that is assigned to an
active delivery service. However, this validation ignored the fact that
delivery services can now be assigned to a topology instead of using DSS
assignments. This prevents a number of actually valid things, such as
safely setting caches to ADMIN_DOWN, assigning MSO servers to
topology-based DSes, and removing legacy DSS EDGE assignments from
topology-based DSes. This fixes that validation in order to take
topology-based DSes into account.

Closes: #6392


Which Traffic Control components are affected by this PR?

  • Traffic Ops

What is the best way to verify this PR?

Ensure the TO API tests pass.

If this is a bugfix, which Traffic Control versions contained the bug?

  • 6.x
  • maybe 5.x

PR submission checklist

In order to prevent accidental ouages, TO currently has validation which
prevents things like deleting the last server that is assigned to an
active delivery service. However, this validation ignored the fact that
delivery services can now be assigned to a topology instead of using DSS
assignments. This prevents a number of actually valid things, such as
safely setting caches to ADMIN_DOWN, assigning MSO servers to
topology-based DSes, and removing legacy DSS EDGE assignments from
topology-based DSes. This fixes that validation in order to take
topology-based DSes into account.

Closes: apache#6392
@rawlinp rawlinp added bug something isn't working as intended Traffic Ops related to Traffic Ops high impact impacts the basic function, deployment, or operation of a CDN labels Dec 6, 2021
@rawlinp
Copy link
Contributor Author

rawlinp commented Dec 6, 2021

Note: I do intend to add some TO API tests for this PR -- I just wanted to get the review/test process started.

Copy link
Member

@zrhoffman zrhoffman 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!

@zrhoffman zrhoffman merged commit d69f2a9 into apache:master Dec 6, 2021
@rawlinp rawlinp deleted the fix-last-server-check-for-topology-dses branch December 6, 2021 23:31
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 high impact impacts the basic function, deployment, or operation of a CDN Traffic Ops related to Traffic Ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TO prevents assigning ORG servers to topology-based delivery services

2 participants