Dan Kenigsberg has uploaded a new change for review.
Change subject: xen: libvirtconnection: connect to xen, if it is available ......................................................................
xen: libvirtconnection: connect to xen, if it is available
Change-Id: I6cc6474b012d900fe3c5e1dab7a1e3e815ae01c3 Signed-off-by: Dan Kenigsberg danken@redhat.com --- M lib/vdsm/libvirtconnection.py 1 file changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/50/28350/1
diff --git a/lib/vdsm/libvirtconnection.py b/lib/vdsm/libvirtconnection.py index b1332db..983287f 100644 --- a/lib/vdsm/libvirtconnection.py +++ b/lib/vdsm/libvirtconnection.py @@ -29,6 +29,7 @@ from . import constants, utils
log = logging.getLogger() +XEN = os.path.exists('/proc/xen')
class _EventLoop: @@ -124,7 +125,7 @@ libvirt.VIR_ERR_INTERNAL_ERROR, libvirt.VIR_ERR_NO_CONNECT, libvirt.VIR_ERR_INVALID_CONN) - if edom in EDOMAINS and ecode in ECODES: + if not XEN and edom in EDOMAINS and ecode in ECODES: try: __connections.get(id(target)).pingLibvirt() except libvirt.libvirtError as e: @@ -148,7 +149,10 @@ conn = __connections.get(id(target)) if not conn: log.debug('trying to connect libvirt') - conn = _open_qemu_connection() + if XEN: + conn = libvirt.open('xen:///') + else: + conn = _open_qemu_connection() __connections[id(target)] = conn
setattr(conn, 'pingLibvirt', getattr(conn, 'getLibVersion'))
oVirt Jenkins CI Server has posted comments on this change.
Change subject: xen: libvirtconnection: connect to xen, if it is available ......................................................................
Patch Set 1:
Build Successful
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit/9686/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/8753/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/9539/ : SUCCESS
Itamar Heim has posted comments on this change.
Change subject: xen: libvirtconnection: connect to xen, if it is available ......................................................................
Patch Set 1:
ping
Jenkins CI RO has abandoned this change.
Change subject: xen: libvirtconnection: connect to xen, if it is available ......................................................................
Abandoned
Abandoned due to no activity - please restore if still relevant
Jenkins CI RO has posted comments on this change.
Change subject: xen: libvirtconnection: connect to xen, if it is available ......................................................................
Patch Set 1:
Abandoned due to no activity - please restore if still relevant
automation@ovirt.org has posted comments on this change.
Change subject: xen: libvirtconnection: connect to xen, if it is available ......................................................................
Patch Set 1:
* Update tracker::IGNORE, no Bug-Url found
vdsm-patches@lists.fedorahosted.org