mysql-operator icon indicating copy to clipboard operation
mysql-operator copied to clipboard

Raft unable to bind when installed

Open BinaryFissionGames opened this issue 5 years ago • 2 comments

Hey all,

I've been playing around with trying to get this operator to work on minikube, and have found installing the mysql-operator chart always fails.

When I view the logs for the orchestrator, I see this:

2020-07-28 07:45:47 ERROR failed to open raft store: listen tcp 23.202.231.169:10008: bind: cannot assign requested address
2020-07-28 07:45:47 FATAL 2020-07-28 07:45:47 ERROR failed to open raft store: listen tcp 23.202.231.169:10008: bind: cannot assign requested address

This address (which, I suppose, is the value of the HOSTNAME environment variable) is unknown to me.

I found that if I edit the orchestrator config to use {{ .Env.POD_IP }} or 0.0.0.0 instead of {{ .Env.HOSTNAME }} for the raft bind address, things start to work properly. Since I'm not particularly familiar with raft/orchestrator in general, I'm not sure what the significance of changing the bind address to these values is.

Is there a way to get this working on install without having to manually mess with the orchestrator config?

BinaryFissionGames avatar Jul 28 '20 08:07 BinaryFissionGames

Hi @BinaryFissionGames, We will test with POD_IP and if it's ok we will fix this. The configuration of the Orchestrator raft protocol is complicated and we hit a lot of issues with it.

Thank you for reporting this issue! If you already tested with {{ .Env.POD_IP }} please feel free to open a PR and we can discuss there further.

AMecea avatar Aug 03 '20 15:08 AMecea

I ran into this issue on an IPv6-enabled (DualStack) cluster and using

  "RaftBind": "{{ .Env.POD_IP }}",

fixed the issue for me. It seems to work without problems.

haslersn avatar Oct 09 '24 01:10 haslersn