-
Notifications
You must be signed in to change notification settings - Fork 366
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_config require package mysql-server: problem when specifying a log file size #127
Comments
You would have to test this on more than just Debian to see how other On Wed, Jul 27, 2016, 05:13 Éric Veiras Galisson [email protected]
|
+1
This is really annoying because I have dozens mysql-servers to deploy and everytime there is an upgrade of the package I must fix each of them one by one. |
This is not a final version, I'm just trying to understand @daks's comment.
@daks you mean something like this? master...StyXman:patch-1 |
@StyXman i'm not sure about what your code does, it seems to do the same on Debian or everyone else. What I did is remove
on mysql_config in config.sls, so that state can run before package installation. |
It's installing the config file before installing the package. I'm not sure that actually fixes the problem, but it's what I understood that you did. I'll try to test it soon, but let me know what you think about it. |
Instead of modifying the require stuff, why not use listen_in, on the config files, |
@aboe76 the problem is: if you change InnoDB log file size after mysql server had started, a restart doesn't work, as config log file size is not coherent with the actual on-disk log file size.
|
Might be ... but that's not really an acceptable answer unless one can convince Oracle to change that behaviour. |
@Hybrid512 I know, I'm sorry if I offended someone. I will rephrase |
@daks, thanks for the clarification, reading in to the issue, I see only a nightmare in trying to automate salt for this:
|
@daks I was looking in to the official puppetlabs mysql module and they specify the following order:
|
Hello,
I'm using this formula with an option to change the InnoDB log file size.
It causes problem on my Debian VM: mysql is installed, configured but can't (re)start. The error tells about the current log file size which is different from the one specified in my.cnf.
I think what happens is the following:
I modified the formula to make mysql_config state run before the mysql.server package installation, and it solved my problem.
What do you think about this? Should it be possible, and safe, to change the states order?
Thanks.
The text was updated successfully, but these errors were encountered: