WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-bugs

[Xen-bugs] [Bug 998] New: external-migration-tool: missing domU name on

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 998] New: external-migration-tool: missing domU name on step0
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Fri, 15 Jun 2007 04:10:23 -0700
Delivery-date: Fri, 15 Jun 2007 04:11:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 998] New: external-migration-tool: missing domU name on step0, bugzilla-daemon <=