Affects Version/s: None
Fix Version/s: None
I try to deploy a galera cluster with marathon on two VM (mysql1 : ip 192.168.33.101, mysql2 : ip 192.168.33.102). I need to expose docker container port on the docker host. Everything is working fine when launching containers with command line with -p 3306:3306 -p 4567:4567 but I don't manage to start it with marathon.
Mesos : 0.21.1
Marathon : 0.8.1
I have a galera.json file (full content here : http://sttts.github.io/galera/mesos/2015/03/04/galera-on-mesos.html) to first launch a seed on mysql1. Once the seed is deployed and running, I can scale the number of nodes to join the cluster (I added a constraint to have only one node per machine so the first node will be deployed to mysql2).
For both seed and node, I have the following settings :
I get with docker ps
"nmap -sT -p 3306,4567 192.168.33.101" gives:
The seed healthcheck passes, but then when I try to scale the number of nodes (on mysql2), I get a "WSREP: wsrep::connect() failed: 7" error. The node cannot join the seed.
So I tried to force the host port like :
but then the seed container is not even deploying, it just stays on 0/1 with "deploying" status.
I tried the following too as suggested here https://github.com/mesosphere/marathon/issues/751 :
but I get
Any idea on why the container is not being deployed when setting the hostPath ? Or how I could just do the equivalent of -p 3306:3306 -p 4567:4567 in marathon ?
Here someone is trying with args but without success : https://groups.google.com/forum/#!msg/marathon-framework/gS3KEFsXIGE/HJCLH_8_KxUJ