qq_30906135 2018-09-22 00:07 采纳率: 0%
浏览 512

saltstack 把数据返回到mysql服务器获取不到数据!求大神帮忙看看是什么问题??

根据官网步骤操作
master:
[root@linux-node1 ~]# salt 'linux-node2.example.com' test.ping --return mysql
linux-node2.example.com:
True

mysql> use salt
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from salt_returns;
Empty set (0.00 sec)

minion端查看log显示:
[root@linux-node2 ~]# tail -f /var/log/salt/minion
2018-08-03 04:40:26,483 [salt.minion :1725][ERROR ][1811] Returner mysql.returner could not be loaded: 'mysql' virtual returned False: Could not import mysql returner; mysql python client is not installed.

master和minion端都有安装
[root@linux-node2 ~]# yum install -y MySQL-python.x86_64
Failed to set locale, defaulting to C

Loaded plugins: fastestmirror

Setting up Install Process

master和minion配置:

mysql.host: '172.20.46.93'
mysql.user: 'salt'
mysql.pass: 'salt'
mysql.db: 'salt'
mysql.port: 3306

求大神看下为什么会这样!网上也没找到有报这个错的!感谢

  • 写回答

1条回答 默认 最新

  • zqbnqsdsmd 2018-09-22 09:27
    关注
    评论

报告相同问题?

悬赏问题

  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗