hashicorp/terraform-google-consul

Error: 'wrong datacenter' when start consul

darkslategrey opened this issue · 1 comments

Context:

  • 3 consul servers on 3 gcp instances
  • 1 region
  • 3 differents zones
- terraform-google-consul: 0.0.3
- consul version : 1.1.0

error :

    2018/06/11 23:43:33 [ERR] agent: failed to sync remote state: No cluster leader
    2018/06/11 23:43:40 [ERR] agent: Coordinate update error: No cluster leader
    2018/06/11 23:44:02 [ERR] memberlist: Failed push/pull merge: Member 'consul-server-1' part of wrong datacenter 'europe-west1-b' from=172.27.3.3:54738
    2018/06/11 23:44:03 [ERR] agent: failed to sync remote state: No cluster leader
    2018/06/11 23:44:08 [ERR] agent: Coordinate update error: No cluster leader
    2018/06/11 23:44:30 [ERR] agent: failed to sync remote state: No cluster leader

Looks like the datacenter format ('europe-west1-b') is not correct

Thanks for this report. I believe the issue is that we previously tested with single-zone Instance Groups, whereas I'm guessing you're using multi-zonal Instance Groups. Nevertheless, your change in #20 will work for either, so I'll merge that now.