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@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"""