hashicorp / learn-nomad-cluster-setup

Companion repo for the HashiCorp tutorial collection on Nomad cluster setup
https://developer.hashicorp.com/nomad/tutorials/cluster-setup
Mozilla Public License 2.0
36 stars 34 forks source link

Wait until leader has been elected before bootstrapping #5

Closed mateuszkj closed 1 year ago

mateuszkj commented 1 year ago

While installing nomad on GCP, I've encouraged error:

Failed ACL bootstrapping: Unexpected response code: 500 (No cluster leader)

This PR checks if consul leader has been elected. If no, then waits. The same for nomad.

I have tested changes only with GCP.

hashicorp-cla commented 1 year ago

CLA assistant check
All committers have signed the CLA.

tunzor commented 1 year ago

Thanks @mateuszkj, the changes visually look great! I'll test it out on the clouds and merge if everything goes well 👍