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
This commit is contained in:
Johannes Erdfelt
2012-07-13 16:12:25 +00:00
parent e656cc8a92
commit d906692f78

View File

@@ -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))