{"action":"opened","issue":{"url":"https://api.github.com/repos/ContainX/docker-volume-netshare/issues/101","repository_url":"https://api.github.com/repos/ContainX/docker-volume-netshare","labels_url":"https://api.github.com/repos/ContainX/docker-volume-netshare/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/ContainX/docker-volume-netshare/issues/101/comments","events_url":"https://api.github.com/repos/ContainX/docker-volume-netshare/issues/101/events","html_url":"https://github.com/ContainX/docker-volume-netshare/issues/101","id":206649590,"number":101,"title":"Docker 1.13 stack issue with 0.32","user":{"login":"CyrilPeponnet","id":2277387,"avatar_url":"https://avatars.githubusercontent.com/u/2277387?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrilPeponnet","html_url":"https://github.com/CyrilPeponnet","followers_url":"https://api.github.com/users/CyrilPeponnet/followers","following_url":"https://api.github.com/users/CyrilPeponnet/following{/other_user}","gists_url":"https://api.github.com/users/CyrilPeponnet/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrilPeponnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrilPeponnet/subscriptions","organizations_url":"https://api.github.com/users/CyrilPeponnet/orgs","repos_url":"https://api.github.com/users/CyrilPeponnet/repos","events_url":"https://api.github.com/users/CyrilPeponnet/events{/privacy}","received_events_url":"https://api.github.com/users/CyrilPeponnet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-09T22:30:24Z","updated_at":"2017-02-09T22:30:24Z","closed_at":null,"body":"As 0.33 is not working with swarm, I'm using 0.32.\r\n\r\nWhile it works fine wit simple docker run like:\r\n\r\n```\r\ncore@localhost ~ $ docker run -i -t --volume-driver=nfs -v server/share:/test busybox ls /test | wc -l\r\ncore@localhost ~ $ 17\r\n```\r\n\r\nWith debug:\r\n\r\n```\r\nDEBU[1463] Entering Get: {server/share map[]}\r\nDEBU[1463] Get: mount found for server/share, host directory: /var/lib/docker-volumes/netshare/nfs/server:share\r\nDEBU[1463] Host path for server/share (server/share) is at /var/lib/docker-volumes/netshare/nfs/server/share\r\nDEBU[1463] Entering Mount: {server:share 561289a23a48c625c1bad39f62700a6a5ff56e69f00b36114a897adf57176234}\r\nINFO[1463] Mounting NFS volume server:/share on /var/lib/docker-volumes/netshare/nfs/server:share\r\nDEBU[1463] Mounting with NFSv3 - src: server:/share, dest: /var/lib/docker-volumes/netshare/nfs/server:share\r\nDEBU[1463] exec: mount -v -t nfs -o port=2049,nolock,proto=tcp server:/share /var/lib/docker-volumes/netshare/nfs/server:share\r\nDEBU[1468] Entering Unmount: {server:share 561289a23a48c625c1bad39f62700a6a5ff56e69f00b36114a897adf57176234}\r\nINFO[1468] Unmounting volume name server:share from /var/lib/docker-volumes/netshare/nfs/server:share\r\n```\r\n\r\nUsing a simple stack like:\r\n\r\n```yaml\r\nversion: \"3\"\r\nservices:\r\n  test:\r\n    image: busybox\r\n    deploy:\r\n      replicas: 1\r\n    volumes:\r\n      - share:/test\r\n    command: ls /test/ | wc -l\r\n\r\n\r\nvolumes:\r\n  share:\r\n    driver: nfs\r\n    driver_opts:\r\n      share: server:/share\r\n```\r\n\r\nDeployed with `docker stack deploy -c test.yaml test` gives me:\r\n\r\n```\r\nDEBU[1802] Entering Get: {test_share map[]}\r\nDEBU[1802] Entering Create: name: test_share, options map[share:sever:/share]\r\nDEBU[1802] Create volume -> name: test_share, map[share:sever:/share]\r\nDEBU[1802] Host path for test_share (test_share) is at /var/lib/docker-volumes/netshare/nfs/test_share\r\nDEBU[1802] Entering Get: {test_share map[]}\r\nDEBU[1802] Get: mount found for test_share, host directory: /var/lib/docker-volumes/netshare/nfs/test_share\r\nDEBU[1803] Entering Get: {test_share map[]}\r\nDEBU[1803] Get: mount found for test_share, host directory: /var/lib/docker-volumes/netshare/nfs/test_share\r\nDEBU[1803] Entering Get: {test_share map[]}\r\nDEBU[1803] Get: mount found for test_share, host directory: /var/lib/docker-volumes/netshare/nfs/test_share\r\n```\r\n\r\nand `docker stack ps test --no-trunc`\r\n\r\n\r\n```\r\ndocker stack ps test --no-trunc\r\nID                         NAME             IMAGE                                                                                   NODE       DESIRED STATE  CURRENT STATE            ERROR                                                                 PORTS\r\nswk3rqayt02k0ydrd0whrd5cb  test_test.1      busybox:latest@sha256:817a12c32a39bbe394944ba49de563e085f1d3c5266eb8e9723256bc4448680e  localhost  Ready          Rejected 2 seconds ago   \"SELinux relabeling of  is not allowed: \"no such file or directory\"\"\r\nn6q74tfeilwwdplb9gvsirpgy   \\_ test_test.1  busybox:latest@sha256:817a12c32a39bbe394944ba49de563e085f1d3c5266eb8e9723256bc4448680e  localhost  Shutdown       Rejected 7 seconds ago   \"SELinux relabeling of  is not allowed: \"no such file or directory\"\"\r\nebb4b02yabfaxb8ur5aby248t   \\_ test_test.1  busybox:latest@sha256:817a12c32a39bbe394944ba49de563e085f1d3c5266eb8e9723256bc4448680e  localhost  Shutdown       Rejected 12 seconds ago  \"SELinux relabeling of  is not allowed: \"no such file or directory\"\"\r\nru8n97cekzpphaciqca5g1sde   \\_ test_test.1  busybox:latest@sha256:817a12c32a39bbe394944ba49de563e085f1d3c5266eb8e9723256bc4448680e  localhost  Shutdown       Rejected 17 seconds ago  \"SELinux relabeling of  is not allowed: \"no such file or directory\"\"\r\nqa4nvp5vayhu6vzo1ehinngsq   \\_ test_test.1  busybox:latest@sha256:817a12c32a39bbe394944ba49de563e085f1d3c5266eb8e9723256bc4448680e  localhost  Shutdown       Rejected 22 seconds ago  \"SELinux relabeling of  is not allowed: \"no such file or directory\"\"\r\n```\r\n\r\nfrom docker logs\r\n\r\n```\r\nFeb 09 22:27:08 localhost dockerd[3802]: time=\"2017-02-09T22:27:08.602508999Z\" level=error msg=\"fatal task error\" error=\"SELinux relabeling of  is not allowed: \\\"no such file or directory\\\"\" module=\"node/agent/taskmanager\" task.id=rj6tm0frsa5q73zkh0btkr80z\r\nFeb 09 22:27:09 localhost dockerd[3802]: time=\"2017-02-09T22:27:09.004607096Z\" level=error msg=\"failed to deactivate service binding for container test_test.1.qirezacdc26fuip14nl0jsjm3\" error=\"No such container: test_test.1.qirezacdc26fuip14nl0jsjm3\" module=\"node/agent\"\r\nFeb 09 22:27:14 localhost dockerd[3802]: time=\"2017-02-09T22:27:14.042922214Z\" level=error msg=\"failed to deactivate service binding for container test_test.1.mmi1pebgvle2otv74qoaltg96\" error=\"No such container: test_test.1.mmi1pebgvle2otv74qoaltg96\" module=\"node/agent\"\r\nFeb 09 22:27:18 localhost dockerd[3802]: time=\"2017-02-09T22:27:18.619736983Z\" level=error msg=\"fatal task error\" error=\"SELinux relabeling of  is not allowed: \\\"no such file or directory\\\"\" module=\"node/agent/taskmanager\" task.id=vbg26wmccxhfztvo4eoq203cc\r\n```\r\n\r\nfrom `docker volume inspect test_share`\r\n\r\n\r\n```\r\n[\r\n    {\r\n        \"Driver\": \"nfs\",\r\n        \"Labels\": {\r\n            \"com.docker.stack.namespace\": \"test\"\r\n        },\r\n        \"Mountpoint\": \"/var/lib/docker-volumes/netshare/nfs/test_share\",\r\n        \"Name\": \"test_share\",\r\n        \"Options\": {\r\n            \"share\": \"server:/share\"\r\n        },\r\n        \"Scope\": \"local\"\r\n    }\r\n]\r\n```\r\n\r\nSomething is getting stripped at some point I think...\r\n"}}
{"actor":{"display_login":"CyrilPeponnet"}}