mysql-operator
mysql-operator copied to clipboard
Raft unable to bind when installed
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?
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.
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.