adobe/butler

Butler not respecting 30X redirects

Closed this issue · 1 comments

I haven't tested this myself, but adrian stancu told me that the following is happening:

time="2018-04-18T10:40:09Z" level=info msg="Config::RunCMHandler(): entering"
time="2018-04-18T10:40:21Z" level=info msg="10.54.84.11 - - [18/Apr/2018 10:40:21] \"GET /health-check HTTP/1.1 200 3661\" 0.000185"
time="2018-04-18T10:40:34Z" level=error msg="ManagerOpts::DownloadConfigFile(): Could not download from http://git.loc.adobe.net/cgit/adobe-platform/ethos-monitoring/plain/oncluster/rules/commonrules.yml, err=GET http://git.loc.adobe.net/cgit/adobe-platform/ethos-monitoring/plain/oncluster/rules/commonrules.yml giving up after 4 attempts"
time="2018-04-18T10:40:34Z" level=error msg="ManagerOpts::DownloadConfigFile(): Could not download from http://git.loc.adobe.net/cgit/adobe-platform/ethos-monitoring/plain/oncluster/prometheus-monitoring-v2.yml, err=GET http://git.loc.adobe.net/cgit/adobe-platform/ethos-monitoring/plain/oncluster/prometheus-monitoring-v2.yml giving up after 4 attempts"
time="2018-04-18T10:41:41Z" level=info msg="10.54.84.11 - - [18/Apr/2018 10:41:41] \"GET /health-check HTTP/1.1 200 3661\" 0.000208"
time="2018-04-18T10:42:41Z" level=info msg="10.54.84.11 - - [18/Apr/2018 10:42:41] \"GET /health-check HTTP/1.1 200 3661\" 0.
time="2018-04-18T10:44:01Z" level=info msg="10.54.84.11 - - [18/Apr/2018 10:44:01] \"GET /health-check HTTP/1.1 200 3661\" 0.000146"
time="2018-04-18T10:44:19Z" level=error msg="ManagerOpts::DownloadConfigFile(): Could not download from http://git.loc.adobe.net/cgit/adobe-platform/ethos-monitoring/plain/oncluster/alerts/hardware.yml, err=GET http://git.loc.adobe.net/cgit/adobe-platform/ethos-monitoring/plain/oncluster/alerts/hardware.yml giving up after 4 attempts"
time="2018-04-18T10:44:21Z" level=info msg="10.54.84.11 - - [18/Apr/2018 10:44:21] \"GET /health-check HTTP/1.1 200 3661\" 0.000161"
time="2018-04-18T10:44:41Z" level=info msg="10.54.84.11 - - [18/Apr/2018 10:44:41] \"GET /health-check HTTP/1.1 200 3661\" 0.000199"

The butler.toml can be found here:

https://git.corp.adobe.com/adobe-platform/ethos-monitoring/blob/master/butler/ethos01-prod-or1/butler.toml

confirmed that butler follows redirects.

x.x.x.x - - [07/Sep/2018:08:52:25 -0700] "GET /prom/prom.yaml HTTP/1.1" 301 185 "-" "Go-http-client/1.1" "-"
x.x.x.x - - [07/Sep/2018:08:52:25 -0700] "GET /prom/prom.yaml HTTP/2.0" 200 41 "http://owns.com/prom/prom.yaml" "Go-http-client/2.0" "-"