-
Notifications
You must be signed in to change notification settings - Fork 9.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
Rancher provider try to access the API on "plan" #10945
Comments
Well, Terraform has to talk to Rancher during a I don't believe this is an issue with the Rancher provider. |
Did anyone ever find a solution to this? I'm trying to create the rancher server and reference it to assign hosts, but cannot find a way to do this in the same plan. However, if I use different plans, I can't find a way to share state (so the rancher IP is exposed automatically) without each plan trying to delete the resources created in the other... Any thoughts? |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform version: 8.2
Affected Resource(s) rancher provider
Hello I try to test the Rancher provider. But I face a problem and I don't know if it's a normal behavior or a bug.
My terraform scripts are setting up a cluster including a Rancher server and 7 hosts. My plan is, once the rancher server is working, to create a registration token using the rancher provider (ressource: rancher_registration_token) , and executing the command the resource is returning on each host to add this hosts on the Rancher cluster.
But it seem that the Rancher provider try to access the rancher API before the resource exist when executing the "terraform plan" command
My script
the scaleway_server.rancher.private_ip is the private IP of the Rancher server.
the error I got:
If I replace the
api_url
by a random url like that:I got the following message:
As I understand the Rancher provider try to access the rancher server API on "terraform plan". And I expect this provider to contact the rancher onlywhen the rancher is ready (resource scaleway_server.rancher.private_ip ready)
The text was updated successfully, but these errors were encountered: