-
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_role fails to parse show grant response from mysql #632
Comments
Hello @sascha-andres and thank you for taking the time to report the issue.
If you could try to re-run your playbook with community.mysql 3.7.2 it would be great. Because we introduced changes on the mysql_role module in 3.8.0 and I wonder if this is a regression. |
Hello @laurent-indermuehle, here are the informations you asked for: version of role: community-mysql-3.9.0 version 3.7.2 produces the same error |
Mmh, I bet this works with MySQL. I recall writing something to help us in those cases in #584 |
Migrating to mysql is a huge task and probably not feasible. Any way to move on? |
@sascha-andres The best I can offer is helping you to contribute a PR. I don't use roles but I can help with the CI, integrations and unit tests. |
@laurent-indermuehle basically if i check out the code at $HOME/ansible_collections/community/mysql I can start debugging with my playbook? I'd assume it's privileges_get in user.py to look for |
@sascha-andres : You could. You may have to edit the variable But to work on a PR, it's best to use our own CI. To do so and if you have 'make' and 'podman' available, you can enter the folder $HOME/ansible_collections/community/mysql and run the command: Alternatively, you can create a PR as draft. This will trigger the GitHub CI. But you won't be able to filter which target to run and it will test all combination of MySQL, MariaDB, Python, etc... (which can be a good thing over the local tests because if you break something for MySQL while working on MariaDB, you are informed earlier). Then you can try to reproduce the issue with an integration test in |
Summary
I have a role applied to another user role along with privileges. Now there comes a parsing error:
"unable to parse the MySQL grant string: GRANT app_role_aa_bbbbb_cccc_dddd TO 'role_cccccc_dddddd'"
The role was assigned using a member in another role definition
Issue Type
Bug Report
Component Name
mysql
Ansible Version
Configuration
OS / Environment
1 │ DISTRIB_ID="ManjaroLinux"␊
2 │ DISTRIB_RELEASE="23.1.4"␊
3 │ DISTRIB_CODENAME="Vulcan"␊
4 │ DISTRIB_DESCRIPTION="Manjaro·Linux"␊
Steps to Reproduce
Expected Results
Adjusting or recognizing the role definition as ok
Actual Results
"unable to parse the MySQL grant string: GRANT app_role_aa_bbbbb_cccc_dddd TO 'role_cccccc_dddddd'"
The text was updated successfully, but these errors were encountered: