Open superherointj opened 3 years ago
Thanks for opening this issue. Do you mind sharing your debug log as a gist?
@aareet Thanks for the heads up on the logs. Sorry for delay in answering and failing to include necessary data.
Docker (Arch Linux) and Nix logs available at: https://github.com/superherointj/tfprovider-kubernetes-alpha-crd-cert-manager-timeout/blob/master/logs/
It errors as timeout as always.
I have updated demo: https://github.com/superherointj/tfprovider-kubernetes-alpha-crd-cert-manager-timeout
Let me know if anything else is necessary.
Hi, I was able to reproduce this. The root cause for the long runtime and timeout in the provider is an oversight on my side when implementing this fix: https://github.com/hashicorp/terraform-provider-kubernetes-alpha/pull/177. I should have done the same on the refresh side.
The other interesting fact I noticed is that the refresh on the resource of module.cert-manager
is actually triggered by the linode cluster resource being updated at the second apply. I'm not sure if that was intended, in order to demonstrate the issue, but in real-life that would be a problem. The cluster resource should not see any updates at the second apply in the script.
Is something similar maybe happening to you in your real-world use-case?
Regardless, I'll follow up with a PR similar to #177 for the refresh side of things. That would throw an error instead of taking a long time to timeout. It would still not allow for the cluster resource to be updated in the same apply as Kubernetes resources.
It was unintentional on my part.
I incorrectly guessed having created cluster first with -target parameter it wouldn't be an issue not splitting cluster creation from kubernetes provisioning. I'll separate cluster creation from kubernetes provisioning to a different directory / project. I'm just getting started on Terraform. Still learning best practices.
Thanks.
The issue isn't the use of -target
to isolate the creation of the cluster. That works as expected. There is a problem with the configuration of the linode_lke_cluster
resource itself. I haven't yet dug into it. But even if you just create the cluster in a separate apply, with this configuration, running a plan
there after the cluster is created will show differences because of how the cluster resource is configured.
Attempting to install aareet/cert-manager module using Kubernetes-Alpha is slower (than usual) and times out after 30min.
Versions
Demo Sources
https://github.com/superherointj/tfprovider-kubernetes-alpha-crd-cert-manager-timeout
Steps to Reproduce
https://github.com/superherointj/tfprovider-kubernetes-alpha-crd-cert-manager-timeout/blob/master/README.md
After some minutes...
It gets stuck here:
Until 30min timeout from Terraform Cloud, that errors:
Expectation
Notes
Screenshots available at demo.
aareet/cert-manager: https://registry.terraform.io/modules/aareet/cert-manager/kubernetes/latest
-- Thanks!