From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH]Fix XendAPI VM_migrate parameters
Date: Mon, 26 May 2008 09:40:05 +0800 [thread overview]
Message-ID: <483A14F5.3040106@oracle.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 217 bytes --]
Hi,
This patch removes unused resource parameter and fixes the default value for
domain_migrate. Also removes tab indent in XendOptions.py.
Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
regards,
zhigang
[-- Attachment #2: xen-fix-xendapi-vm-migrate-param.patch --]
[-- Type: text/x-patch, Size: 1929 bytes --]
Fix XendAPI VM_migrate parameters
This patch removes unused resource parameter and fixes the default value for
domain_migrate. Also removes tab indent in XendOptions.py.
Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
diff -Nurap xen-unstable.orig/tools/python/xen/xend/XendAPI.py xen-unstable/tools/python/xen/xend/XendAPI.py
--- xen-unstable.orig/tools/python/xen/xend/XendAPI.py 2008-05-26 09:20:58.000000000 +0800
+++ xen-unstable/tools/python/xen/xend/XendAPI.py 2008-05-26 09:29:19.000000000 +0800
@@ -1759,13 +1759,12 @@ class XendAPI(object):
xendom = XendDomain.instance()
xeninfo = xendom.get_vm_by_uuid(vm_ref)
- resource = other_config.get("resource", 0)
port = other_config.get("port", 0)
- node = other_config.get("node", 0)
- ssl = other_config.get("ssl", 0)
+ node = other_config.get("node", -1)
+ ssl = other_config.get("ssl", None)
xendom.domain_migrate(xeninfo.getDomid(), destination_url,
- bool(live), resource, port, node, ssl)
+ bool(live), port, node, ssl)
return xen_api_success_void()
def VM_save(self, _, vm_ref, dest, checkpoint):
diff -Nurap xen-unstable.orig/tools/python/xen/xend/XendOptions.py xen-unstable/tools/python/xen/xend/XendOptions.py
--- xen-unstable.orig/tools/python/xen/xend/XendOptions.py 2008-05-26 09:20:59.000000000 +0800
+++ xen-unstable/tools/python/xen/xend/XendOptions.py 2008-05-26 09:28:31.000000000 +0800
@@ -222,7 +222,7 @@ class XendOptions:
self.xend_relocation_port_default)
def get_xend_relocation_ssl_port(self):
- """Get the port xend listens at for ssl connection to its relocation
+ """Get the port xend listens at for ssl connection to its relocation
server.
"""
return self.get_config_int('xend-relocation-ssl-port',
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2008-05-26 1:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-26 1:40 Zhigang Wang [this message]
2008-05-26 2:52 ` [PATCH]Fix XendAPI VM_migrate parameters Masaki Kanno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=483A14F5.3040106@oracle.com \
--to=zhigang.x.wang@oracle.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.