docker-volume-netshare
docker-volume-netshare copied to clipboard
Mesos integration
Hi,
Any chance you have documentation on Mesos / Marathon integration? We have been trying to do it by passing in the relevant flags via json:
{"key": "volume", "value": "x.x.x.x/vol:/var/lib/postgresql/data"}
The machine is stuck in a constant state of not deploying.
The Mesos logs show:
Nov 25 16:03:04 loworker01 docker: INFO: 2016/11/25 15:03:04.995089 Creating container with WEAVE_CIDR ""
Nov 25 16:03:05 loworker01 docker: INFO: 2016/11/25 15:03:04.999874 GET /v1.23/containers/mesos-38fc25b8-3bf2-4f0d-a6d6-e07229f20632-S1.c62e49d1-2b19-446a-b8e8-7831534e0afb/json
Nov 25 16:03:05 loworker01 docker: time="2016-11-25T16:03:05.001090919+01:00" level=error msg="Handler for GET /v1.23/containers/mesos-38fc25b8-3bf2-4f0d-a6d6-e07229f20632-S1.c62e49d1-2b19-446a-b8e8-7831534e0afb/json returned error: No such container: mesos-38fc25b8-3bf2-4f0d-a6d6-e07229f20632-S1.c62e49d1-2b19-446a-b8e8-7831534e0afb"
Nov 25 16:03:05 loworker01 docker: INFO: 2016/11/25 15:03:05.002038 GET /v1.23/images/mesos-38fc25b8-3bf2-4f0d-a6d6-e07229f20632-S1.c62e49d1-2b19-446a-b8e8-7831534e0afb/json
Nov 25 16:03:05 loworker01 docker: time="2016-11-25T16:03:05.002371116+01:00" level=error msg="Handler for GET /v1.23/images/mesos-38fc25b8-3bf2-4f0d-a6d6-e07229f20632-S1.c62e49d1-2b19-446a-b8e8-7831534e0afb/json returned error: No such image: mesos-38fc25b8-3bf2-4f0d-a6d6-e07229f20632-S1.c62e49d1-2b19-446a-b8e8-7831534e0afb"
Nov 25 16:03:05 loworker01 docker: INFO: 2016/11/25 15:03:05.292248 POST /v1.23/containers/00cab67d8d8001632a5be60b13ba1917c336b5e40c50ba560ae94b512d1c7117/attach?stderr=1&stdout=1&stream=1
Nov 25 16:03:05 loworker01 docker: INFO: 2016/11/25 15:03:05.295742 POST /v1.23/containers/00cab67d8d8001632a5be60b13ba1917c336b5e40c50ba560ae94b512d1c7117/start
Nov 25 16:03:05 loworker01 kernel: docker0: port 3(vethde61501) entered forwarding state
Nov 25 16:03:05 loworker01 kernel: docker0: port 3(vethde61501) entered forwarding state
Nov 25 16:03:05 loworker01 kernel: docker0: port 3(vethde61501) entered disabled state
Nov 25 16:03:05 loworker01 NetworkManager[943]: <info> (docker0): bridge port vethde61501 was attached
Nov 25 16:03:05 loworker01 NetworkManager[943]: <info> (vethde61501): enslaved to docker0
Nov 25 16:03:05 loworker01 docker-volume-netshare: time="2016-11-25T16:03:05+01:00" level=info msg="Mounting NFS volume 10.31.255.250:/vol/mesosvol on /var/lib/docker-volumes/netshare/nfs/x.x.x.x/vol/"
This same container deploys on the same host, with the same JSON config via Marathon when we don't pass the flags for netshare. Any ideas?
Marathon: marathon-1.3.6-1.0.540 Mesos: mesos-1.1.0-2.0.107 Netshare: 0.32 Weave 1.8.1
Do you have any idea about how to make it work with mesos and marathon?
the key is "share", not "volume"