http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=998
Summary: external-migration-tool: missing domU name on step0
Product: Xen
Version: unstable
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Tools
AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
ReportedBy: hbaumann@xxxxxxxx
CC: hbaumann@xxxxxxxx
the external-migration-tool script does not get -domname from xend on step 0 of
(live) migration. on all other steps xend calls with it with domU name.
the following patch works for me.
Environment
xen 3.1.0
gentoo 2007.0
kernel 2.6.18-xen
--- tools/python/xen/xend/XendDomain.py.org 2007-05-18 16:45:21.000000000
+0200
+++ tools/python/xen/xend/XendDomain.py 2007-06-15 12:40:20.000000000 +0200
@@ -1208,7 +1208,10 @@
raise XendError("Cannot migrate privileged domain %s" % domid)
""" The following call may raise a XendError exception """
- dominfo.testMigrateDevices(True, dst)
+ #dominfo.testMigrateDevices(True, dst)
+ # 15.06.2007 - added by the2nd to get domU name on step 0
(external-migration-tool)
+ dominfo.testMigrateDevices(True, dst, domid)
+
if live:
""" Make sure there's memory free for enabling shadow mode """
--- tools/python/xen/xend/XendDomainInfo.py.org 2007-05-18 16:45:21.000000000
+0200
+++ tools/python/xen/xend/XendDomainInfo.py 2007-06-15 12:40:13.000000000
+0200
@@ -1365,12 +1365,17 @@
# Migration functions (public)
#
- def testMigrateDevices(self, network, dst):
+ #def testMigrateDevices(self, network, dst):
+ # 15.06.2007 - added by the2nd to get domU name on step 0
(external-migration-tool)
+ def testMigrateDevices(self, network, dst, domName=''):
+
""" Notify all device about intention of migration
@raise: XendError for a device that cannot be migrated
"""
for (n, c) in self.info.all_devices_sxpr():
- rc = self.migrateDevice(n, c, network, dst, DEV_MIGRATE_TEST)
+ #rc = self.migrateDevice(n, c, network, dst, DEV_MIGRATE_TEST)
+ rc = self.migrateDevice(n, c, network, dst, DEV_MIGRATE_TEST,
domName)
+
if rc != 0:
raise XendError("Device of type '%s' refuses migration." % n)
regards
heiko
--
Configure bugmail:
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs
|