Skip to contentSkip to conversation

Fix error message about xm migrate command

PATCH Applied Masaki Kanno 2 participants 2 messages Nov 16, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix error message about xm migrate command

Hi,

This patch fixes an error message about xm migrate command.

Without this patch you see:

 # xm migrate Domain-0 192.168.0.100
 Error: int argument required
 Usage: xm migrate <Domain> <Host>

Migrate a domain to another machine.

Options:

-h, --help Print this help.
-l, --live Use live migration.
-p=portnum, --port=portnum
Use specified port for migration.
-r=MBIT, --resource=MBIT
Set level of resource usage for migration.

With this patch applied:

 # xm migrate Domain-0 192.168.0.100
 Error: Cannot migrate privileged domain Domain-0
 Usage: xm migrate <Domain> <Host>

Migrate a domain to another machine.

Options:

-h, --help Print this help.
-l, --live Use live migration.
-p=portnum, --port=portnum
Use specified port for migration.
-r=MBIT, --resource=MBIT
Set level of resource usage for migration.

Best regards,
Kan

tools/python/xen/xend/XendDomain.py +1 -1
diff -r 6e22ba721720 tools/python/xen/xend/XendDomain.py
@@ -1049,7 +1049,7 @@ class XendDomain:
             raise XendInvalidDomain(str(domid))
 
         if dominfo.getDomid() == DOM0_ID:
-            raise XendError("Cannot migrate privileged domain %i" % domid)
+            raise XendError("Cannot migrate privileged domain %s" % domid)
 
         """ The following call may raise a XendError exception """
         dominfo.testMigrateDevices(True, dst)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw

On Thu, Nov 16, 2006 at 01:35:48PM +0900, Masaki Kanno wrote:

Content-Description: Mail message body

Quoted 3 lines

Hi,

This patch fixes an error message about xm migrate command.

Applied, thanks.

Ewan.