From 7165b3a9b125f68ff43eb2b5fdc597096c595062 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 27 Jan 2017 20:59:43 +0100 Subject: gce: revert to terminate on migration No, it does not work: Error 400: Invalid value for field 'resource.scheduling.preemptible': 'true'. Scheduling must have preemptible be false when OnHostMaintenance isn't TERMINATE --- gce/gce.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gce') diff --git a/gce/gce.go b/gce/gce.go index 1d22bd78b..27bbbf6f2 100644 --- a/gce/gce.go +++ b/gce/gce.go @@ -127,7 +127,7 @@ func (ctx *Context) CreateInstance(name, machineType, image, sshkey string) (str Scheduling: &compute.Scheduling{ AutomaticRestart: false, Preemptible: true, - OnHostMaintenance: "MIGRATE", + OnHostMaintenance: "TERMINATE", }, } -- cgit mrf-deployment