Add base conn object and bump minimum libvirt version to 0.6.0

This base connection object will be used to simplify the API in various
places, reduce libvirt API calls, and better share code between virtinst
and virt-manager. For now it just centralizes connection opening.

This also exposed various places where our handling for older libvirt
was busted, so raise our minimum host version to 0.6.0, the first
version that supports threaded client requests.
This commit is contained in:
Cole Robinson
2013-07-05 08:59:58 -04:00
parent 35758d0fb7
commit be2d9ddcb4
35 changed files with 374 additions and 419 deletions

View File

@@ -32,7 +32,6 @@ from virtinst.OSDistro import SLDistro
from virtinst.OSDistro import UbuntuDistro
from virtinst.OSDistro import MandrivaDistro
import libvirt
import urlgrabber.progress
# pylint: disable=W0212
@@ -224,7 +223,7 @@ urls = {
}
testconn = libvirt.open("test:///default")
testconn = utils.open_testdefault()
testguest = virtinst.Guest(testconn, installer=virtinst.DistroInstaller())