Closed rata closed 4 years ago
@rata how does the error look like with latest version of Terraform (0.12.x)?
Can confirm the issue for v0.4.1.
Installing the proper ct provider version expected by the lokomotive release fixes the error
Retried with terraform-ct-provider_v0.6.1 and it addresses the issue. Thanks for the workaround!
CT provider is now automatically pulled from the registry and manual installation is no longer needed BTW.
With Terraform 0.13, error looks good to me:
Initializing the backend...
Initializing provider plugins...
- Finding dmacvicar/libvirt versions matching "0.6.2, 0.6.2, 0.6.2, 0.6.2"...
- Finding hashicorp/null versions matching "2.1.2"...
- Finding hashicorp/template versions matching "2.1.2, 2.1.2"...
- Finding hashicorp/tls versions matching "2.2.0"...
- Finding hashicorp/local versions matching "1.4.0"...
- Finding poseidon/ct versions matching "0.6.1, 0.6.1, 0.6.1, 0.6.1, 0.6.1"...
- Finding hashicorp/random versions matching "3.0.0, 3.0.0, 3.0.0"...
- Finding tinkerbell/tinkerbell versions matching "0.1.0, 0.1.0, 0.1.0, 0.1.0, 0.1.0"...
- Using hashicorp/null v2.1.2 from the shared cache directory
- Using hashicorp/template v2.1.2 from the shared cache directory
- Using hashicorp/tls v2.2.0 from the shared cache directory
- Using hashicorp/local v1.4.0 from the shared cache directory
- Using poseidon/ct v0.6.1 from the shared cache directory
- Using hashicorp/random v3.0.0 from the shared cache directory
- Using tinkerbell/tinkerbell v0.1.0 from the shared cache directory
Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider
dmacvicar/libvirt: provider registry registry.terraform.io does not have a
provider named registry.terraform.io/dmacvicar/libvirt
FATA[0002] Applying cluster failed: initializing: initializing Terraform: running 'terraform init': failed checking execution status: exit status 1 args="[]" command="lokoctl cluster apply"
@rata do you think we can close it?
@invidian awesome. Closing then, thanks!
When running a
cluster apply
using latest master (5ba9d5cd3bf38854c38f538a1cac97bb1214b982, probably affects 0.4.1 too) it fails without a clear error:It doesn't fail which provider name doesn't exit, etc. If you run again, however, the error is shown:
You can reproduce by just deleting the lokomotive-assets folder.
The error is always shown correctly if you use
lokoctl cluster apply -v
, though.Im using terraform 0.12.24:
I also do have the ct provider installed, just not the expected version by this release