{"action":"opened","issue":{"url":"https://api.github.com/repos/alexellis/swarmmode-tests/issues/2","repository_url":"https://api.github.com/repos/alexellis/swarmmode-tests","labels_url":"https://api.github.com/repos/alexellis/swarmmode-tests/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/alexellis/swarmmode-tests/issues/2/comments","events_url":"https://api.github.com/repos/alexellis/swarmmode-tests/issues/2/events","html_url":"https://github.com/alexellis/swarmmode-tests/issues/2","id":186853735,"number":2,"title":"arm-alpinehello: curl service:port gets stuck","user":{"login":"marcellodesales","id":131457,"avatar_url":"https://avatars.githubusercontent.com/u/131457?v=3","gravatar_id":"","url":"https://api.github.com/users/marcellodesales","html_url":"https://github.com/marcellodesales","followers_url":"https://api.github.com/users/marcellodesales/followers","following_url":"https://api.github.com/users/marcellodesales/following{/other_user}","gists_url":"https://api.github.com/users/marcellodesales/gists{/gist_id}","starred_url":"https://api.github.com/users/marcellodesales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcellodesales/subscriptions","organizations_url":"https://api.github.com/users/marcellodesales/orgs","repos_url":"https://api.github.com/users/marcellodesales/repos","events_url":"https://api.github.com/users/marcellodesales/events{/privacy}","received_events_url":"https://api.github.com/users/marcellodesales/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-02T16:38:09Z","updated_at":"2016-11-02T16:38:09Z","closed_at":null,"body":"Hi @alexellis \r\n\r\nFirst of all, thanks for putting all of this together... That's definitely an amazing job! I'm building my own Raspberry PI cluster for Demos as well here in San Diego... \r\n\r\nSo, I'm building the second scenario for the web test... Curl gets stuck even though PORT `3000` is bound on the host after starting a service. I built an image based on yours that shows the container ID during bootstrap and when we curl it. The service starts all the swarm workers but does not respond when I curl in the assigned port. Nothing returns... \r\n\r\n```\r\nHypriotOS/armv7: pirate@pimanager in ~/swarmmode-tests/arm/arm-alpinehello on master*\r\n$ sudo lsof -i :3000\r\nCOMMAND PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME\r\ndockerd 447 root   12u  IPv6 646053      0t0  TCP *:3000 (LISTEN)\r\n\r\nHypriotOS/armv7: pirate@pimanager in ~/swarmmode-tests/arm/arm-alpinehello on master*\r\n$ curl localhost:3000\r\n\r\n```\r\n\r\nSetup\r\n======\r\n\r\nBuilt Image: Show container ID\r\n-----\r\n\r\n* Built new image to show the container ID and pushed to my hub's account in case you want to verify.\r\n\r\n```\r\nHypriotOS/armv7: pirate@pimanager in ~/swarmmode-tests/arm/arm-alpinehello on master*\r\n$ docker tag arm-alpinehello marcellodsales/swarmmode-tests:arm-alpinehello\r\n\r\nHypriotOS/armv7: pirate@pimanager in ~/swarmmode-tests/arm/arm-alpinehello on master*\r\n$ docker push marcellodsales/swarmmode-tests:arm-alpinehello\r\n```\r\n\r\nRunning the container locally works\r\n-----\r\n\r\n```\r\nHypriotOS/armv7: pirate@pimanager in ~/swarmmode-tests/arm/arm-alpinehello on master*\r\n$ docker run -ti -p 8800:3000 arm-alpinehello\r\n\r\n> hello@1.0.0 start /root\r\n> node index.js\r\n\r\nI'm listening from aa64f2e6e8f8\r\n```\r\n\r\n* Curl the container\r\n\r\n```\r\nHypriotOS/armv7: pirate@pimanager in ~\r\n$ curl localhost:8800\r\nHello... I am aa64f2e6e8f8\r\n```\r\n\r\nDocker Service - curl Swarm in cluster gets stuck\r\n=========\r\n\r\n* Created a new service\r\n\r\n```\r\nHypriotOS/armv7: pirate@pimanager in ~/swarmmode-tests/arm/arm-alpinehello on master*\r\n$ docker service create --name hello1 --publish 3000:3000 --replicas=4 --constraint 'node.role != manager' marcellodesales/swarmmode-tests:arm-alpinehello\r\n2o3wioznayggqjmsujq9v0jzz\r\n```\r\n\r\n<img width=\"1099\" alt=\"screen shot 2016-11-02 at 9 19 57 am\" src=\"https://cloud.githubusercontent.com/assets/131457/19937507/d1af263c-a0de-11e6-85b4-f58f630ba86e.png\">\r\n\r\n* All services are running\r\n\r\n```\r\n$ docker service ls\r\nID            NAME    REPLICAS  IMAGE                                            COMMAND\r\n2o3wioznaygg  hello1  4/4       marcellodesales/swarmmode-tests:arm-alpinehello\r\n\r\n\r\nHypriotOS/armv7: pirate@pimanager in ~/swarmmode-tests/arm/arm-alpinehello on master*\r\n$ docker service ps hello1\r\nID                         NAME      IMAGE                                            NODE  DESIRED STATE  CURRENT STATE          ERROR\r\n7sfsdwvfmdrpfuxgu6jy8fy8q  hello1.1  marcellodesales/swarmmode-tests:arm-alpinehello  pi1   Running        Running 9 minutes ago\r\n9qqwztah6mhkds3opcieltc8q  hello1.2  marcellodesales/swarmmode-tests:arm-alpinehello  pi6   Running        Running 9 minutes ago\r\nac660ksernqp3v77lifci3xrf  hello1.3  marcellodesales/swarmmode-tests:arm-alpinehello  pi2   Running        Running 9 minutes ago\r\nacst6eo351ny1tb0x80z4ye36  hello1.4  marcellodesales/swarmmode-tests:arm-alpinehello  pi5   Running        Running 9 minutes ago\r\n```\r\n\r\n* Inspect\r\n\r\n```\r\n$ docker service inspect hello1\r\n[\r\n    {\r\n        \"ID\": \"2o3wioznayggqjmsujq9v0jzz\",\r\n        \"Version\": {\r\n            \"Index\": 3062\r\n        },\r\n        \"CreatedAt\": \"2016-11-02T16:06:50.874712696Z\",\r\n        \"UpdatedAt\": \"2016-11-02T16:16:54.40703003Z\",\r\n        \"Spec\": {\r\n            \"Name\": \"hello1\",\r\n            \"TaskTemplate\": {\r\n                \"ContainerSpec\": {\r\n                    \"Image\": \"marcellodesales/swarmmode-tests:arm-alpinehello\"\r\n                },\r\n                \"Resources\": {\r\n                    \"Limits\": {},\r\n                    \"Reservations\": {}\r\n                },\r\n                \"RestartPolicy\": {\r\n                    \"Condition\": \"any\",\r\n                    \"MaxAttempts\": 0\r\n                },\r\n                \"Placement\": {\r\n                    \"Constraints\": [\r\n                        \"node.role != manager\"\r\n                    ]\r\n                }\r\n            },\r\n            \"Mode\": {\r\n                \"Replicated\": {\r\n                    \"Replicas\": 4\r\n                }\r\n            },\r\n            \"UpdateConfig\": {\r\n                \"Parallelism\": 1,\r\n                \"FailureAction\": \"pause\"\r\n            },\r\n            \"EndpointSpec\": {\r\n                \"Mode\": \"vip\",\r\n                \"Ports\": [\r\n                    {\r\n                        \"Protocol\": \"tcp\",\r\n                        \"TargetPort\": 3000,\r\n                        \"PublishedPort\": 3000\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        \"Endpoint\": {\r\n            \"Spec\": {\r\n                \"Mode\": \"vip\",\r\n                \"Ports\": [\r\n                    {\r\n                        \"Protocol\": \"tcp\",\r\n                        \"TargetPort\": 3000,\r\n                        \"PublishedPort\": 3000\r\n                    }\r\n                ]\r\n            },\r\n            \"Ports\": [\r\n                {\r\n                    \"Protocol\": \"tcp\",\r\n                    \"TargetPort\": 3000,\r\n                    \"PublishedPort\": 3000\r\n                }\r\n            ],\r\n            \"VirtualIPs\": [\r\n                {\r\n                    \"NetworkID\": \"cmwweoiyu8ojhxsenug4s0uj9\",\r\n                    \"Addr\": \"10.255.0.9/16\"\r\n                }\r\n            ]\r\n        },\r\n        \"UpdateStatus\": {\r\n            \"StartedAt\": \"0001-01-01T00:00:00Z\",\r\n            \"CompletedAt\": \"0001-01-01T00:00:00Z\"\r\n        }\r\n    }\r\n]\r\n```\r\n\r\nHost info\r\n=====\r\n\r\n* uname\r\n\r\n```\r\nHypriotOS/armv7: pirate@pimanager in ~/swarmmode-tests/arm/arm-alpinehello on master*\r\n$ uname -a\r\nLinux pimanager 4.4.24-hypriotos-v7+ #1 SMP PREEMPT Tue Oct 11 17:15:58 UTC 2016 armv7l GNU/Linux\r\n```\r\n\r\n* docker info\r\n\r\n```\r\nHypriotOS/armv7: pirate@pimanager in ~/swarmmode-tests/arm/arm-alpinehello on master*\r\n$ docker info\r\nContainers: 7\r\n Running: 1\r\n Paused: 0\r\n Stopped: 6\r\nImages: 26\r\nServer Version: 1.12.2\r\nStorage Driver: overlay\r\n Backing Filesystem: extfs\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: overlay bridge host null\r\nSwarm: active\r\n NodeID: e6ul9drjqhtwfdcdv05p20duk\r\n Is Manager: true\r\n ClusterID: c2asemc2yxv3c88is69tgyxlk\r\n Managers: 1\r\n Nodes: 7\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.1.64\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options:\r\nKernel Version: 4.4.24-hypriotos-v7+\r\nOperating System: Raspbian GNU/Linux 8 (jessie)\r\nOSType: linux\r\nArchitecture: armv7l\r\nCPUs: 4\r\nTotal Memory: 862 MiB\r\nName: pimanager\r\nID: MLM6:5GBI:OPZK:BXX5:HZGF:4N4E:7IW4:EUIR:G7EH:TRPF:YTQW:PVZC\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nUsername: marcellodesales\r\nRegistry: https://index.docker.io/v1/\r\nInsecure Registries:\r\n 127.0.0.0/8\r\n```"}}
{"actor":{"display_login":"marcellodesales"}}