Add revert-lxd command to roll migrated containers back to LXC #55

Merged
merged 2 commits into from Dec 1, 2017

Conversation

Projects
None yet
2 participants
Member

babbageclunk commented Dec 1, 2017

The reversion is done in-place:

  • the rootfs is moved back to the LXC container,
  • the LXC config change made in the migration is undone,
  • and the LXD container is deleted (only affects config, since the data has been moved back).

This will be used if the upgrade needs to be aborted. The command accepts --match (like migrate-lxc) so that the containers can be reverted in stages to avoid interrupting the workload (if there are redundant units).

babbageclunk added some commits Oct 17, 2017

Implement revert-lxd command
This will do an in-place conversion of migrated LXD containers back to
LXC as part of aborting a 1.25 -> 2 upgrade. It accepts a --match option
to revert only some containers (so that the workloads don't need to be
interrupted, as long as the services are configured with redundancy).

@babbageclunk babbageclunk requested a review from axw Dec 1, 2017

axw approved these changes Dec 1, 2017

@babbageclunk babbageclunk merged commit fa9443d into juju:master Dec 1, 2017

@babbageclunk babbageclunk deleted the babbageclunk:revert-lxc branch Dec 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment