The implementation here uses a mix of:
* uvt-simplestream-libvirt
* uvt-kvm
* virsh
These are provided by the uvtool package and the
dependencies. The implementation of the low level
calls out to the shell are in container/kvm/libvirt.go
These low level calls are then used by the container
factory and container instances in container/kvm.
These are used by the container manager instance.
There are some live tests for the kvm calls.
cd container/kvm
sudo -E go test
This will take quite some time the first time it is
run on any particular machine as it is syncing the
kvm machine instances. But it does work \o/
The machines won't actually boot functional juju
machines in the test because the tools location is
fake.
Affected files (+424, -29 lines):
A [revision details]
M container/kvm/container.go
M container/kvm/containerfactory.go
M container/kvm/interface.go
M container/kvm/kvm.go
M container/kvm/kvm_test.go
A container/kvm/libvirt.go
A container/kvm/live_test.go
M container/kvm/mock/mock-kvm.go
M container/kvm/mock/mock-kvm_test.go
M container/userdata.go
M log/log.go
Reviewers: mp+196072_ code.launchpad. net,
Message:
Please take a look.
Description:
Implement kvm start, stop and list.
The implementation here uses a mix of: m-libvirt
* uvt-simplestrea
* uvt-kvm
* virsh
These are provided by the uvtool package and the kvm/libvirt. go
dependencies. The implementation of the low level
calls out to the shell are in container/
These low level calls are then used by the container
factory and container instances in container/kvm.
These are used by the container manager instance.
There are some live tests for the kvm calls.
cd container/kvm
sudo -E go test
This will take quite some time the first time it is
run on any particular machine as it is syncing the
kvm machine instances. But it does work \o/
The machines won't actually boot functional juju
machines in the test because the tools location is
fake.
https:/ /code.launchpad .net/~thumper/ juju-core/ kvm-manager- start-stop/ +merge/ 196072
Requires: /code.launchpad .net/~thumper/ juju-core/ local-provider- syslog/ +merge/ 196048
https:/
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/30020044/
Affected files (+424, -29 lines): kvm/container. go kvm/containerfa ctory.go kvm/interface. go kvm/kvm. go kvm/kvm_ test.go kvm/libvirt. go kvm/live_ test.go kvm/mock/ mock-kvm. go kvm/mock/ mock-kvm_ test.go userdata. go
A [revision details]
M container/
M container/
M container/
M container/
M container/
A container/
A container/
M container/
M container/
M container/
M log/log.go