Dan Kenigsberg has uploaded a new change for review.

Change subject: xen: do not attempt to read underlying device info
......................................................................

xen: do not attempt to read underlying device info

Xen's device information is quite different than what Vdsm currently
expects and needs. They lack bus address, alias, and driver.
With this patch, Vdsm-on-Xen does not even attempt to read this
information, which means that it would not be able to inract with the
underlying devices.

This is a hack which I do not expect getting into Vdsm proper. Much
deeper refactoring is required to handle Xen devices.

Change-Id: Ifae785c5caa2e37fb8968ead570502e935f7900f
Signed-off-by: Dan Kenigsberg <dan...@redhat.com>
---
M vdsm/virt/vm.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/52/28352/1

diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index 21662bc..6a0d035 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -2921,7 +2921,8 @@
             raise Exception('destroy() called before Vm started')
 
         self._getUnderlyingVmInfo()
-        self._getUnderlyingVmDevicesInfo()
+        if not libvirtconnection.XEN:
+            self._getUnderlyingVmDevicesInfo()
         self._updateAgentChannels()
 
         # Currently there is no protection agains mirroring a network twice,


-- 
To view, visit http://gerrit.ovirt.org/28352
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifae785c5caa2e37fb8968ead570502e935f7900f
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <dan...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to