Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Error when redeploying qhub GCP #985

Closed
viniciusdc opened this issue Jan 10, 2022 · 1 comment
Closed

[bug] Error when redeploying qhub GCP #985

viniciusdc opened this issue Jan 10, 2022 · 1 comment
Labels
area: terraform 💾 needs: discussion 💬 Needs discussion with the rest of the team provider: GCP type: bug 🐛 Something isn't working

Comments

@viniciusdc
Copy link
Contributor

Describe the bug

When testing qhub on GCP, after enabling DNS auto-provision and succeded deploying qhub, an error occurs when attempting to deploy again with superfluous changes to the qhub-config.

Expected behaviour

Deployment succeeds without any error.

Actual behaviour

It seemed as the state of deployment is not updated since Qhub seems to try to redeploy and recreate the resources as if they do not exist. The following errors are presented once a redeploy is attempted.

[terraform]: │ Error: googleapi: Error 409: Already exists: projects/.../locations/us-central1/clusters/projectname., alreadyExists
[terraform]: │ 
[terraform]: │   with module.kubernetes.google_container_cluster.main,
[terraform]: │   on modules/gcp/kubernetes/main.tf line 4, in resource "google_container_cluster" "main":
[terraform]: │    4: resource "google_container_cluster" "main" {
[terraform]: │ 
[terraform]: ╵
[terraform]: ╷
[terraform]: │ Error: Error creating service account: googleapi: Error 409: Service account projectname-dev already exists within project projects/....
[terraform]: │ Details:
[terraform]: │ [
[terraform]: │   {
[terraform]: │     "@type": "type.googleapis.com/google.rpc.ResourceInfo",
[terraform]: │     "resourceName": "projects/.../serviceAccounts/projectname-dev@q....iam.gserviceaccount.com"
[terraform]: │   }
[terraform]: │ ]
[terraform]: │ , alreadyExists
[terraform]: │ 
[terraform]: │   with module.kubernetes.google_service_account.main,
[terraform]: │   on modules/gcp/kubernetes/service_account.tf line 1, in resource "google_service_account" "main":
[terraform]: │    1: resource "google_service_account" "main" {
[terraform]: │ 

How to reproduce

Fresh instant qhub from main, initialize a GCP deployment, then deploy qhub using the DNS Cloudflare auto-provision setting.
Once the deployment finishes, make a superfluous change to the qhub-config and attempt a second deployment

@viniciusdc viniciusdc added area: terraform 💾 needs: discussion 💬 Needs discussion with the rest of the team provider: GCP type: bug 🐛 Something isn't working labels Jan 10, 2022
@trallard trallard moved this to Needs Triage 🔍 in QHub Project Mangement 🚀 Jan 20, 2022
@viniciusdc
Copy link
Contributor Author

FIxed after #1003 was merged

Repository owner moved this from Needs Triage 🔍 to Done 💪🏾 in QHub Project Mangement 🚀 Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: terraform 💾 needs: discussion 💬 Needs discussion with the rest of the team provider: GCP type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant