Open principekiss opened 1 year ago
Same here.
This happens often for me as well, even in the Rancher UI it takes 3-4 retries for Rancher to actually delete a credential. This was so bad I had to rip out the Cloud Credential from my Terraform and re-use the same Cloud Credential for every cluster. Very frustrating experience.
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
On Terraform destroy, the
rancher2_cloud_credential resource
return an error intermittently:When browsing the URL
https://rancher.lawliet.net/v3/cloudCredentials/cattle-global-data:cc-lxwhp
, the cloud credential exists.If running multiple times the
terraform destroy
command, it finally gets deleted.This bug appeared since Rancher v2.6.9.
To Reproduce
Setup the rancher2 provider:
resource "rancher2_bootstrap" "admin" { provider = rancher2.bootstrap
depends_on = [ helm_release.rancher, azurerm_dns_a_record.rancher ] }
provider "rancher2" { alias = "admin"
}
Expected Result
The cloud credentials destroyed successfully.