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

Start LXD containers up after migration #13

Closed axw closed 7 years ago

axw commented 7 years ago

After migrating LXC containers to LXD, start the LXD containers up so that other commands can SSH into them to run the remaining parts of the upgrade, such as upgrade-agents. After starting the LXD containers, the Juju agents are stopped.

The "serviceCall" and "serviceCommand" functions are consolidated into a new function, agentServiceCommand. This function will return an error if any of the executions exit with a non-zero code. Failed executions will have their output written to stderr, prefixed with the machine ID.