简体   繁体   中英

kubespray openstack terraform “Error: Module not found” error

I am new with Kubespray and want to install Kubernetes cluster on Openstack. I follow https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/openstack , but got an error when I ran initialization terraform init ../../contrib/terraform/openstack


The module address "modules/compute" could not be resolved.

If you intended this as a path relative to the current module, use
"./modules/compute" instead. The "./" prefix indicates that the address is a
relative filesystem path.```

I can see modules folder under openstack folder.
```ls ../../contrib/terraform/openstack/modules/
compute  ips  network```

Any help would be appreciated.

I was getting the same error. I resolved it by downgrading the terraform to Terraform v0.11.13

Please try these steps:

wget https://releases.hashicorp.com/terraform/0.11.13/terraform_0.11.13_linux_amd64.zip

sudo unzip ./terraform_0.11.13_linux_amd64.zip -d /usr/local/bin/

terraform init ../../contrib/terraform/openstack

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM