mariadb socket access must be enabled before highstate - salt 3K still tries empty password #56170
Labels
Bug
broken, incorrect, or confusing behavior
P3
Priority 3
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
v3000.1
vulnerable version
Milestone
Description of Issue
In mariadb 10.4, the empty root password was removed, so the default is socket only as root or the mariadb owner (mysql). When running a highstate this will fail if you try to write the config file during a running minion, and if you try a local reload, i've run into either race conditions or a bad idea :).
I have added this to my custom bootstrap script, directly after salt is installed and i patch mysql.py per my comments here - #56124, then i restart salt, sleep and run the highstate (i do this through terraform and custom code)
Setup
Basic setup, as this is a change to behaviour of the database engine not salt.
Steps to Reproduce Issue
Using state files:
It will fail b/c root is still trying to login with
mysql -u root
.Versions Report
I have been installing the pure python mysql via pip for years, which is why there is not one installed, but this has never mattered.
No major, or even minor differences between this minion and the master.
The text was updated successfully, but these errors were encountered: