From d906692f78e6919cf53df18f00995546cab2b1b0 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Fri, 13 Jul 2012 16:12:25 +0000 Subject: Use explicit destination user in xenapi rsync call Recent versions of xenserver use a newer, but buggy, version of rsync that will attempt to parse out the username and fail if it isn't in the destination. So, add it to the destination to ensure this works with both older and newer versions of rsync. Change-Id: I9b7f05a8ea5cf5b7fae1a55a2b8557b2bfe5b865 --- plugins/xenserver/xenapi/etc/xapi.d/plugins/migration | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration b/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration index 48436f5f3b..42f8eaef8c 100755 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration @@ -105,7 +105,8 @@ def transfer_vhd(session, args): vhd_path = "%s.vhd" % vdi_uuid source_path = "%s/%s" % (sr_path, vhd_path) - dest_path = '%s:/images/instance%s/' % (host, instance_uuid) + dest_user = 'root' + dest_path = '%s@%s:/images/instance%s/' % (dest_user, host, instance_uuid) logging.debug("Preparing to transmit %s to %s" % (source_path, dest_path)) -- cgit v1.2.1