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

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

sql

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!