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

google_container_cluster.primary: Post XXXXX x509: certificate signed by unknown authority #2109

Closed
ghost opened this issue Sep 25, 2018 · 9 comments
Labels

Comments

@ghost
Copy link

ghost commented Sep 25, 2018

This issue was originally opened by @jawlitkp as hashicorp/terraform#18899. It was migrated here as a result of the provider split. The original body of the issue is below.


Hi There,

I am getting below error when I try to create gke cluster using Jenkins. I am exporting "GOOGLE_APPLICATION_CREDENTIALS" in my Jenkins file. please note along with cluster I am also creating gce instances and not issue there. only it fails for cluster creation.

in my Jenkins file I have below :

sh "export GOOGLE_APPLICATION_CREDENTIALS=*******.json"

in my provider.tf I have :
provider "google" {
project = "${lookup(var.data["global"], "project")}"
region = "${lookup(var.data["global"], "region")}"
credentials = "${file("XXXX.json")}"
}

provider "google" {
project = "${lookup(var.data["global"], "host_project")}"
region = "${lookup(var.data["global"], "region")}"
credentials = "${file("XXXX.json")}"
alias = "sharedproject"
}

Terraform Version

Terraform v0.11.8

Debug Output

�[1m�[31mError: �[0m�[0m�[1mError applying plan:

1 error(s) occurred:

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.�[0m

@paddycarver
Copy link
Contributor

Do you have any debug logs we could look at for this? Also, are you working from behind a proxy?

@jawlitkp
Copy link

I will post logs here shortly and yes I am working behind the proxy. But I am able to create GCE instances and other google services. Problem is only with GKE cluster

@paddycarver
Copy link
Contributor

Hm. If there's any way to try the same config not behind a proxy, that'd be really helpful.

I don't want to point fingers at the proxy prematurely, but also "SSL error" and "proxy" historically has really only had one outcome, in my experience.

@jawlitkp
Copy link

Understood. I will try outside of proxy and get back to you on this shortly

@jaceq
Copy link
Contributor

jaceq commented Oct 9, 2018

I had the same issue, as a workaround I user 'insecure = true' and that helps.

@jawlitkp
Copy link

jawlitkp commented Oct 9, 2018

could you please tell ,where do you set 'insecure = true' ?

@jawlitkp
Copy link

jawlitkp commented Oct 9, 2018

so I logged into Jenkins box where I am having the issue. ran gcloud init and created the cluster using gcloud command. I was able to create. it is failing only when I run via terraform.

@rileykarson
Copy link
Collaborator

I think the insecure option proposed in #2962 would supersede this; this error is almost certainly due to Terraform being used behind a proxy.

@ghost
Copy link
Author

ghost commented Apr 5, 2019

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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 5, 2019
@ghost ghost removed the waiting-response label Apr 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants