提交 4f949f74 编写于 作者: P Pavel Glushchak 提交者: Maxim Nestratov

vz: fixed migration in p2p mode

dom xml generated on begin step should be passed
to perform step in VIR_MIGRATE_PARAM_DEST_XML parameter.
Otherwise 'XML error: failed to parse xml document' is
raised on destination host as dom xml is NULL.
Signed-off-by: NPavel Glushchak <pglushchak@virtuozzo.com>
上级 bdd6899b
...@@ -3199,6 +3199,7 @@ vzDomainMigratePerformP2P(virDomainObjPtr dom, ...@@ -3199,6 +3199,7 @@ vzDomainMigratePerformP2P(virDomainObjPtr dom,
virConnectPtr dconn = NULL; virConnectPtr dconn = NULL;
virTypedParameterPtr params = NULL; virTypedParameterPtr params = NULL;
int ret = -1; int ret = -1;
int maxparams = nparams;
if (virTypedParamsCopy(&params, orig_params, nparams) < 0) if (virTypedParamsCopy(&params, orig_params, nparams) < 0)
return -1; return -1;
...@@ -3210,6 +3211,10 @@ vzDomainMigratePerformP2P(virDomainObjPtr dom, ...@@ -3210,6 +3211,10 @@ vzDomainMigratePerformP2P(virDomainObjPtr dom,
&cookieout, &cookieoutlen))) &cookieout, &cookieoutlen)))
goto done; goto done;
if (virTypedParamsAddString(&params, &nparams, &maxparams,
VIR_MIGRATE_PARAM_DEST_XML, dom_xml) < 0)
goto done;
cookiein = cookieout; cookiein = cookieout;
cookieinlen = cookieoutlen; cookieinlen = cookieoutlen;
cookieout = NULL; cookieout = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册