GoogleCloudPlatform / anthos-samples

Anthos code samples
https://cloud.google.com/anthos/docs
Apache License 2.0
88 stars 116 forks source link

"anthos-bm-gcp-bash/install_admin_cluster.sh" : check SSH access timeout #675

Open mdadsh opened 1 month ago

mdadsh commented 1 month ago

The cluster install fails to proceed as the SSH get timed out and keeps retrying in a loop in the Checking SSH access to the GCE VMs step.

ERROR: (gcloud.compute.ssh) Could not SSH into the instance.  It is possible that your SSH key has not propagated to the instance yet. Try running this command again.  If you still cannot connect, verify that the firewall and instance are set to accept ssh traffic.
Trying to SSH into abm-ws failed. Sleeping for 5 seconds. zzzZZzzZZExisting host keys found in /Users/user/.ssh/google_compute_known_hosts

ssh: connect to host xx.xx.xx.xx port 22: Operation timed out

Recommendation: To check for possible causes of SSH connectivity issues and get
recommendations, rerun the ssh command with the --troubleshoot option.

gcloud compute ssh abm-ws --project=project --zone=europe-west3-a --troubleshoot

Or, to investigate an IAP tunneling issue:

gcloud compute ssh abm-ws --project=project --zone=europe-west3-a --troubleshoot --tunnel-through-iap
mdadsh commented 1 month ago

Working on the fix, tested the command and was able to create the

  1. abm-admin-cp
  2. abm-user-cp
  3. abm-user-w1
  4. abm-user-w2
  5. abm-ws

FIX: adding --tunnel-through-iap in the commands