From 31af2ce0225268bd9d1ed27fef830debbed2a188 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 22 Nov 2017 17:53:36 +0100 Subject: vm/gce: fix boot output capture Turns out GetSerialPortOutput API does not work if instance has serial port connections enabled (which we always have). Get output from serial port relay service instead. --- pkg/gce/gce.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'pkg/gce') diff --git a/pkg/gce/gce.go b/pkg/gce/gce.go index c08ae5519..e8ad084e6 100644 --- a/pkg/gce/gce.go +++ b/pkg/gce/gce.go @@ -228,16 +228,6 @@ func (ctx *Context) DeleteImage(imageName string) error { return nil } -func (ctx *Context) GetSerialPortOutput(instance string) (string, error) { - <-ctx.apiRateGate - output, err := ctx.computeService.Instances.GetSerialPortOutput( - ctx.ProjectID, ctx.ZoneID, instance).Port(1).Do() - if err != nil { - return "", fmt.Errorf("failed to get serial port output: %v", err) - } - return output.Contents, nil -} - type resourcePoolExhaustedError string func (err resourcePoolExhaustedError) Error() string { -- cgit mrf-deployment