Descriptioncmd/jujud/machineagent: install LXC on start
Related to bug #1199913. On startup we will 'apt-get install lxc' if we
need to. This uses the containers/lxc code to detect if we have lxc
available, and if it fails then we request to install it.
I've tested this live, and it does solve the immediate problem.
Also, the test suite still passes because all the things that call
MachineAgent.Run are already using the lxc.TestSuite and so the
containers code "provides" lxc via the MockFactory.
One test we could do is that we try to install lxc if we run
the machine agent (and inject a MockFactory that fails the List
request). But I felt live testing was appropriate for this.
https://code.launchpad.net/~jameinel/juju-core/api-connect-upgrade-1199915/+merge/174207
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 3
Patch Set 2 : cmd/jujud/machineagent: install LXC on start #
Total comments: 2
MessagesTotal messages: 6
|