Giter VIP home page Giter VIP logo

Comments (7)

sielaq avatar sielaq commented on July 26, 2024

--ip=0.0.0.0 means listen on all interfaces, so this should work fine.
Works fine & tested in 3 different use cases:
standalone mode,
3 master&slaves,
and 3mater + n-slaves

from panteras.

sielaq avatar sielaq commented on July 26, 2024

when you play a lot with mesos and reconfigure it keep in mind to clean up /tmp/mesos/* on host docker machine.

from panteras.

kopax avatar kopax commented on July 26, 2024

Thanks again for your quick reply.
I finally decided to test again just to be sure.

  • Stop container
  • Remove Container
  • Force remove /tmp/mesos/*
  • I took the generate_yml.sh from your master branch
  • Mesos will display on the web interface Server:127.0.1.1:5050 and 0 slave node reached
  • It's a single Mesos node master, there are no redirect on every web interface
  • Stop container
  • Remove Container
  • Force remove /tmp/mesos/*
  • I used the ${IP} in generate_yml.sh for CONSUL_PARAMS MESOS_MASTER_PARAMS MESOS_SLAVE_PARAMS
  • I now have this : Server:62.XXX.107.170:5050 and 3 slaves and http redirect from one master to another

from panteras.

sielaq avatar sielaq commented on July 26, 2024

can you paste your docker-compose.yml which was generated
and /etc/hosts entry
?
seems like something else is a problem,
I suspect that your fqdn is not resolvable or points to 127.0.0.1 in /etc/hosts
instead to point to external IP.

from panteras.

kopax avatar kopax commented on July 26, 2024

docker-compose.yml

panteras:
dns:        
image:      panteras/paas-in-a-box:latest
name:       panteras
net:        host
privileged: true
restart:    no
ports:
   - "8500:8500" 
   - "8080:8080"
   - "5050:5050"

environment:
  CONSUL_IP:               "195.xxx.17.74"
  HOST_IP:                 "195.xxx.17.74"
  FQDN:                    "preprod-02.mydomain.com"
  GOMAXPROCS:              "4"

  SERVICE_8500_NAME: consul-ui
  SERVICE_8500_TAGS: haproxy
  SERVICE_8500_CHECK_HTTP: /v1/status/leader

  SERVICE_8080_NAME: marathon
  SERVICE_8080_TAGS: haproxy
  SERVICE_8080_CHECK_HTTP: /v2/leader

  SERVICE_5050_NAME: mesos
  SERVICE_5050_TAGS: haproxy
  SERVICE_5050_CHECK_HTTP: /master/health

  START_CONSUL:            "true"
  START_CONSUL_TEMPLATE:   "true"
  START_DNSMASQ:           "true"
  START_MESOS_MASTER:      "true"
  START_MARATHON:          "true"
  START_MESOS_SLAVE:       "true"
  START_REGISTRATOR:       "true"
  START_ZOOKEEPER:         "true"

  CONSUL_APP_PARAMS:          "agent  -client=195.xxx.17.74  -data-dir=/opt/consul/  -ui-dir=/opt/consul/dist/  -advertise=0.0.0.0  -node=preprod-02  -dc=MYDC  -server  -join=prod-02.mydomain.com -join=prod-01.mydomain.com -join=preprod-02.mydomain.com  "
  CONSUL_TEMPLATE_APP_PARAMS: "-consul=195.xxx.17.74:8500  -template haproxy.cfg.ctmpl:/etc/haproxy/haproxy.cfg:/opt/consul-template/haproxy_reload.sh  "
  DNSMASQ_APP_PARAMS:         "-d  -u dnsmasq  -r /etc/resolv.conf.orig  -7 /etc/dnsmasq.d  --server=/consul/195.xxx.17.74#8600  --host-record=preprod-02,195.xxx.17.74  --address=/consul/195.xxx.17.74  "
  HAPROXY_ADD_DOMAIN:         "mydomain.com"
  MARATHON_APP_PARAMS:        "--master zk://prod-02.mydomain.com:2181,prod-01.mydomain.com:2181,preprod-02.mydomain.com:2181/mesos  --zk zk://prod-02.mydomain.com:2181,prod-01.mydomain.com:2181,preprod-02.mydomain.com:2181/marathon  --hostname preprod-02  --no-logger  "
  MESOS_MASTER_APP_PARAMS:    "--zk=zk://prod-02.mydomain.com:2181,prod-01.mydomain.com:2181,preprod-02.mydomain.com:2181/mesos  --work_dir=/var/lib/mesos  --quorum=2  --ip=0.0.0.0  --hostname=preprod-02.mydomain.com  --cluster=mesoscluster  "
  MESOS_SLAVE_APP_PARAMS:     "--master=zk://prod-02.mydomain.com:2181,prod-01.mydomain.com:2181,preprod-02.mydomain.com:2181/mesos  --containerizers=docker,mesos  --executor_registration_timeout=5mins  --hostname=preprod-02.mydomain.com  --ip=0.0.0.0  --docker_stop_timeout=5secs  --gc_delay=1days  --docker=/usr/local/sbin/docker  "
  REGISTRATOR_APP_PARAMS:     "-ip=195.xxx.17.74 consul://195.xxx.17.74:8500  "
  ZOOKEEPER_APP_PARAMS:       "start-foreground"
  ZOOKEEPER_HOSTS:            "prod-02.mydomain.com:2181,prod-01.mydomain.com:2181,preprod-02.mydomain.com:2181"
  ZOOKEEPER_ID:               "3"
  KEEPALIVED_VIP:             ""

  HOSTNAME:                   "preprod-02"

volumes:
  - "/etc/resolv.conf:/etc/resolv.conf.orig"
  - "/var/spool/marathon/artifacts/store:/var/spool/store"
  - "/var/run/docker.sock:/tmp/docker.sock"
  - "/var/lib/docker:/var/lib/docker"
  - "/sys:/sys"
  - "/tmp/mesos:/tmp/mesos"
  - "/srv/docker/mesos-data/docker.tar.gz:/etc/docker.tar.gz"

/etc/hosts

127.0.0.1   localhost
127.0.1.1   preprod-02.mydomain.com sd-4xxxx.mydomain.fr preprod-02

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

from panteras.

sielaq avatar sielaq commented on July 26, 2024

Change in your /etc/hosts:
127.0.1.1 preprod-02.mydomain.com sd-4xxxx.mydomain.fr preprod-02
to
195.xxx.17.74 preprod-02.mydomain.com sd-4xxxx.mydomain.fr preprod-02
of course do similar thing for other hosts,
I suspect that this is the problem.

from panteras.

kopax avatar kopax commented on July 26, 2024

Tested and solved.
it was the default /etc/hosts from my server provider (Online.net).

from panteras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.