openshift-metal3 / terraform-provider-ironic

Terraform provider for Ironic
Apache License 2.0
24 stars 25 forks source link

Infinite loop with untrusted SSL Certificate #68

Closed adarobin closed 2 years ago

adarobin commented 2 years ago

I was attempting to use this provider on a bifrost install with a self-signed SSL certificate and that seems to get the provider stuck in an infinite loop.

I was able to get the provider to throw an error by adding this above the time.Sleep call in the waitForConductor and waitForAPI functions.

if strings.HasSuffix(err.Error(), "x509: certificate signed by unknown authority") {
     return
}

But this isn't the most elegant solution.

adarobin commented 2 years ago

Sorry for the noise, I didn't realize that I had timeout declared in the provider block - I thought it was set to 0.