Home > OS >  Saltstack data back to the mysql server could not get data! Pray god to help and see what's the
Saltstack data back to the mysql server could not get data! Pray god to help and see what's the

Time:09-30

According to the official website steps
Master:
/root @ Linux - node1 ~ # salt 'linux-node2.example.com' test. The ping - return mysql
Linux-node2.example.com:
True

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

The Database changed
Mysql> Select * from salt_returns;
The Empty set (0.00 SEC)



Minion side view log shows:
/root @ Linux - 2 ~ # tail -f/var/log/salt/minion
The 2018-08-03 04:40:26, 483 [salt minion: 1725] [ERROR] [1811] Returner mysql. The Returner could not be the loaded: 'mysql' __virtual__ returned False: could not import the mysql Returner; Mysql python client is not installed.

The master and minion end have installed
/root @ Linux - 2 ~ # yum install - y MySQL - python. X86_64
Failed to set the locale, defaulting to C

The Loaded plugins: fastestmirror
Setting up the Install Process
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

The master and minion configuration:

Mysql. Host: '172.20.46.93'
Mysql. User: 'salt'
Mysql. Pass: 'salt'
Mysql db: 'salt'
Mysql. Port: 3306

O great god see why! Did not find online have to quote the wrong! Thank you

CodePudding user response:

The solution? I was the problem

CodePudding user response:

Hello, you can view the log/var/log/salt/minion
This problem should be your installation is py3 version, more python36 - mysql installation package can be solved,
  • Related