-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 states fail because conv is `` instead of None #56177
Comments
not sure where this has to be fixed. Either in PyMySQL or here? |
+1 for this issue. I was able to work around it by adding the following line to my minion config to force SaltStack to set mysql.conv to None: |
PR: #56174 |
Thankyou @jodok for reporting this. It is similar to some work @garethgreenaway is assigned in the above issue #56124 he has self-assigned, here as well, and will update the labels, today. I also moved this to approved milestone, Gareth, let me know if I can help in any other way. Thx! |
I think my error is related #56266 , but my issue is about something else. I also don't think I'll be upgrading any of my salt machines until this is resolved, as provisioning MySQL is something I use salt for, so staying on 2019.2.3 is a requirement until this is resolved. Any ETA on when we can expect 3000.1 to be generally available? |
@kveroneau apologies for not following up to your question - we are working towards the date around 3/20 but have had trouble with failing tests. I will have more information tomorrow and will update here and in the appropriate slack and group channels. |
closing here since fixed by #56174 |
@kveroneau we are still working towards next week to release 3000.1 - more details will be posted in slack, IRC, and user groups. I apologize I don't have an exact date, but next week is better than soon. |
Description of Issue
when running an operation with the mysql state it fails as the conv object is not defined properly. I'm unsure whether PyMySQL handles it incorrectly, but I suspect it's rather salt as it should get the default value of
None
.Steps to Reproduce Issue
the mysql connector tries to get the config option for
conv
https://github.com/saltstack/salt/blob/master/salt/modules/mysql.py#L373:this tries to read it from the config https://github.com/saltstack/salt/blob/master/salt/modules/mysql.py#L357:
The default value should be
None
, but the method returns and empty string `` and therefor notNone
is returned.the config option is then passed to PyMySQL which checks if
conv
isNone
(but not empty string: https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/connections.py#L302Therefor it fails shortly after: https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/connections.py#L306
Versions Report
PyMySQL: python3-PyMySQL.noarch 0.8.0-10.module_el8.1.0+245+c39af44f
(CentOS 8)
The text was updated successfully, but these errors were encountered: