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

deployment issue with 'terraform plan' stage #21

Open
AkideLiu opened this issue Oct 21, 2019 · 2 comments
Open

deployment issue with 'terraform plan' stage #21

AkideLiu opened this issue Oct 21, 2019 · 2 comments

Comments

@AkideLiu
Copy link

terraform plan

var.vm_privilege_password
Sudo or su password for the vSphere virtual machines

Enter a value:

Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

data.template_file.keepalived_master: Refreshing state...
data.template_file.kubespray_k8s_cluster: Refreshing state...
data.template_file.haproxy_backend[0]: Refreshing state...
data.template_file.haproxy_backend[2]: Refreshing state...
data.template_file.haproxy_backend[1]: Refreshing state...
data.template_file.haproxy_hosts[1]: Refreshing state...
data.template_file.kubespray_all: Refreshing state...
data.template_file.kubespray_hosts_worker_list[1]: Refreshing state...
data.template_file.haproxy_hosts[0]: Refreshing state...
data.template_file.kubespray_hosts_worker_list[2]: Refreshing state...
data.template_file.kubespray_hosts_worker_list[0]: Refreshing state...
data.template_file.kubespray_hosts_master_list[2]: Refreshing state...
data.template_file.haproxy: Refreshing state...
data.template_file.kubespray_hosts_master_list[0]: Refreshing state...
data.template_file.kubespray_hosts_master_list[1]: Refreshing state...
data.template_file.kubespray_hosts_worker[1]: Refreshing state...
data.template_file.kubespray_hosts_worker[0]: Refreshing state...
data.template_file.keepalived_slave: Refreshing state...
data.template_file.kubespray_hosts_worker[2]: Refreshing state...data.template_file.haproxy_hosts_list[0]: Refreshing state...
data.template_file.kubespray_hosts_master[0]: Refreshing state...
data.template_file.kubespray_hosts_master[1]: Refreshing state...
data.template_file.kubespray_hosts_master[2]: Refreshing state...
data.template_file.haproxy_hosts_list[1]: Refreshing state...
data.vsphere_datacenter.dc: Refreshing state...
data.vsphere_compute_cluster.cluster: Refreshing state...
data.vsphere_network.network: Refreshing state...
data.vsphere_datastore.datastore: Refreshing state...
data.vsphere_virtual_machine.template: Refreshing state...


Error: Incorrect attribute value type

on vsphere-kubespray.tf line 482, in resource "vsphere_compute_cluster_vm_anti_affinity_rule" "master_anti_affinity_rule":
482: virtual_machine_ids = ["${vsphere_virtual_machine.master.*.id}"]

Inappropriate value for attribute "virtual_machine_ids": element 0: string
required.

@AkideLiu
Copy link
Author

482: virtual_machine_ids = "${vsphere_virtual_machine.master.*.id}"
can fix this problem

@AkideLiu
Copy link
Author

Plan: 22 to add, 0 to change, 0 to destroy.


Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.

AkideLiu added a commit to AkideLiu/terraform-vsphere-kubespray that referenced this issue Oct 21, 2019
The solution for opened issue sguyennet#21
@AkideLiu AkideLiu mentioned this issue Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant