-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Composer - Http error status code: 400 #6275
Comments
@abdul-git can you share your full debug log so I can take a closer look? Without additional info available, from what the error says |
@abdul-git can you post logs at https://gist.github.com/? Thanks |
@edwardmedia gist added to the debug section. |
Hello! any update? |
@abdul-git thanks for posting the logs. The error says Cluster is currently being created, deleted, updated or repaired and cannot be updated, did you apply the code already? I can't reach that error. Please provide steps that I can follow to repro it. |
@edwardmedia it just terminates while creating. The steps are the following:
google_composer_environment.composer-builder: Still creating... [53m10s elapsed] Error: Error waiting to create Environment: Error waiting for Creating Environment: Error code 3, message: Http error status code: 400 on composer.tf line 15, in resource "google_composer_environment" "composer-builder": |
Also, I can confirm same issue in customer environment - during the build it spins up GKE, but in final phase before the error cluster gets dropped. |
@abdul-git I successfully built a composer using your code without hitting an issue. Back to your log, I noticed below request. What is the network vpc-composer-002? I guess I don't have a full picture of your code here. Did you apply above code before?
|
@edwardmedia I have figured out what the issue is! it seems org level constraint was causing the issue with external IP, after disabling org level constraint I was able to create it successfully. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v0.12.20
Your version of Terraform is out of date! The latest version
is 0.12.24. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
google_composer_environment
Terraform Configuration Files
Debug Output
Error: Error waiting to create Environment: Error waiting for Creating Environment: Error code 3, message: Http error status code: 400
Http error message: BAD REQUEST
Additional errors:
{"ResourceType":"pw-securectl-host-prj/us-central1-my-composer-001-46ff1078-addons-gke-typer:container.projects.zones.clusters.nodePools.setManagement","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Cluster is currently being created, deleted, updated or repaired and cannot be updated.","status":"FAILED_PRECONDITION","details":[],"statusMessage":"Bad Request","requestPath":"https://container.googleapis.com/v1/projects/pw-securectl-host-prj/zones/us-central1-a/clusters/us-central1-my-composer-001-46ff1078-gke/nodePools/default-pool/setManagement","httpMethod":"POST"}}
on composer.tf line 1, in resource "google_composer_environment" "composer01":
1: resource "google_composer_environment" "composer01" {
https://gist.github.com/abdul-git/909d252fbd48c5e2b744b6831275707a
https://gist.github.com/abdul-git/19e3a82f8f1d4bfc990dbd2b9f8b4cac
Panic Output
Expected Behavior
Error 400 after 55 mins of build time and terminates - unable to create using the following:
https://www.terraform.io/docs/providers/google/r/composer_environment.html
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: