{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/27016","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/27016/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/27016/comments","events_url":"https://api.github.com/repos/docker/docker/issues/27016/events","html_url":"https://github.com/docker/docker/issues/27016","id":180000061,"number":27016,"title":"swarm mode on ubuntu 14.04 - no load balancing at all, published service port is not present on all nodes ","user":{"login":"slawekgh","id":11534862,"avatar_url":"https://avatars.githubusercontent.com/u/11534862?v=3","gravatar_id":"","url":"https://api.github.com/users/slawekgh","html_url":"https://github.com/slawekgh","followers_url":"https://api.github.com/users/slawekgh/followers","following_url":"https://api.github.com/users/slawekgh/following{/other_user}","gists_url":"https://api.github.com/users/slawekgh/gists{/gist_id}","starred_url":"https://api.github.com/users/slawekgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slawekgh/subscriptions","organizations_url":"https://api.github.com/users/slawekgh/orgs","repos_url":"https://api.github.com/users/slawekgh/repos","events_url":"https://api.github.com/users/slawekgh/events{/privacy}","received_events_url":"https://api.github.com/users/slawekgh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/networking","name":"area/networking","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/area/swarm","name":"area/swarm","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2016-09-29T09:38:28Z","updated_at":"2016-09-30T18:44:55Z","closed_at":null,"body":"3 ubuntu (14.04.4 LTS / 4.2.0-27-generic #32~14.04.1-Ubuntu SMP) nodes:\r\n\r\n```\r\nubuntu01/192.168.56.103#\r\nubuntu02/192.168.56.101#\r\nubuntu03/192.168.56.102#\r\n```\r\n\r\n\r\n\r\n3 swarm node cluster:\r\n\r\n```\r\nubuntu01/192.168.56.103# docker node ls\r\nID                           HOSTNAME  STATUS  AVAILABILITY  MANAGER STATUS\r\n55ca5x85au80jk8egyf0w605b    ubu02     Ready   Active\r\n7g9h9spsidu5nadrd9peil2sp    ubu03     Ready   Active\r\natl4icu0z0a1t7nsxln4xa7ri *  ubu01     Ready   Active        Leader\r\n```\r\n\r\none simple service with 2 replicas (simple image - serving its hostname via www on port 80) :\r\n\r\n```\r\ndocker service create --name w03 --replicas 2 --publish 9001:80  test_apache\r\n\r\n\r\nubuntu01/192.168.56.103# docker service  ps w03\r\nID                         NAME   IMAGE        NODE   DESIRED STATE  CURRENT STATE          ERROR\r\n22e3h2jxzgryca84db6qnikvy  w03.1  test_apache  ubu01  Running        Running 5 seconds ago\r\n8qhdpcn02bbmbo5b7kfitlmnf  w03.2  test_apache  ubu02  Running        Running 4 seconds ago\r\n```\r\n\r\n\r\n\r\n1. From master node (ubuntu01)\r\n\r\na) no load balancing on local IP:\r\n```\r\n\r\nubuntu01/192.168.56.103# curl 192.168.56.103:9001\r\n8dcbc2d99a24\r\nubuntu01/192.168.56.103# curl 192.168.56.103:9001\r\n8dcbc2d99a24\r\nubuntu01/192.168.56.103# curl 192.168.56.103:9001\r\n8dcbc2d99a24\r\nubuntu01/192.168.56.103# curl 192.168.56.103:9001\r\n8dcbc2d99a24\r\n```\r\n\r\nb) no load balancing on remote IP on remote node \r\n```\r\n\r\nubuntu01/192.168.56.103# curl 192.168.56.101:9001\r\n96cac8b6718f\r\nubuntu01/192.168.56.103# curl 192.168.56.101:9001\r\n96cac8b6718f\r\nubuntu01/192.168.56.103# curl 192.168.56.101:9001\r\n96cac8b6718f\r\nubuntu01/192.168.56.103# curl 192.168.56.101:9001\r\n96cac8b6718f\r\n```\r\n\r\n\r\nc) no port and no data on #3 node \r\n```\r\n\r\nubuntu01/192.168.56.103# curl 192.168.56.102:9001\r\ncurl: (7) Failed to connect to 192.168.56.102 port 9001: Connection refused\r\nubuntu01/192.168.56.103# curl 192.168.56.102:9001\r\ncurl: (7) Failed to connect to 192.168.56.102 port 9001: Connection refused\r\nubuntu01/192.168.56.103#\r\n```\r\n\r\n\r\n2. From worker node (ubuntu02)\r\n\r\na) no load balancing on local IP:\r\n```\r\n\r\nubuntu02/192.168.56.101# curl 192.168.56.101:9001\r\n96cac8b6718f\r\nubuntu02/192.168.56.101# curl 192.168.56.101:9001\r\n96cac8b6718f\r\nubuntu02/192.168.56.101# curl 192.168.56.101:9001\r\n96cac8b6718f\r\n```\r\n\r\nb) no load balancing on remote IP on remote node\r\n```\r\n\r\nubuntu02/192.168.56.101# curl 192.168.56.103:9001\r\n8dcbc2d99a24\r\nubuntu02/192.168.56.101# curl 192.168.56.103:9001\r\n8dcbc2d99a24\r\nubuntu02/192.168.56.101# curl 192.168.56.103:9001\r\n8dcbc2d99a24\r\n```\r\n\r\n\r\nc) no port open and no data on #3 node\r\n```\r\n\r\nubuntu02/192.168.56.101# curl 192.168.56.102:9001\r\ncurl: (7) Failed to connect to 192.168.56.102 port 9001: Connection refused\r\n```\r\n\r\nversions:\r\n```\r\nubuntu01/192.168.56.103# docker version\r\nClient:\r\n Version:      1.12.1\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   23cf638\r\n Built:        Thu Aug 18 05:22:43 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.1\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   23cf638\r\n Built:        Thu Aug 18 05:22:43 2016\r\n OS/Arch:      linux/amd64\r\nubuntu01/192.168.56.103# docker info\r\nContainers: 2\r\n Running: 1\r\n Paused: 0\r\n Stopped: 1\r\nImages: 3\r\nServer Version: 1.12.1\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 24\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge overlay null host\r\nSwarm: active\r\n NodeID: atl4icu0z0a1t7nsxln4xa7ri\r\n Is Manager: true\r\n ClusterID: 68jvor1d5j0kt6sb5g8k0io22\r\n Managers: 1\r\n Nodes: 3\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: 192.168.56.103\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: apparmor\r\nKernel Version: 4.2.0-27-generic\r\nOperating System: Ubuntu 14.04.4 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 2.917 GiB\r\nName: ubu01\r\nID: L4JL:PN2U:ZBUI:RYQK:M5JI:3W2L:KXE5:EZY4:E34K:PT5U:NOCC:EVN3\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```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/250822106","html_url":"https://github.com/docker/docker/issues/27016#issuecomment-250822106","issue_url":"https://api.github.com/repos/docker/docker/issues/27016","id":250822106,"user":{"login":"mrjana","id":1693482,"avatar_url":"https://avatars.githubusercontent.com/u/1693482?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjana","html_url":"https://github.com/mrjana","followers_url":"https://api.github.com/users/mrjana/followers","following_url":"https://api.github.com/users/mrjana/following{/other_user}","gists_url":"https://api.github.com/users/mrjana/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjana/subscriptions","organizations_url":"https://api.github.com/users/mrjana/orgs","repos_url":"https://api.github.com/users/mrjana/repos","events_url":"https://api.github.com/users/mrjana/events{/privacy}","received_events_url":"https://api.github.com/users/mrjana/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T18:44:55Z","updated_at":"2016-09-30T18:44:55Z","body":"@sdlevi27 I am just now doing my own experiment with the exactly same cluster as yours and will update shortly. Let's hold on rebooting until then."}}
{"actor":{"display_login":"mrjana"}}