From 71b00cfbfc5c749ff257952d9bd9e7cdbc7c654b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 15 May 2023 11:35:13 +0200 Subject: vm/gce: collect verbose scp output We're getting sporadic "failed to copy binary to VM" errors, but we lack the debug info to understand the nature of the problem. Always collect scp debug info for gce VMs. --- vm/gce/gce.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm/gce') diff --git a/vm/gce/gce.go b/vm/gce/gce.go index 458b6ed0f..208cce612 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -217,7 +217,7 @@ func (inst *instance) Forward(port int) (string, error) { func (inst *instance) Copy(hostSrc string) (string, error) { vmDst := "./" + filepath.Base(hostSrc) - args := append(vmimpl.SCPArgs(inst.debug, inst.sshKey, 22), hostSrc, inst.sshUser+"@"+inst.ip+":"+vmDst) + args := append(vmimpl.SCPArgs(true, inst.sshKey, 22), hostSrc, inst.sshUser+"@"+inst.ip+":"+vmDst) if err := runCmd(inst.debug, "scp", args...); err != nil { return "", err } -- cgit mrf-deployment