MySQL readiness probe fails with "Inappropriate ioctl for device" in OpenShift

Solution Unverified - Updated -

Issue

  • MySQL Pod readiness health probes fail with the following events:
 Warning  Unhealthy               1m (x11 over 3m)  kubelet, node-1.example.com  Readiness probe failed: sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)

or

9:33:57 AM  Warning Unhealthy   Readiness probe failed: sh: cannot set terminal process group (-1): Inappropriate ioctl for device sh: no job control in this shell ERROR 1040 (08004): Too many connections

Environment

  • Red Hat OpenShift Container Platform
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In