Mailinglist Archive: kubic-bugs (110 mails)

< Previous Next >
[kubic-bugs] [Bug 1087891] no python3 mysql module available which works with salt.
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 27 Apr 2018 08:14:37 +0000
  • Message-id: <bug-1087891-81400-wBvbKQLbkm@http.bugzilla.suse.com/>
http://bugzilla.suse.com/show_bug.cgi?id=1087891
http://bugzilla.suse.com/show_bug.cgi?id=1087891#c46

Thorsten Kukuk <kukuk@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Flags|needinfo?(kmacinnes@xxxxxxx |
|m) |

--- Comment #46 from Thorsten Kukuk <kukuk@xxxxxxxx> ---
Thanks to the fix from Kiall I get now the correct error messages:

pymysql.connect: localhost:3306/salt
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pymysql/connections.py", line 921, in
connect
**kwargs)
File "/usr/lib64/python3.6/socket.py", line 724, in create_connection
raise err
File "/usr/lib64/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused


So the situation is:
salt/PyMySQL tries to connect to the mysql database via localhost:3306, but
this does not work (permission denied). It's not using /run/mysql/mysql.sock

How should this work?
Did we configure salt to use the unix socket, and this information goes somehow
lost in salt/PyMySQL (pymysql.connect is called without unix socket name, else
it would not end in this branch), or should mysql listen on localhost:3306?

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >