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

t3c should send atstccfg the default ATS configuration directory#5251

Merged
rob05c merged 1 commit intoapache:masterfrom
jrushford:t3c_changes
Nov 6, 2020
Merged

t3c should send atstccfg the default ATS configuration directory#5251
rob05c merged 1 commit intoapache:masterfrom
jrushford:t3c_changes

Conversation

@jrushford
Copy link
Contributor

@jrushford jrushford commented Nov 5, 2020

What does this PR (Pull Request) do?

This PR fixes a bug where t3c does not send the default ATS config
directory to atstccfg. The default ATS configuration directory is used
for config files that have a relative or nil 'Path'. Also, this re-orders the rpm
package check to occur before any config files are request from
traffic ops.

  • This PR fixes #REPLACE_ME OR is not related to any Issue

No issue was created because t3c doesn't have integration tests yet
and is not yet used in production. This problem was detected while
developing tests for t3c.

Which Traffic Control components are affected by this PR?

  • Traffic Ops ORT

The following criteria are ALL met by this PR

t3c is not currently used in production and an integration test framework is still being
developed for it so this tests are forthcoming along with documentation and there is
no need to update the CHANGELOG at this time.

  • 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 DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Additional Information

to set the ATS configuration directory for config files that
have a relative or not 'Path'.  Also, this re-orders the rpm
package check to occur before any config files are request from
traffic ops.
@rob05c rob05c added bug something isn't working as intended Traffic Ops ORT *DEPRECATED* related to the traffic_ops_ort.pl script labels Nov 6, 2020
Copy link
Member

@rob05c rob05c 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! I manually tested, t3c drops all configs as-expected. Removed ATS, watched it default to /opt/trafficserver. Tested location params still place where their value is, custom --trafficserver-home places in that dir/etc/trafficserver as expected.

@rob05c rob05c merged commit 24bbf64 into apache:master Nov 6, 2020
ocket8888 pushed a commit to ocket8888/trafficcontrol that referenced this pull request Nov 11, 2020
…e#5251)

to set the ATS configuration directory for config files that
have a relative or not 'Path'.  Also, this re-orders the rpm
package check to occur before any config files are request from
traffic ops.

(cherry picked from commit 24bbf64)
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 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.

2 participants