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

Do not include non-TR profile params in CRConfig "config" section#7124

Merged
ocket8888 merged 1 commit intoapache:masterfrom
rawlinp:to-remove-weight-crconfig
Oct 13, 2022
Merged

Do not include non-TR profile params in CRConfig "config" section#7124
ocket8888 merged 1 commit intoapache:masterfrom
rawlinp:to-remove-weight-crconfig

Conversation

@rawlinp
Copy link
Copy Markdown
Contributor

@rawlinp rawlinp commented Oct 12, 2022

Instead of querying all profile parameters with the config file "CRConfig.json" for any servers of any type that belong to a given CDN, query only profile params assigned to profiles of CCR-type servers for the given CDN.

Fixes #3974.


Which Traffic Control components are affected by this PR?

  • Traffic Ops

What is the best way to verify this PR?

ATS profiles will generally have a "weight" parameter assigned (with config_file = CRConfig.json), and this will tend to show up in the CRConfig "config" section like so:

"config": {
    "weight": "0.8",

With this PR, snapshotting that CDN should remove that "weight" parameter from the CRConfig's "config" section.

PR submission checklist

Instead of querying all profile parameters with the config file
"CRConfig.json" for any servers of any type that belong to a given CDN,
query only profile params assigned to profiles of CCR-type servers for
the given CDN.

Fixes apache#3974.
@rawlinp rawlinp added Traffic Ops related to Traffic Ops tech debt rework due to choosing easy/limited solution labels Oct 12, 2022
@ocket8888
Copy link
Copy Markdown
Contributor

Do you think there's any chance anyone is relying on that behavior?

@rawlinp
Copy link
Copy Markdown
Contributor Author

rawlinp commented Oct 12, 2022

I think it would be highly unlikely.

@ocket8888
Copy link
Copy Markdown
Contributor

What about the "GLOBAL" Profile that usually exists - does that have things that need to go in there? In CiaB its type is UNK_PROFILE, although I'm not sure if that's standard.

@rawlinp
Copy link
Copy Markdown
Contributor Author

rawlinp commented Oct 12, 2022

I don't think so, because the original query would only get params from profiles that are assigned to servers in the given CDN, which excludes the GLOBAL profile.

Copy link
Copy Markdown
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

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

Works

@ocket8888 ocket8888 merged commit 125572f into apache:master Oct 13, 2022
@ocket8888 ocket8888 added the low impact affects only a small portion of a CDN, and cannot itself break one label Oct 13, 2022
@rawlinp rawlinp deleted the to-remove-weight-crconfig branch October 13, 2022 18:32
@asf-ci asf-ci mentioned this pull request Nov 1, 2022
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

low impact affects only a small portion of a CDN, and cannot itself break one tech debt rework due to choosing easy/limited solution Traffic Ops related to Traffic Ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove weight parameter from CRConfig.json

2 participants