Created attachment 1608690 [details]
Description of problem:
The installer fails with the following error when trying to create a cluster on GCP using N2 machine type:
level=error msg="Error: Changing the machine_type, min_cpu_platform, or service_account on an instance requires stopping it. To acknowledge this, please set allow_stopping_for_update = true in your config."
Version-Release number of the following components:
root@ip-172-31-66-170: ~/scale-ci-deploy # bin/openshift-install version
built from commit c2bdbb618c25500e2fa4602c73c506358cc59ae7
release image registry.svc.ci.openshift.org/ocp/release@sha256:d0bc8d66b0ed4d5b4f2da5a1fb93e0589b88c5fcf94763bb8b56b0f022b3f51d
Steps to Reproduce:
1. Set the machine type of Masters and Workers to N2. The zones need to be us-central1-a and us-central1-c as they are only zones which support N2 instances.
2. Install the cluster.
Error: Changing the machine_type, min_cpu_platform, or service_account on an instance requires stopping it. To acknowledge this, please set allow_stopping_for_update = true in your config.
Cluster installed successfully.
Attached the openshift install log.
Looking at the logs, it looks like we are trying to modify the instances during bootstrap destroy.
1) we should identify why there is a change on these master machines, nothing should be changing for them..
2) maybe fix the issue for now with lifecycle options https://www.terraform.io/docs/configuration/resources.html#lifecycle-lifecycle-customizations
Created attachment 1608691 [details]
Sample install config
Install cluster success with n2-standard-4 type
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.