Open joshpadilla opened 3 years ago
When I login to host:
root@abm-blue-p17o3-cp-01:~# ll /root/baremetal/bmctl-workspace/abm-blue-p17o3/
total 24
drwxr-xr-x 3 root root 4096 Feb 5 18:49 ./
drwxr-xr-x 3 root root 4096 Feb 5 18:49 ../
-rw-r--r-- 1 root root 9683 Feb 5 18:49 abm-blue-p17o3.yaml
drwxr-xr-x 3 root root 4096 Feb 5 18:49 log/
There's no kubeconfig in that dir just abm-blue-p17o3.yaml
Changing to
command = "scp -i ~/.ssh/${local.ssh_key_name} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@${metal_device.control_plane.0.access_public_ipv4}:/root/baremetal/bmctl-workspace/${local.cluster_name}/${local.cluster_name}.yaml ."
Got rid of the error, but did not solve hanging cluster creation process:
null_resource.kube_vip_install_first_cp: Still creating... [32m10s elapsed]
null_resource.kube_vip_install_first_cp (remote-exec): Waiting for '/etc/kubernetes/manifests' to be created...
null_resource.kube_vip_install_first_cp: Still creating... [32m20s elapsed]
null_resource.kube_vip_install_first_cp (remote-exec): Waiting for '/etc/kubernetes/manifests' to be created...
null_resource.kube_vip_install_first_cp: Still creating... [32m30s elapsed]
null_resource.kube_vip_install_first_cp (remote-exec): Waiting for '/etc/kubernetes/manifests' to be created...
null_resource.kube_vip_install_first_cp: Still creating... [32m40s elapsed]
null_resource.kube_vip_install_first_cp (remote-exec): Waiting for '/etc/kubernetes/manifests' to be created...
kubeconfig is never being created. It should not try and download it until after the cluster creation succeeds. Checking cluster creation log file. /root/baremetal/cluster_create.log
cluster_create.log has a single line error about GKE hub and gcloud auth login. But the gce vm I’m using has gcloud auth already, still looking at that
gcloud auth application-default login
You are running on a Google Compute Engine virtual machine. The service credentials associated with this virtual machine will automatically be used by Application Default Credentials, so it is not necessary to use this command.
If you decide to proceed anyway, your user credentials may be visible to others with access to this virtual machine. Are you sure you want to authenticate with your personal account?
Do you want to continue (Y/n)? Go to the following link in your browser: Enter verification code:
Credentials saved to file: [~/.config/gcloud/application_default_credentials.json]
Looks like this a requirement, so if you don't have a the file, ~/.config/gcloud/application_default_credentials.json, then the terraform will hang without error.
https://github.com/equinix/terraform-metal-anthos-on-baremetal/issues/28#issuecomment-747605670
The README is overdue for some updates.
Actually, we do have some text supporting this:
https://github.com/equinix/terraform-metal-anthos-on-baremetal#install-gcloud
Do you ideas on how we can improve this, @joshpadilla ?