From bf3b32eb43d4b6b620b3c2b9f2f54aeadc8f17f6 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 23 Jan 2024 11:12:16 +0100 Subject: vm/gce: use regional serial port connections It's now the recommended approach. Co-authored-by: Alex Tyler Co-authored-by: Aleksandr Nogikh --- vm/gce/gce.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm/gce/gce.go') diff --git a/vm/gce/gce.go b/vm/gce/gce.go index e8eb35f06..f775f43b5 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -453,8 +453,8 @@ func (inst *instance) serialPortArgs(replay bool) []string { if replay { replayArg = ".replay-lines=10000" } - conAddr := fmt.Sprintf("%v.%v.%v.%s.port=1%s@ssh-serialport.googleapis.com", - inst.GCE.ProjectID, inst.GCE.ZoneID, inst.name, user, replayArg) + conAddr := fmt.Sprintf("%v.%v.%v.%s.port=1%s@%v-ssh-serialport.googleapis.com", + inst.GCE.ProjectID, inst.GCE.ZoneID, inst.name, user, replayArg, inst.GCE.RegionID) conArgs := append(vmimpl.SSHArgs(inst.debug, key, 9600), conAddr) // TODO(blackgnezdo): Remove this once ssh-serialport.googleapis.com stops using // host key algorithm: ssh-rsa. -- cgit mrf-deployment