-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Fastrobot/fix ctrl hash #469
Fastrobot/fix ctrl hash #469
Conversation
This is an Obvious fix. |
…t/percona into fastrobot/fix_ctrl_hash
I have updated the PR after finding a couple of other deployment issues. One involved managing two users 'user'@'localhost' and 'user'@'127.0.0.1' with the ctrl_host set to ‘localhost’. The code would only update the password for the 'user'@'localhost' but not 'user'@'127.0.0.1' We tracked this issue down to the ctrl_hash being passed to run the test_sql "SELECT 'user can login'" I renamed that hash to user_hash and have updated the host parameter to use the scope (aka host) instead of the ctrl_host to force the mysql command to try and validate 'user'@'host' instead of 'user'@'ctrl_host' (which in our case was always localhost). The other issue was that the cookbook wasn’t escaping special characters in the password substring set in the sql_command_string method. I wrapped the #{ctrl[:password]} in '' We ran into an issue where one of the passwords had a > and the shell_out created a file in /. |
I have updated this PR to fix the idempotent error on the second converge with mysql8 installs. In the After talking to some percona versed folks, they pointed out that the default charset and collate for mysql8 should be 'utf8mb4' and 'utf8mb4_0900_ai_ci'. So I have updated the |
One last update to get the pecona 8.0 client to install on Centos 7. There is a dependency conflict when the recipe is tries to install the Unfortunately, yum will also remove I also added a boolean helper method called |
@jcookfastrobot can you please look into the latest CI failures? |
Thanks @jcookfastrobot. I'm going to roll these changes into #476 ❤️ |
Description
Shortened 'username' to 'user' in the ctrl_hash for run_query method in the mysql_user custom resource
Added inspec test to verify non-root users passed in the ctrl_hash can successfully run percona_mysql_user
Issues Resolved
List any existing issues this PR resolves
Check List
## Unreleased