Apply Change fails with Error: CPI error 'Bosh::Clouds::VMCreationFailed' with message 'VM failed to create: googleapi
search cancel

Apply Change fails with Error: CPI error 'Bosh::Clouds::VMCreationFailed' with message 'VM failed to create: googleapi

book

Article ID: 293835

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

An attempt to apply change via Ops Manager fails with the following error condition. In this case, the TAS environment is deployed to GCP. No major changes were made to the foundation other than a certificate rotation for certs expiring in the near future. The error condition was experienced when on the Telemetry tile.

VM Error: CPI error 'Bosh::Clouds::VMCreationFailed' with message 'VM failed to create: googleapi: Error 412: Constraint constraints/compute.vmExternalIpAccess violated for project XYZ. Add instance projects//zones//instances/ to the constraint to use external IP with it., conditionNotMet' in 'create_vm' CPI method (CPI request ID: 'cpi-941799')



Environment

Product Version: 2.10

Resolution

The error message is reporting that the VM is being created with an external IP. However, GCP Project XYZ does not allow VMS to be created with external IPs. The solution is to examine the tile generating the error above. It is likely the tile is configured with the INTERNET CONNECTED setting selected in the tile's respective Resource Configuration tab. The example below is the Telemetry Tile OM Resource Configuration page. Uncheck this box and retry the apply change.

Screen Shot 2022-03-24 at 4.51.40 PM.png

Another possibility is that the GCP policies have changed no longer permitting external IPs and should be reverted back. This is managed by the GCP Administrator.

Screen Shot 2022-03-24 at 11.27.09 AM.png