juju / autopilot-log-collector

GNU General Public License v3.0
2 stars 6 forks source link

Log collect no juju ssh #3

Closed blackboxsw closed 7 years ago

blackboxsw commented 7 years ago

https://bugs.launchpad.net/juju/+bug/1473069 is cripliing our log-collector on system-test runs. More than 1/3 of the system test runs are missing logs from various units making triage difficult.

This quick pass against log-collector is to allow us to obtain the properly reported unit ip addresses from juju status and just directly ssh using juju's juju_id_rsa private key.

This avoids various ssh hostname key errors or intermittently referencing internal IP addresses which cause collect-logs to bail on timeouts which there is no response from the juju unit's internal ips.

Test run using this branch collected logs properly at https://ci.lscape.net/job/landscape-system-tests/5007/