sguyennet / terraform-vsphere-kubespray

Deploy a Kubernetes HA cluster on VMware vSphere
https://blog.inkubate.io/install-and-manage-automatically-a-kubernetes-cluster-on-vmware-vsphere-with-terraform-and-kubespray/
Apache License 2.0
172 stars 88 forks source link

unable to lunch ansible playbooks while deploying the cluster #35

Open onsaya opened 3 years ago

onsaya commented 3 years ago

Hello

i'm trying to deploy the cluster and i'm getting this error:

local_file.haproxy: Destroying... [id=881136ba6b68a44f3bdc19b19725c08dce5a4c0d] local_file.haproxy: Destruction complete after 0s local_file.keepalived_master: Destroying... [id=6931f1ba09ab97538264a6ebd531a685b203775c] local_file.keepalived_slave: Destroying... [id=abce075abc8cb5610026a31cef37ee4617a892fe] local_file.kubespray_all: Destroying... [id=b856efab6b4ae5b7d5ce8e1d4ccaed29523a6c1c] local_file.keepalived_slave: Destruction complete after 0s local_file.kubespray_all: Destruction complete after 0s local_file.keepalived_master: Destruction complete after 0s local_file.haproxy: Creating... local_file.haproxy: Creation complete after 0s [id=551303173f44c2e9a161541d8dcb2416f27290d2] local_file.kubespray_all: Creating... local_file.keepalived_slave: Creating... local_file.kubespray_all: Creation complete after 1s [id=7ecd15339033eb83452ee9213d2cd15083a6b89d] local_file.keepalived_master: Creating... local_file.keepalived_slave: Creation complete after 1s [id=e83ede2b1b3610e0d1d40a637107d76e699f6d52] local_file.keepalived_master: Creation complete after 0s [id=26ec9162db4bf71f9296b235d00c1fdef8ff9767] vsphere_resource_pool.resource_pool: Modifying... [id=resgroup-1021] vsphere_resource_pool.resource_pool: Modifications complete after 0s [id=resgroup-1021] vsphere_virtual_machine.haproxy[1]: Creating... vsphere_virtual_machine.haproxy[0]: Creating... vsphere_virtual_machine.haproxy[1]: Still creating... [10s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [10s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [20s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [20s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [30s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [30s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [40s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [40s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [50s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [50s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [1m0s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [1m0s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [1m10s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [1m10s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [1m20s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [1m20s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [1m30s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [1m30s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [1m40s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [1m40s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [1m50s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [1m50s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [2m0s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [2m0s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [2m10s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [2m10s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [2m20s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [2m20s elapsed] vsphere_virtual_machine.haproxy[1]: Still creating... [2m30s elapsed] vsphere_virtual_machine.haproxy[0]: Still creating... [2m30s elapsed] vsphere_virtual_machine.haproxy[1]: Creation complete after 2m40s [id=42095233-be01-d60a-944b-9f883ca9a5a6] vsphere_virtual_machine.haproxy[0]: Still creating... [2m40s elapsed] vsphere_virtual_machine.haproxy[0]: Creation complete after 2m41s [id=42097850-2fbe-51cc-4523-027feb45d942] null_resource.haproxy_install[0]: Creating... null_resource.haproxy_install[0]: Provisioning with 'local-exec'... null_resource.haproxy_install[0] (local-exec): Executing: ["/bin/sh" "-c" "cd ansible/haproxy && ansible-playbook -i ../../config/hosts.ini -b -u ayadio -e \"ansible_ssh_pass=$VM_PASSWORD ansible_become_pass=$VM_PRIVILEGE_PASSWORD\" -T 300 -v haproxy.yml"] vsphere_virtual_machine.master[0]: Creating... vsphere_virtual_machine.master[1]: Creating... vsphere_virtual_machine.master[2]: Creating... null_resource.haproxy_install[0] (local-exec): Using /root/terraform-vsphere-kubespray/ansible/haproxy/ansible.cfg as config file null_resource.haproxy_install[0] (local-exec): [WARNING]: Invalid characters were found in group names but not replaced, use null_resource.haproxy_install[0] (local-exec): -vvvv to see details

the kubernetes cluster it's not gettin g deployed and there's an issue lunching the Ansible playbooks

thomasdbaker commented 2 years ago

Do you have sshpass installed on your workstation?