[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Unable to connect with service using mysql-ephemeral template



I don't know the best way to check:
I see this error in my events after the deploy:
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)

I also saw this: https://github.com/openshift/origin/blob/master/docs/debugging-openshift.md
I putted also 8.8.8.8 as ns in my /etc/resolv.conf and rebooted but didn't work. Also not after scaling down and up the pod


From: bparees redhat com
Date: Wed, 6 Jul 2016 12:31:14 -0400
Subject: Re: Unable to connect with service using mysql-ephemeral template
To: dencowboy hotmail com
CC: users lists openshift redhat com

is service hostname resolution otherwise working in your cluster?


On Wed, Jul 6, 2016 at 12:20 PM, Den Cowboy <dencowboy hotmail com> wrote:
ping mysql: unknown host mysql
nslookup mysql:                                                         
Server:         213.186.33.xx                                                  
Address:        213.186.33.xx#53                                                
                                                                                
** server can't find mysql: NXDOMAIN 
dig: answer 0

content of /etc/resolv.conf:

search test.svc.cluster.local svc.cluster.local cluster.local ovh.net           
nameserver 178.32.27.xx                                                       
nameserver 213.186.33.xx                                                       
options ndots:5          

This works fine (IP = service IP):
mysql -utest -ptest -h172.30.222.94          

ping 172.30.222.94                                                      
PING 172.30.222.94 (172.30.222.94) 56(84) bytes of data.                        
From 10.1.0.1 icmp_seq=1 Destination Host Unreachable                           
From 10.1.0.1 icmp_seq=2 Destination Host Unreachable                           
From 10.1.0.1 icmp_seq=3 Destination Host Unreachable                           
From 10.1.0.1 icmp_seq=4 Destination Host Unreachable                                   
~             


From: bparees redhat com
Date: Wed, 6 Jul 2016 12:02:20 -0400
Subject: Re: Unable to connect with service using mysql-ephemeral template
To: dencowboy hotmail com
CC: users lists openshift redhat com


Is service DNS resolution otherwise working in your cluster?

if you just enter the container w/o starting the mysql shell are you able to dig/nslookup/ping the mysql hostname?

can you check the /etc/resolv.conf settings within the container to ensure the cluster DNS server is listed?


On Wed, Jul 6, 2016 at 11:49 AM, Den Cowboy <dencowboy hotmail com> wrote:
I'm on:
oc v1.2.0
kubernetes v1.2.0-36-g4a3f9c5

I've deployed the mysql-template which went fine:
Now I've a running mysql container. I go to the terminal inside my webconsole to authenticate on my mysql container:

mysql -utest -ptest -h127.0.0.1
> mysql

Fine, but when I try my service as my host:
mysql -utest -ptest -hmysql

Error 2005 (HY000): Unknown MySQL server host 'mysql' (0)

My service above my container is called 'mysql'
Can someone explain this issue?

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users




--
Ben Parees | OpenShift




--
Ben Parees | OpenShift


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]