-
Notifications
You must be signed in to change notification settings - Fork 865
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
Terraform Controller Installs Corrupted Azure Provider #2475
Comments
@paterson-deshommes Thanks for reporting the issue. I have fixed the issue in the latest release. Can you try vela-core 1.1.4? |
BTW, do you have any cloud resources in Azure for your own services? If yes, you can list them in this thread #2442. |
Sure I'll try with the latest release and I'll update the thread you posted. |
zzxwill
added a commit
to zzxwill/kubevela
that referenced
this issue
Oct 18, 2021
Removed built-in aws/azure Terraform providers, and fix azure mariadb definition issue. Fix kubevela#2475
4 tasks
zzxwill
added a commit
to zzxwill/kubevela
that referenced
this issue
Oct 18, 2021
Removed built-in aws/azure Terraform providers, and fix azure mariadb definition issue. Fix kubevela#2475
zzxwill
added a commit
to zzxwill/kubevela
that referenced
this issue
Oct 18, 2021
Removed built-in aws/azure Terraform providers, and fix azure mariadb definition issue. Fix kubevela#2475
wonderflow
pushed a commit
that referenced
this issue
Oct 19, 2021
Removed built-in aws/azure Terraform providers, and fix azure mariadb definition issue. Fix #2475
zzxwill
added a commit
to zzxwill/kubevela
that referenced
this issue
Oct 19, 2021
Removed built-in aws/azure Terraform providers, and fix azure mariadb definition issue. Fix kubevela#2475
4 tasks
zzxwill
added a commit
to zzxwill/kubevela
that referenced
this issue
Oct 19, 2021
Removed built-in aws/azure Terraform providers, and fix azure mariadb definition issue. Fix kubevela#2475
wonderflow
pushed a commit
that referenced
this issue
Oct 19, 2021
Removed built-in aws/azure Terraform providers, and fix azure mariadb definition issue. Fix #2475
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
It seems that the terraform controller sometimes installs a corrupted terraform azure provider when executing the terraform-executor container. The container logs contain error similar too: Failed to instantiate provider "registry.terraform.io/hashicorp/azurerm" to obtain schema: fork/exec .terraform/plugins/registry.terraform.io/hashicorp/azurerm/2.32.0/linux_amd64/terraform-provider-azurerm_v2.32.0_x5: exec format error. Check this issue.
To Reproduce
Create the following component:
and the following application to create it:
Apply the application file on the cluster and check the terraform-executor container log.
Expected behavior
Whatever azure provider version the controller choose to install, it should work out of the box.
Screenshots
KubeVela Version
1.1
Cluster information
1.20
Additional context
To solve the issue, I had to manually ssh into the cluster, find the location of the offending file and manually download the same file using a command similar to
curl https://releases.hashicorp.com/terraform-provider-azurerm/2.60.0/terraform-provider-azurerm_2.60.0_linux_amd64.zip --output tmp/terraform-provider-azurerm_2.60.0_linux_amd64.zip
(do not mind the version, it's just an example) and put it in the same location. By running the commandfile
on the original one, I could see that it was corrupted. Runningfile
on the new one I downloaded showed it was ok.The text was updated successfully, but these errors were encountered: