Change in vdsm[master]: vm: graphdev: fix device hooks post migration

fromani at redhat.com fromani at redhat.com
Tue May 20 12:33:19 UTC 2014


Francesco Romani has uploaded a new change for review.

Change subject: vm: graphdev: fix device hooks post migration
......................................................................

vm: graphdev: fix device hooks post migration

the _deviceXML attribute was not regenerated on
destination VM after migrations.

Change-Id: I6643f81cc5cff1a282da607e7e5759a97b081c7a
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M vdsm/virt/vm.py
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/33/27933/1

diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index e977ff3..20936a7 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -5122,6 +5122,12 @@
 
                 if alias in aliasToDevice:
                     aliasToDevice[alias]._deviceXML = deviceXML.toxml()
+            elif deviceXML.tagName == GRAPHICS_DEVICES:
+                # graphics device do not have aliases, must match by type
+                graphType = deviceXML.getAttribute('type')
+                for devObj in self._devices[GRAPHICS_DEVICES]:
+                    if devObj.device == graphType:
+                        devObj._deviceXML = deviceXML.toxml()
 
     def waitForMigrationDestinationPrepare(self):
         """Wait until paths are prepared for migration destination"""


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6643f81cc5cff1a282da607e7e5759a97b081c7a
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>


More information about the vdsm-patches mailing list