ocp-power-automation/terraform-providers-power

Could not retrieve the list of available versions for provider hashicorp/openstack

Closed this issue · 1 comments

[root@v543-pvc-t1 terraform]# terraform --version
Terraform v1.1.5
on linux_ppc64le
[root@v543-pvc-t1 terraform]# curl -L https://github.com/ocp-power-automation/terraform-providers-power/releases/download/v0.11/archive.zip -o archive.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   650  100   650    0     0   4961      0 --:--:-- --:--:-- --:--:--  4961
100 83.1M  100 83.1M    0     0  65.8M      0  0:00:01  0:00:01 --:--:-- 90.8M
[root@v543-pvc-t1 terraform]# ls
archive.zip  main.tf
[root@v543-pvc-t1 terraform]# unzip archive.zip
Archive:  archive.zip
   creating: registry.terraform.io/
   creating: registry.terraform.io/terraform-provider-openstack/
   creating: registry.terraform.io/terraform-provider-openstack/openstack/
   creating: registry.terraform.io/terraform-provider-openstack/openstack/1.32.0/
   creating: registry.terraform.io/terraform-provider-openstack/openstack/1.32.0/linux_ppc64le/
  inflating: registry.terraform.io/terraform-provider-openstack/openstack/1.32.0/linux_ppc64le/terraform-provider-openstack
   creating: registry.terraform.io/community-terraform-providers/
   creating: registry.terraform.io/community-terraform-providers/ignition/
   creating: registry.terraform.io/community-terraform-providers/ignition/2.1.1/
   creating: registry.terraform.io/community-terraform-providers/ignition/2.1.1/linux_ppc64le/
  inflating: registry.terraform.io/community-terraform-providers/ignition/2.1.1/linux_ppc64le/terraform-provider-ignition
   creating: registry.terraform.io/terraform-providers/
   creating: registry.terraform.io/terraform-providers/ignition/
   creating: registry.terraform.io/terraform-providers/ignition/1.2.1/
   creating: registry.terraform.io/terraform-providers/ignition/1.2.1/linux_ppc64le/
  inflating: registry.terraform.io/terraform-providers/ignition/1.2.1/linux_ppc64le/terraform-provider-ignition
   creating: registry.terraform.io/IBM-Cloud/
   creating: registry.terraform.io/IBM-Cloud/ibm/
   creating: registry.terraform.io/IBM-Cloud/ibm/1.39.0/
   creating: registry.terraform.io/IBM-Cloud/ibm/1.39.0/linux_ppc64le/
  inflating: registry.terraform.io/IBM-Cloud/ibm/1.39.0/linux_ppc64le/terraform-provider-ibm
   creating: registry.terraform.io/hashicorp/
   creating: registry.terraform.io/hashicorp/random/
   creating: registry.terraform.io/hashicorp/random/2.3.1/
   creating: registry.terraform.io/hashicorp/random/2.3.1/linux_ppc64le/
  inflating: registry.terraform.io/hashicorp/random/2.3.1/linux_ppc64le/terraform-provider-random
   creating: registry.terraform.io/hashicorp/null/
   creating: registry.terraform.io/hashicorp/null/2.1.2/
   creating: registry.terraform.io/hashicorp/null/2.1.2/linux_ppc64le/
  inflating: registry.terraform.io/hashicorp/null/2.1.2/linux_ppc64le/terraform-provider-null
[root@v543-pvc-t1 terraform]# ls
archive.zip  main.tf  registry.terraform.io
[root@v543-pvc-t1 terraform]#
[root@v543-pvc-t1 terraform]# ls -lrt registry.terraform.io/
total 0
drwxr-xr-x. 3 root root 22 Mar  2 10:58 community-terraform-providers
drwxr-xr-x. 3 root root 22 Mar  2 10:59 terraform-providers
drwxr-xr-x. 4 root root 32 Mar  2 11:00 hashicorp
drwxr-xr-x. 3 root root 23 Mar  2 11:01 terraform-provider-openstack
drwxr-xr-x. 3 root root 17 Mar  2 11:06 IBM-Cloud

What is missing?

[root@v543-pvc-t1 terraform]# terraform init --plugin-dir ./

Initializing the backend...

Initializing provider plugins...
- Finding latest version of hashicorp/openstack...
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/openstack: provider
│ registry.terraform.io/hashicorp/openstack was not found in any of the search locations
│
│   - ./
╵
[root@v543-pvc-t1 terraform]# lscpu
Architecture:        ppc64le
Byte Order:          Little Endian
CPU(s):              16
On-line CPU(s) list: 0-15
Thread(s) per core:  8
Core(s) per socket:  1
Socket(s):           2
NUMA node(s):        2
Model:               2.1 (pvr 004b 0201)
Model name:          POWER8 (architected), altivec supported
Hypervisor vendor:   pHyp
Virtualization type: para
L1d cache:           64K
L1i cache:           32K
NUMA node0 CPU(s):
NUMA node2 CPU(s):   0-15
Physical sockets:    2
Physical chips:      2
Physical cores/chip: 6

[root@v543-pvc-t1 terraform]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.3 (Ootpa)

For openstack the provider source should be terraform-provider-openstack/openstack.]
Example: https://github.com/ocp-power-automation/ocp4-upi-powervm/blob/master/versions.tf#L24

Also note that this project is only for these Terraform Automation Projects