Open ehudkaldor opened 3 years ago
@ehudkaldor hi, thanks for reporting this! Would you like to add the feature yourself?
If no and anyone else wants to do it, please let us know by putting a comment here. We have a quick start guide which should help (or I could look but am not sure when).
Thanks
I think, three years past, that it's clear OP isn't going to :-p
I'm running into this as well; I'll have a look at the quickstart guide but I've never worked on ansible modules before, so unless it's pretty straightforward I don't think I'll have the time either.
I feel this is a pretty important bit, however, as it makes community.mysql.mysql_replication completely unusable on MySQL 8. Well, maybe not entirely, I think I'm just going to add a manual change master between the changemaster and startreplica steps, but that really shouldn't even be necessary.
@meersjo thanks for the comment! I've just put a call for volunteers in our MySQL matrix channel, hope there'll be someone interesting in taking a closer look at the issue
I can confirm in the mean time that the workaround is indeed just an ansible.builtin.command
that calls mysql -e 'change replica source to get_source_public_key=1;'
.
I'd share the very simple task for others running into this, but I'm running containerized with aliases into the container instead of a client package, and calling bash aliases from ansible is a whole different can of worms :smiling_face_with_tear:
in mysql 8.0, setting replication source on the replica requires the parameter GET_SOURCE_PUBLIC_KEY=1 so the replica will grab the pub key from the source. This parameter does not exist in the collection
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 20.04
STEPS TO REPRODUCE
see below
EXPECTED RESULTS
success
ACTUAL RESULTS
see below