saltstack安装模块装不上mysql-python: Not Installed

运维干货 1年前 (2022) 导航君
6 0 0

环境

  • centos7
  • python 3.6
  • Salt: 3002.5

问题

salt-master 执行返回到mysql存储,安装mysql-python 发现yum install MYSQL-python 已经安装
但是执行会报错,如下

[ERROR ] Message timed out
Salt request timed out. The master is not responding. You may need to run your command with --async in order to bypass the congested event bus. With --async, the CLI tool will print the job id (jid) and exit immediately without listening for responses. You can then use salt-run jobs.lookup_jid to look up the results of the job in the job cache later.

问题查找

saltstack安装模块装不上mysql-python: Not Installed saltstack安装模块装不上mysql-python: Not Installed

saltstack安装模块装不上mysql-python: Not Installed

问题解决

百度谷歌一大堆,好久都没发现。最后无意中发现一个,https://www.cnblogs.com/venicid/p/11958498.html
废话不多说直接搞,两步搞定

 pip3 install --target=/usr/lib/python3.6/site-packages/ mysqlclient
 systemctl  restart salt-master
版权声明:导航君 发表于 2022年6月18日 上午8:43。
转载请注明:saltstack安装模块装不上mysql-python: Not Installed | 第八网址导航

相关文章

暂无评论

暂无评论...