Yeela Kaplan has uploaded a new change for review.

Change subject: migration: Support SPICE seamless migration over NAT
......................................................................

migration: Support SPICE seamless migration over NAT

Change-Id: Ie7b2b765c62aaf1cc694990205b518558e808516
Signed-off-by: Yeela Kaplan <[email protected]>
---
M vdsm/virt/migration.py
1 file changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/23/41223/1

diff --git a/vdsm/virt/migration.py b/vdsm/virt/migration.py
index 4a1bc60..a0c704f 100644
--- a/vdsm/virt/migration.py
+++ b/vdsm/virt/migration.py
@@ -44,6 +44,7 @@
 
 VIR_MIGRATE_PARAM_URI = 'migrate_uri'
 VIR_MIGRATE_PARAM_BANDWIDTH = 'bandwidth'
+VIR_MIGRATE_PARAM_GRAPHICS_URI = 'graphics_uri'
 
 
 class SourceThread(threading.Thread):
@@ -62,7 +63,8 @@
     def __init__(self, vm, dst='', dstparams='',
                  mode=MODE_REMOTE, method=METHOD_ONLINE,
                  tunneled=False, dstqemu='', abortOnError=False,
-                 compressed=False, autoConverge=False, **kwargs):
+                 consoleAddress=None, compressed=False,
+                 autoConverge=False, **kwargs):
         self.log = vm.log
         self._vm = vm
         self._dst = dst
@@ -75,6 +77,7 @@
         self._machineParams = {}
         self._tunneled = utils.tobool(tunneled)
         self._abortOnError = utils.tobool(abortOnError)
+        self._consoleAddress = consoleAddress
         self._dstqemu = dstqemu
         self._downtime = kwargs.get('downtime') or \
             config.get('vars', 'migration_downtime')
@@ -344,6 +347,9 @@
             # TODO: use libvirt constants when bz#1222795 is fixed
             params = {VIR_MIGRATE_PARAM_URI: str(muri),
                       VIR_MIGRATE_PARAM_BANDWIDTH: maxBandwidth}
+            if self._consoleAddress:
+                params[VIR_MIGRATE_PARAM_GRAPHICS_URI] = \
+                    str(self._consoleAddress)
 
             flags = (libvirt.VIR_MIGRATE_LIVE |
                      libvirt.VIR_MIGRATE_PEER2PEER |


-- 
To view, visit https://gerrit.ovirt.org/41223
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie7b2b765c62aaf1cc694990205b518558e808516
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to