Hi Sarbajit, I don’t think we’ve never tried deploying Project Clearwater in a Docker Swarm cluster, but I don’t see any reason why it couldn’t work. The tests are failing very early – they’re not able to connect to Ellis on port 80. I can think of a couple of reasons for this – either Ellis isn’t running or the Ellis port mapping hasn’t worked for some reason.
Can you connect to the Ellis container and run ps –eaf | grep ellis and ps –eaf | grep nginx to confirm that NGINX and Ellis are running? Can you also run sudo netstat -planut | grep nginx or something equivalent to check that NGINX is listening on port 80? If there’s a problem with either NGINX or Ellis we probably need to look in the logs at /var/log/nginx/ or /var/log/ellis/ on the Ellis container. If however that all looks fine, then it sounds like the port mapping has failed for some reason. Can you run nc -z <ip> 80 from the box you’re running the live tests on? This will scan for anything listening at <ip>:80 and will return successfully if it finds anything. Thanks, Graeme ________________________________ From: Clearwater [mailto:[email protected]] On Behalf Of Sarbajit Chatterjee Sent: 20 September 2016 15:05 To: [email protected]<mailto:[email protected]> Subject: [Project Clearwater] Deploy Clearwater in a Swarm cluster using docker-compose Hello, I am following the instructions from https://github.com/Metaswitch/clearwater-docker. I can successfully deploy it on a single Docker node but, the compose file does not work with Swarm cluster. I did try to modify the compose file like this - version: '2' services: etcd: image: quay.io/coreos/etcd:v2.2.5<http://quay.io/coreos/etcd:v2.2.5> command: > -name etcd0 -advertise-client-urls http://etcd:2379,http://etcd:4001 -listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 -initial-advertise-peer-urls http://etcd:2380 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster etcd0=http://etcd:2380 -initial-cluster-state new bono: image: swarm-node:5000/clearwaterdocker_bono ports: - 22 - "3478:3478" - "3478:3478/udp" - "5060:5060" - "5060:5060/udp" - "5062:5062" sprout: image: swarm-node:5000/clearwaterdocker_sprout networks: default: aliases: - scscf.sprout - icscf.sprout ports: - 22 homestead: image: swarm-node:5000/clearwaterdocker_homestead ports: - 22 homer: image: swarm-node:5000/clearwaterdocker_homer ports: - 22 ralf: image: swarm-node:5000/clearwaterdocker_ralf ports: - 22 ellis: image: swarm-node:5000/clearwaterdocker_ellis ports: - 22 - "80:80" where swarm-node:5000 is the local docker registry and it hosts the pre-built images of Clearwater containers. Even though the deployment succeeded, clearwater-livetests are failing with following error - Basic Registration (TCP) - Failed Errno::ECONNREFUSED thrown: - Connection refused - connect(2) - /usr/local/rvm/gems/ruby-1.9.3-p551/gems/quaff-0.7.3/lib/sources.rb:41:in `initialize' Any suggestions on how I can deploy Clearwater on a Swarm cluster? Thanks, Sarbajit
_______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org
