From 742f448304a916ae83bcdadf7e3be76c5464b37b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 28 Mar 2019 13:20:58 +0100 Subject: vm/gce: allow non-preemptible VMs We are seeing some flakes during bisection and image testing. Hard to tell what's the root cause because they are episodic. But using non-preemptible VMs for bisection and image testing looks good on all fronts. Update #501 --- pkg/gce/gce.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/gce') diff --git a/pkg/gce/gce.go b/pkg/gce/gce.go index 2e0b397ad..e5194ae00 100644 --- a/pkg/gce/gce.go +++ b/pkg/gce/gce.go @@ -92,7 +92,7 @@ func NewContext() (*Context, error) { return ctx, nil } -func (ctx *Context) CreateInstance(name, machineType, image, sshkey string) (string, error) { +func (ctx *Context) CreateInstance(name, machineType, image, sshkey string, preemptible bool) (string, error) { prefix := "https://www.googleapis.com/compute/v1/projects/" + ctx.ProjectID sshkeyAttr := "syzkaller:" + sshkey oneAttr := "1" @@ -132,7 +132,7 @@ func (ctx *Context) CreateInstance(name, machineType, image, sshkey string) (str }, Scheduling: &compute.Scheduling{ AutomaticRestart: &falseAttr, - Preemptible: true, + Preemptible: preemptible, OnHostMaintenance: "TERMINATE", }, } -- cgit mrf-deployment