Closed worp1900 closed 6 years ago
I was able to fix etcd not coming up by adjusting the docker-compose file like so:
etcd:
image: quay.io/coreos/etcd
--> hostname: galera_etcd command: etcd [...]
Now the xtradb instances have problems connecting to galera_etcd:
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | Registering in the discovery service
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 |
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | % Total % Received % Xferd Average Speed Time Time Time Current
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 |
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: galera_etcd
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | % Total % Received % Xferd Average Speed Time Time Time Current
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 | MySQL init process done. Ready for start up.
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: galera_etcd
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 |
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 |
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | % Total % Received % Xferd Average Speed Time Time Time Current
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: galera_etcd
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | % Total % Received % Xferd Average Speed Time Time Time Current
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 | Registering in the discovery service
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 |
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | Dload Upload Total Spent Left Speed
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 | % Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: galera_etcd
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | % Total % Received % Xferd Average Speed Time Time Time Current
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | Dload Upload Total Spent Left Speed
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: galera_etcd
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | % Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: galera_etcd
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: galera_etcd
percona_percona-xtradb-cluster.1.6n00gfc8zbdr@test-011 | Joining cluster
[...]
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 | % Total % Received % Xferd Average Speed Time Time Time Current
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: galera_etcd
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 | % Total % Received % Xferd Average Speed Time Time Time Current
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0curl: (6) Could not resolve host: galera_etcd
percona_percona-xtradb-cluster.2.o04vqqx8hpds@test-010 | Joining cluster
It is probably fairly easy...I just can't figure out what's going wrong. Obviously the services can't resolve the service via the docker overlay network.
Any hints to debug this issue or ideas how to proceed are greatly appreciated!
Turns out I had a rename done wrong, renaming the original "galera_etcd" from your tutorial to "percona_etcd", since I had changed the cluster-name to "percona". This skipped my mind.
Hey man,
an amazing tutorial. I was able to follow through it just perfectly. I got it all running smoothly on a local 3-node cluster.
However when I went on to our testing environment to deploy the stack there, etcd kept reporting:
I assume there is a problem resolving DNS names? I have no clue where I might find help with that as the search for "etcd failed resolving hostname" or "etcdmain failed to resolve" does not yield anything viable yet. I am also thinking it's not an etcd issue but a Docker issue. Maybe it's not connected to DNS but maybe I am missing a port to open?
If you can provide any hint I am happy for anything!