ocp-power-automation / ocp4-upi-kvm

OCP4 on KVM/Power
Apache License 2.0
17 stars 20 forks source link

Terraform providers won't get initialized on ppc64le #37

Closed mgiessing closed 4 years ago

mgiessing commented 4 years ago

Hi I followed the instructions, but with the newest update the terraform providers won't get initalized anymore:

Go installed:

[root@p1262-met1 ocp4-upi-kvm]# go version
go version go1.15.1 linux/ppc64le

[root@p1262-met1 ocp4-upi-kvm]# which go
/usr/local/go/bin/go

Providers compiled and copied:

[root@p1262-met1 ocp4-upi-kvm]# ls -l ~/.terraform.d/plugins/
insgesamt 128496
-rwxr-xr-x 1 root root 13129600  3. Sep 03:58 go
-rwxr-xr-x 1 root root  3435073  3. Sep 03:58 gofmt
-rwxr-xr-x 1 root root 28444600  3. Sep 04:06 terraform-provider-ignition
-rwxr-xr-x 1 root root 31401112  3. Sep 04:06 terraform-provider-libvirt
-rwxr-xr-x 1 root root 27675104  3. Sep 04:06 terraform-provider-null
-rwxr-xr-x 1 root root 27482640  3. Sep 04:06 terraform-provider-random

Terraform throws this error:

[root@p1262-met1 ocp4-upi-kvm]# terraform init
Initializing modules...

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...

Error installing provider "random": no available version is compatible for the requested platform.

Terraform analyses the configuration and state and automatically downloads
plugins for the providers used. However, when attempting to download this
plugin an unexpected error occurred.

This may be caused if for some reason Terraform is unable to reach the
plugin repository. The repository may be unreachable if access is blocked
by a firewall.

If automatic installation is not possible or desirable in your environment,
you may alternatively manually install plugins by downloading a suitable
distribution package and placing the plugin's executable file in the
following directory:
    terraform.d/plugins/linux_ppc64le

Error installing provider "ignition": no available version is compatible for the requested platform.

Terraform analyses the configuration and state and automatically downloads
plugins for the providers used. However, when attempting to download this
plugin an unexpected error occurred.

This may be caused if for some reason Terraform is unable to reach the
plugin repository. The repository may be unreachable if access is blocked
by a firewall.

If automatic installation is not possible or desirable in your environment,
you may alternatively manually install plugins by downloading a suitable
distribution package and placing the plugin's executable file in the
following directory:
    terraform.d/plugins/linux_ppc64le

Error installing provider "null": no available version is compatible for the requested platform.

Terraform analyses the configuration and state and automatically downloads
plugins for the providers used. However, when attempting to download this
plugin an unexpected error occurred.

This may be caused if for some reason Terraform is unable to reach the
plugin repository. The repository may be unreachable if access is blocked
by a firewall.

If automatic installation is not possible or desirable in your environment,
you may alternatively manually install plugins by downloading a suitable
distribution package and placing the plugin's executable file in the
following directory:
    terraform.d/plugins/linux_ppc64le

Error: no available version is compatible for the requested platform

Error: no available version is compatible for the requested platform

Error: no available version is compatible for the requested platform

Putting the terraform providers into another linux_ppc64le directory didn't fix the issue either.

Thanks!

yussufsh commented 4 years ago

Thanks for reporting the issue. Since you are on ppc64le Terraform will not download the plugins.

I am sure your have followed the documentation to build the provider plugins but due to new changes it fails. We will work on updating the documentation.

mgiessing commented 4 years ago

Yes I followed the instructions and I'm aware it will not download the plugins but I though it will take the ones which are compiled in advance. For the older version (before the commit yesterday) it works just fine. Thanks!

mgiessing commented 4 years ago

One interesting addition to what I've written before - when I check the provider versions with:

[root@p1262-met1 ocp4-upi-kvm]# terraform providers
.
├── provider.ignition ~> 1.2
├── provider.libvirt
├── provider.null ~> 2.1
├── provider.random ~> 2.3
├── module.install
│   └── provider.null
├── module.nodes
│   ├── provider.ignition
│   ├── provider.libvirt (inherited)
│   └── provider.null
└── module.prepare
    ├── provider.libvirt (inherited)
    ├── provider.null
    └── provider.random

it looks like the correct provider/(-versions) are found.