Skip to content
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

Exoscale terraform outdated variable names #11656

Open
Bykow opened this issue Oct 22, 2024 · 0 comments
Open

Exoscale terraform outdated variable names #11656

Bykow opened this issue Oct 22, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Bykow
Copy link

Bykow commented Oct 22, 2024

What happened?

Tried to deploy a cluster using the exoscale terraform provider

What did you expect to happen?

It should deploy the infrastructure

How can we reproduce it (as minimally and precisely as possible)?

Follow the steps of the README within exoscale terraform. (contrib/terraform/exoscale/README.me)

OS

Linux 6.11.4-arch2-1 x86_64

Version of Ansible

ansible [core 2.17.5]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/bykow/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.12/site-packages/ansible
ansible collection location = /home/bykow/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.12.7 (main, Oct 1 2024, 11:15:50) [GCC 14.2.1 20240910] (/usr/bin/python)
jinja version = 3.1.4
libyaml = True

Version of Python

Python 3.12.7

Version of Kubespray (commit)

99c620d

Network plugin used

cilium

Full inventory with variables

Empty for now

Command used to invoke ansible

none

Output of ansible run

none

Anything else we need to know

All the filled information doesn't mean much since this happen before ansible run.

The terraform error mentions that some variable a badly named. Seems contrib/terraform/exoscale/modules/kubernetes-cluster/output.tf contains old values for ip addresses.

╷
│ Error: Unsupported attribute
│
│   on modules/kubernetes-cluster/output.tf line 5, in output "master_ip_addresses":
│    5:       "private_ip" = contains(keys(data.exoscale_compute_instance.master_nodes), key) ? data.exoscale_compute_instance.master_nodes[key].private_network_ip_addresses[0] : ""
│     ├────────────────
│     │ data.exoscale_compute_instance.master_nodes is object with 1 attribute "master-0"
│
│ This object does not have an attribute named "private_network_ip_addresses".
╵
╷
│ Error: Unsupported attribute
│
│   on modules/kubernetes-cluster/output.tf line 6, in output "master_ip_addresses":
│    6:       "public_ip"  = exoscale_compute_instance.master[key].ip_address
│     ├────────────────
│     │ exoscale_compute_instance.master is object with 1 attribute "master-0"
│
│ This object does not have an attribute named "ip_address".
╵
╷
│ Error: Unsupported attribute
│
│   on modules/kubernetes-cluster/output.tf line 15, in output "worker_ip_addresses":
│   15:       "private_ip" = contains(keys(data.exoscale_compute_instance.worker_nodes), key) ? data.exoscale_compute_instance.worker_nodes[key].private_network_ip_addresses[0] : ""
│     ├────────────────
│     │ data.exoscale_compute_instance.worker_nodes is object with 3 attributes
│
│ This object does not have an attribute named "private_network_ip_addresses".
╵
╷
│ Error: Unsupported attribute
│
│   on modules/kubernetes-cluster/output.tf line 15, in output "worker_ip_addresses":
│   15:       "private_ip" = contains(keys(data.exoscale_compute_instance.worker_nodes), key) ? data.exoscale_compute_instance.worker_nodes[key].private_network_ip_addresses[0] : ""
│     ├────────────────
│     │ data.exoscale_compute_instance.worker_nodes is object with 3 attributes
│
│ This object does not have an attribute named "private_network_ip_addresses".
╵
╷
│ Error: Unsupported attribute
│
│   on modules/kubernetes-cluster/output.tf line 15, in output "worker_ip_addresses":
│   15:       "private_ip" = contains(keys(data.exoscale_compute_instance.worker_nodes), key) ? data.exoscale_compute_instance.worker_nodes[key].private_network_ip_addresses[0] : ""
│     ├────────────────
│     │ data.exoscale_compute_instance.worker_nodes is object with 3 attributes
│
│ This object does not have an attribute named "private_network_ip_addresses".
╵
╷
│ Error: Unsupported attribute
│
│   on modules/kubernetes-cluster/output.tf line 16, in output "worker_ip_addresses":
│   16:       "public_ip"  = exoscale_compute_instance.worker[key].ip_address
│     ├────────────────
│     │ exoscale_compute_instance.worker is object with 3 attributes
│
│ This object does not have an attribute named "ip_address".
╵
╷
│ Error: Unsupported attribute
│
│   on modules/kubernetes-cluster/output.tf line 16, in output "worker_ip_addresses":
│   16:       "public_ip"  = exoscale_compute_instance.worker[key].ip_address
│     ├────────────────
│     │ exoscale_compute_instance.worker is object with 3 attributes
│
│ This object does not have an attribute named "ip_address".
╵
╷
│ Error: Unsupported attribute
│
│   on modules/kubernetes-cluster/output.tf line 16, in output "worker_ip_addresses":
│   16:       "public_ip"  = exoscale_compute_instance.worker[key].ip_address
│     ├────────────────
│     │ exoscale_compute_instance.worker is object with 3 attributes
│
│ This object does not have an attribute named "ip_address".
@Bykow Bykow added the kind/bug Categorizes issue or PR as related to a bug. label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant