Details
Description
>Description of problem:
When suspend and resume CT running mysql, mysql socket is lost
>How reproducible:
100%
>Steps to Reproduce:
1. verify mysql running in ct (e.g. "mysqladmin status")
2. suspend/resume ct
3. check mysql again: can't connect, socket gone
>Actual results:
root@dbserv:~# mysqladmin status
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
root@dbserv:~# ls -l /var/run/mysqld/
total 4
-rw-rw---- 1 mysql mysql 5 May 29 18:15 mysqld.pid
root@dbserv:~#
>Expected results:
root@dbserv:~# mysqladmin status
Uptime: 65009 Threads: 1 Questions: 112 Slow queries: 0 Opens: 76 Flush tables: 1 Open tables: 69 Queries per second avg: 0.001
root@dbserv:~# ls -l /var/run/mysqld/
total 4
-rw-rw---- 1 mysql mysql 4 May 30 12:21 mysqld.pid
srwxrwxrwx 1 mysql mysql 0 May 30 12:21 mysqld.sock
>Host OS:
virtuozzo-release-7.0.0-42.vz7.x86_64
centos-release-7-2.1511.el7.centos.2.10.x86_64
>Guest OS:
NAME="Ubuntu"
VERSION="14.04.2 LTS, Trusty Tahr"
>Additional info (see https://openvz.org/Reporting_OpenVZ_problem):
When suspend and resume CT running mysql, mysql socket is lost
>How reproducible:
100%
>Steps to Reproduce:
1. verify mysql running in ct (e.g. "mysqladmin status")
2. suspend/resume ct
3. check mysql again: can't connect, socket gone
>Actual results:
root@dbserv:~# mysqladmin status
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
root@dbserv:~# ls -l /var/run/mysqld/
total 4
-rw-rw---- 1 mysql mysql 5 May 29 18:15 mysqld.pid
root@dbserv:~#
>Expected results:
root@dbserv:~# mysqladmin status
Uptime: 65009 Threads: 1 Questions: 112 Slow queries: 0 Opens: 76 Flush tables: 1 Open tables: 69 Queries per second avg: 0.001
root@dbserv:~# ls -l /var/run/mysqld/
total 4
-rw-rw---- 1 mysql mysql 4 May 30 12:21 mysqld.pid
srwxrwxrwx 1 mysql mysql 0 May 30 12:21 mysqld.sock
>Host OS:
virtuozzo-release-7.0.0-42.vz7.x86_64
centos-release-7-2.1511.el7.centos.2.10.x86_64
>Guest OS:
NAME="Ubuntu"
VERSION="14.04.2 LTS, Trusty Tahr"
>Additional info (see https://openvz.org/Reporting_OpenVZ_problem):