trafficcontrol icon indicating copy to clipboard operation
trafficcontrol copied to clipboard

t3c-apply doesn't respect -R/--trafficserver-home for t3c-check-refs calls

Open ocket8888 opened this issue 4 years ago • 4 comments

This Bug Report affects these Traffic Control components:

  • Traffic Control Cache Config (T3C, formerly ORT)

Current behavior:

Regardless of any passed -R/--trafficserver-home value, the call t3c-apply makes to t3c-check-refs doesn't pass any flags that would cause it to look anywhere except /opt/trafficserver/libexec/trafficserver for plugins, or configuration files anywhere except /opt/trafficserver/etc/trafficserver/

Expected behavior:

-R/--trafficserver-home should be fully respected and passed appropriately to all externally called commands.

Steps to reproduce:

Install ATS anywhere except exactly /opt/, then run t3c apply. Notice that t3c-check-refs complains that it can't open /opt/trafficserver/libexec/trafficserver.

ocket8888 avatar Sep 13 '21 18:09 ocket8888

Slack user amc suggests using traffic_layout to determine the ATS file hierarchy, which is related to this and could potentially be implemented at the same time.

ocket8888 avatar Sep 15 '21 17:09 ocket8888

#6198 is labeled both low impact and medium impact.

zrhoffman avatar Jan 26 '22 18:01 zrhoffman

I'm not sure this is still true, may need re-investigating

ocket8888 avatar Aug 09 '22 16:08 ocket8888

I haven't tested, but looking at the code, it appears to still be true.

t3c-check-refs takes a flag --trafficserver-config-dir, but t3c-apply doesn't appear to ever pass that flag.

rob05c avatar Aug 09 '22 16:08 rob05c