{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/28654","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/28654/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/28654/comments","events_url":"https://api.github.com/repos/docker/docker/issues/28654/events","html_url":"https://github.com/docker/docker/issues/28654","id":190671465,"number":28654,"title":"Swarm: network connect failed","user":{"login":"larryhu","id":1485385,"avatar_url":"https://avatars.githubusercontent.com/u/1485385?v=3","gravatar_id":"","url":"https://api.github.com/users/larryhu","html_url":"https://github.com/larryhu","followers_url":"https://api.github.com/users/larryhu/followers","following_url":"https://api.github.com/users/larryhu/following{/other_user}","gists_url":"https://api.github.com/users/larryhu/gists{/gist_id}","starred_url":"https://api.github.com/users/larryhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larryhu/subscriptions","organizations_url":"https://api.github.com/users/larryhu/orgs","repos_url":"https://api.github.com/users/larryhu/repos","events_url":"https://api.github.com/users/larryhu/events{/privacy}","received_events_url":"https://api.github.com/users/larryhu/received_events","type":"User","site_admin":false},"labels":[{"id":237472034,"url":"https://api.github.com/repos/docker/docker/labels/area/networking","name":"area/networking","color":"fbca04","default":false},{"id":392678049,"url":"https://api.github.com/repos/docker/docker/labels/area/swarm","name":"area/swarm","color":"fbca04","default":false},{"id":375714123,"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-21T10:12:24Z","updated_at":"2016-11-25T02:57:28Z","closed_at":"2016-11-25T02:57:28Z","body":"\r\n**Description**\r\n\r\nSwarm: network connect failed\r\n<!--\r\nBriefly describe the problem you are having in a few paragraphs.\r\n-->\r\n\r\n**Steps to reproduce the issue:**\r\n1. create \"cloud\" network: \r\n```\r\ndocker network create -d overlay --subnet 172.16.0.0/12 cloud\r\n```\r\n2. create \"rest\" service:\r\n```\r\ndocker service create --name rest -p 18080:8080 \\\r\n  --network cloud --replicas 2 \\\r\n  --mount type=bind,source=/data/docker/webapps,destination=/tomcat/webapps \\\r\n  inner.domain/rest:v2\r\n```\r\n\r\n3. show services:\r\n```shell\r\n# docker service ps auth\r\nID                         NAME        IMAGE               NODE                     DESIRED STATE  CURRENT STATE            ERROR\r\n8dg8yhr9j0tc3bemvtkvkvphe  auth.1      inner.site/rest:v2  iZbp16donehwn89cuw2f1dZ  Running        Running 18 minutes ago\r\nepe9td53duriosabxh4mbtrf8  auth.2      inner.site/rest:v2  iZbp16donehwn89cuw2f1dZ  Running        Running 18 minutes ago\r\n\r\n```\r\n\r\n4. show listen port:\r\n```shell\r\n# ss -ntlp | grep 18080\r\nLISTEN     0      128                      :::18080                   :::*      users:((\"dockerd\",37014,25))\r\n```\r\n\r\n**Describe the results you received:**\r\nIn this local host(10.27.101.44):\r\n```\r\n$ curl  http://localhost:18080/info\r\ncurl: (28) Connection timed out\r\n$ curl  http://10.27.101.44:18080/info\r\ncurl: (28) Connection timed out\r\n```\r\n\r\n### But, in other host request this service, sometime same failed, and sometime is SUCCESS!\r\nanother host A\r\n```\r\n$ curl http://10.27.101.44:18080/info\r\nHello\r\n```\r\n\r\nanother host B\r\n```\r\n$ curl http://10.27.101.44:18080/info\r\ncurl: (28) Connection timed out\r\n```\r\n\r\n**Describe the results you expected:**\r\nAll success.\r\n```\r\n$curl  http://localhost:18080/info\r\nHello\r\n$ curl  http://10.27.101.44:18080/info\r\nHello\r\n```\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:        Wed Oct 26 21:44:32 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:        Wed Oct 26 21:44:32 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 4\r\n Running: 2\r\n Paused: 0\r\n Stopped: 2\r\nImages: 2\r\nServer Version: 1.12.3\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 31\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge null host overlay\r\nSwarm: active\r\n NodeID: 1gjp9yvv4y07vjemwts6ljk0n\r\n Is Manager: true\r\n ClusterID: dl6nrshz50o6ilu0o8amtyh4k\r\n Managers: 1\r\n Nodes: 1\r\n Orchestration:\r\n  Task History Retention Limit: 5\r\n Raft:\r\n  Snapshot Interval: 10000\r\n  Heartbeat Tick: 1\r\n  Election Tick: 3\r\n Dispatcher:\r\n  Heartbeat Period: 5 seconds\r\n CA Configuration:\r\n  Expiry Duration: 3 months\r\n Node Address: 10.27.101.44\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: apparmor\r\nKernel Version: 3.19.0-74-generic\r\nOperating System: Ubuntu 14.04.5 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 3.86 GiB\r\nName: iZbp16donehwn89cuw2f1dZ\r\nID: M2CX:YYQD:SVYR:VCZ7:SSKT:GKKC:VIZY:Z5SV:YJ2O:G6PC:AJKU:JPBI\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\nInsecure Registries:\r\n 127.0.0.0/8\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/262871525","html_url":"https://github.com/docker/docker/issues/28654#issuecomment-262871525","issue_url":"https://api.github.com/repos/docker/docker/issues/28654","id":262871525,"user":{"login":"larryhu","id":1485385,"avatar_url":"https://avatars.githubusercontent.com/u/1485385?v=3","gravatar_id":"","url":"https://api.github.com/users/larryhu","html_url":"https://github.com/larryhu","followers_url":"https://api.github.com/users/larryhu/followers","following_url":"https://api.github.com/users/larryhu/following{/other_user}","gists_url":"https://api.github.com/users/larryhu/gists{/gist_id}","starred_url":"https://api.github.com/users/larryhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larryhu/subscriptions","organizations_url":"https://api.github.com/users/larryhu/orgs","repos_url":"https://api.github.com/users/larryhu/repos","events_url":"https://api.github.com/users/larryhu/events{/privacy}","received_events_url":"https://api.github.com/users/larryhu/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T02:57:28Z","updated_at":"2016-11-25T02:57:28Z","body":"@sanimej  Thanks! This issue should close , I found the trouble，aliyun's ecs 4789 (udp port) can't  been created! aliyun's ecs is so bad!"}}
{"actor":{"display_login":"larryhu"}}