Closed campbellmc closed 3 years ago
Thanks for the detailed report, @campbellmc. I can confirm this from Travis:
As you've mentioned, the fix may be a little convoluted and there's no set maintainer for this formula at the current time. What's the actual package replacement for MySQL-python
on CentOS 8?
The pypi package mysqlclient
was the only package I could find that worked to provide python bindings.
I didn't find a drop in replacement yum package that provides the MySQLdb python module.
The pypi module PyMySQL seems to have more activity as a module, however, it's not detected by salt.
@campbellmc did you end up reaching a solution for this? I am running in to the exact same issue.
@campbellmc did you end up reaching a solution for this? I am running in to the exact same issue.
Sadly, my solution involved not using salt for managing mysql.
Fixed in https://github.com/saltstack-formulas/mysql-formula/pull/252 # centos8 py3 https://github.com/saltstack-formulas/mysql-formula/pull/262 # centos7 py3
Centos 7 (Mysql-python) not available for Centos 8
Formula commit hash / release tag
mysql-formula commit sha: ba91d9841bd0e096466d78f31efb9cdad00f2263
Versions reports (master & minion)
Pillar / config used
None
Bug details
Describe the bug
Steps to reproduce the bug
salt-call state.apply mysql
Holy Smokes! It's missing in the versions report and the python shell:
Attempts to fix the bug
Best. but really awkward, solution seems to be:
This means that mysql-python shows up in salt -V:
Now available in python shell:
I'm happy to create a PR but not entirely sure what it should be right now. Note that this also affects mysql usage by salt generally (such as returners etc)