Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Concourse-Up failing to deploy to GCP #87

Closed
aguedes-pivotal opened this issue Feb 6, 2019 · 12 comments
Closed

Concourse-Up failing to deploy to GCP #87

aguedes-pivotal opened this issue Feb 6, 2019 · 12 comments

Comments

@aguedes-pivotal
Copy link

aguedes-pivotal commented Feb 6, 2019

Hi,

I'm trying to use Concourse-UP to deploy Concourse to GCP with the following command:
GOOGLE_APPLICATION_CREDENTIALS=service-account.json concourse-up deploy --iaas gcp project_name

The Service account I have used is a Project Owner and I have checked and the CloudSQL APIs are enabled for this project, but I'm getting the following:

Error: Error applying plan:

1 error(s) occurred:

* google_sql_database_instance.director: 1 error(s) occurred:

* google_sql_database_instance.director: Error, failed to create instance terraform-20190206165509650100000001: googleapi: Error 400: Missing parameter: Tier., required

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.


exit status 1

Thanks,
Alex

@DanielJonesEB
Copy link
Contributor

Thanks for letting us know, @aguedes-pivotal. Are you using version 0.19.0, or did you build binary from source?

@aguedes-pivotal
Copy link
Author

aguedes-pivotal commented Feb 6, 2019 via email

@mdcarlson
Copy link

+1 on this error.

(using service account with project owner role as workaround for least-privileged service account)

@DanielJonesEB
Copy link
Contributor

Hi folks,

Thanks for taking the time to get in touch. I'm looking into this currently - I can't reproduce using our CI service account, so investigating with a brand new account.

@DanielJonesEB
Copy link
Contributor

When you first deployed, did you bump into a series of API enablement errors?

I've managed to reproduce with a fresh project where various APIs needed to be enabled. I then did a concourse-destroy --iaas gcp my-deployment, redeployed, and it seems to have got past this point.

I'd suspect that the API error is getting in the way of the Cloud SQL tier being set properly.

If you could confirm that you can work around this be doing a destroy and then another deploy, I'll raise stories about documenting the required APIs, and then close this issue.

@vchrisb
Copy link

vchrisb commented Feb 7, 2019

I faced the same issue. When adding the db size parameter --db-size small, it works. It looks like a default is missing.

@DanielJonesEB
Copy link
Contributor

@vchrisb Did you encounter any API enablement errors prior to the Missing parameter: Tier. error?

@vchrisb
Copy link

vchrisb commented Feb 7, 2019

no, API was already enabled.

@vchrisb
Copy link

vchrisb commented Feb 7, 2019

I went with the --db-size parameter, because the error suspects, that the database Tier is simply not set.

@mdcarlson
Copy link

DJ,

I used the destroy/re-deploy workaround and the --region flag to successfully deploy Concourse-Up on GCP in the us-central1 region.

I did not have to specify a. --db-size flag.

The command I used was:
concourse-up deploy --iaas gcp --region us-central1 snowflake

-M

@DanielJonesEB
Copy link
Contributor

Thanks for the confirmation, @mdcarlson.

I believe we've identified the cause of the bug - it should only affect failed deployments that are then resumed.

@evadinckel
Copy link
Contributor

Hi,
This issue is now fixed in release 0.20.0 (https://github.com/EngineerBetter/concourse-up/releases/tag/0.20.0)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants