Improve debug logging
What does this MR do?
Improve debug logging
Why was this MR needed?
Before:
DEBU[2021-01-28T11:20:29+01:00] Dialing "10.221.188.112:8822" failed: %!w(*net.OpError=&{dial tcp <nil> 0xc0001c3b90 0x1ec4d00}) PID=59164 command=prepare_exec vm-name=runner-manual-qa-1611829202
After:
DEBU[2021-01-28T11:23:07+01:00] Dialing "10.221.188.112:8822" failed PID=59552 command=prepare_exec error="dial tcp 10.221.188.112:8822: connect: connection refused" vm-name=runner-manual-qa-1611829382
DEBU[2021-01-28T11:23:09+01:00] Dialing "10.221.188.112:8822" failed PID=59552 command=prepare_exec error="dial tcp 10.221.188.112:8822: i/o timeout" vm-name=runner-manual-qa-1611829382
What's the best way to test this MR?
Get your orka-cli token:
cat ~/.config/configstore/orka-cli.json | jq -r ".token"
Fill out your config.toml
Provider = "orka"
OS = "macos"
VMTag = "manual-qa"
[Orka]
BaseImage = "runner-12-20201203.img"
Cores = 3
Endpoint = "http://10.221.188.100"
Token = "token from orka-cli"
Connect to the VPN using the script in the orka
repository:
path-to-orka/scripts/vpn.sh
Run:
CUSTOM_ENV_CI_JOB_ID=$(date +%s) BUILD_FAILURE_EXIT_CODE=1 SYSTEM_FAILURE_EXIT_CODE=2 bash -c "go run cmd/autoscaler/main.go --debug custom prepare && go run cmd/autoscaler/main.go custom cleanup"
What are the relevant issue numbers?
closes #64 (closed)
Edited by Steve Xuereb