-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysql_info module do not return information about mysql replication when it configured on hosts #682
Comments
I tested and latest pymysql versions, but still result is the same. |
Hi @only-RMK, As a workaround, I think you can get the same info using the |
Hi @laurent-indermuehle, |
Same issue encountered while using mysql_info to receive the 'Master_Host' field. Issue occurs since 3.10.0, until current version 3.12.0 (still works on 3.9.0) server_implementation = "mysql" module_stderr: Probably always pops up, whenever __get_slave_status is called. I can confirm that your suggested workaround works:
The result contains "SOURCE_HOST", instead of "MASTER_HOST" though. |
Glad the workaround worked. I won't fix this for MySQL or Percona. But if someone want to start working on a PR I can assist. |
SUMMARY
mysql_info
module failing:slave_hosts
;slave_status
.ISSUE TYPE
COMPONENT NAME
mysql_info
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
ansible <primary host> -m mysql_info -a 'filter=slave_hosts'
ansible <replica host> -m mysql_info -a 'filter=slave_status'
EXPECTED RESULTS
Return required data.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: