<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:users-bounces@openvz.org">users-bounces@openvz.org</a>> on behalf of Sergey Bolbat <<a href="mailto:madd.korben@gmail.com">madd.korben@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>OpenVZ users <<a href="mailto:users@openvz.org">users@openvz.org</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday 19 April 2016 14:02<br>
<span style="font-weight:bold">To: </span>OpenVZ users <<a href="mailto:users@openvz.org">users@openvz.org</a>><br>
<span style="font-weight:bold">Subject: </span>[Users] MySQL server is unreachable from OpenVZ container<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div dir="ltr">Writing out of despair. Yesterday, as usual and having done this for thousands of times before, I'd installed MySQL server in the Head Node for using it from the OpenVZ container. I've created user, gave privileges for the base and configured
my.cnf to listen for server's IP. Then I've tried to connect server from the container using mysql client - mysql -h server-ip -u user -p and after long delay I've got error 'ERROR 2003 (HY000): Can't connect to MySQL server on 'server ip' (110)<br>
<br>
I try to telnet to 3306 - timeout. I try to change listening port to 3307 or any other - timeout. I've added a rule for 3306 and container's IP (despite the entire subnet of containers was already allowed before) in iptables - timeout. Stopped iptables - also
timeout!<br>
<br>
Then I thought - maybe server is totally unreachable from the container (despite the Internet connection is working properly inside container through venet), but ssh connection succeded. Then I thought - maybe MySQL server is inaccesible from any of container,
but connection from another container succeded. I thought that maybe something blocks mysql connections from the container but tcpdump in the HN successfully cought incoming packets on specified port.</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>Could it be something wrong on return path?</div>
<div> </div>
<span id="OLK_SRC_BODY_SECTION">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div dir="ltr"><br>
<br>
What could be wrong else!? I don't have any versions or methods of investigating. Maybe you can advice something? Thanks in advance.<br>
<br>
Thank you.<br>
<br>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>