-
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 returns an empty list for slave_status when using MariaDB with multiple replication channels #603
Comments
PR for the fix: #602 |
@wfelipew if I get it right, you're enforcing the MySQL way on MariaDB when using the ansible module? That seems odd to me. If MariaDB returns nothing when asking |
Hey @laurent-indermuehle, I'm not exactly enforcing the MySQL way on MariaDB... I'm just trying to return what I think is expected from the module, If the module documentation says that the |
@wfelipew I think you're right. We ask the module to return the whole replication status, we don't need to know if MySQL and MariaDB would have act differently on the command line. Sorry for the misunderstanding on my side. |
SUMMARY
The mysql_info returns an empty list for slave_status when using MariaDB with multiple named replication channels/sources.
This happens because the output of the
show slave status
is not consistent between MariaDB and MySQL.According to MySQL documentation if we run
SHOW SLAVE STATUS
(without a specific replication channel) it should return all replication channels.But In MariaDB, if we want to get all replication channels we need to use the
SHOW ALL SLAVES STATUS
otherwise it will only return the default channel.ISSUE TYPE
COMPONENT NAME
Collection:
community.mysql
Module:
mysql_info
ANSIBLE VERSION
But it happens on any ansible version.
COLLECTION VERSION
But it happens on any collection version.
CONFIGURATION
Not related to configuration
OS / ENVIRONMENT
The issue should only happen when using MariaDB
STEPS TO REPRODUCE
CHANGE MASTER 'example1' TO ...; START SLAVE 'example1';
)CHANGE MASTER 'example2' TO ...; START SLAVE 'example2';
)community.mysql.mysql_info
withslave_status
filterEXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: