juju / 1.25-upgrade

Tools to upgrade and move a 1.25 environment to a 2.2.4+ controller
4 stars 7 forks source link

Handle containers as SSH targets #12

Closed axw closed 7 years ago

axw commented 7 years ago

Proxy SSH connections to containers through their hosts.

Refactor parallelCall, renaming it to parallelExec, and dropping the irrelevant details of DistResult. It now takes a list of targets (machine/host addresses), and a command to execute on each. The callers mix the results with machine details as needed.

Also, stop swallowing errors when making "service" command calls. We are still just logging the output of failed "service" command executions, but we no longer swallow the outright SSH transport failures.