{"action":"created","issue":{"url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/307","repository_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy","labels_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/307/comments","events_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/307/events","html_url":"https://github.com/vfarcic/docker-flow-proxy/issues/307","id":247378372,"number":307,"title":"Containers name resolution issue when running proxy","user":{"login":"brunifrancesco","id":6099106,"avatar_url":"https://avatars0.githubusercontent.com/u/6099106?v=4","gravatar_id":"","url":"https://api.github.com/users/brunifrancesco","html_url":"https://github.com/brunifrancesco","followers_url":"https://api.github.com/users/brunifrancesco/followers","following_url":"https://api.github.com/users/brunifrancesco/following{/other_user}","gists_url":"https://api.github.com/users/brunifrancesco/gists{/gist_id}","starred_url":"https://api.github.com/users/brunifrancesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunifrancesco/subscriptions","organizations_url":"https://api.github.com/users/brunifrancesco/orgs","repos_url":"https://api.github.com/users/brunifrancesco/repos","events_url":"https://api.github.com/users/brunifrancesco/events{/privacy}","received_events_url":"https://api.github.com/users/brunifrancesco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-02T12:51:49Z","updated_at":"2017-08-02T16:07:39Z","closed_at":null,"body":"---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\n\r\n**Container names are not resolved when running services in SWARM Mode**\r\n\r\nRun *proxy* and *swarm-listener* services is not working.\r\nIt seems proxy (deployed in a different node) is not able to resolve a container name.\r\n\r\n**Steps to reproduce the issue:**\r\n\r\n1. init swarm\r\n2. add worker node\r\n3. create the overlay network\r\n4. add services attached to overlay network:\r\n\r\n       docker service create --name swarm-listener \\\r\n        --network rh_overlay \\\r\n        --mount \"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock\" \\\r\n        -e DF_NOTIFY_CREATE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/reconfigure \\\r\n        -e DF_NOTIFY_REMOVE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/remove \\\r\n        --constraint 'node.role==manager' \\\r\n        vfarcic/docker-flow-swarm-listener\r\n\r\n       docker service create --name proxy \\\r\n        -p 80:80 \\\r\n        -p 443:443 \\\r\n        --network rh_overlay \\\r\n        -e MODE=swarm \\\r\n        -e LISTENER_ADDRESS=swarm-listener \\\r\n        vfarcic/docker-flow-proxy\r\n\r\n**Describe the results you received:**\r\n\r\nProxy service is unable to resolve the name *swarm-listener*:\r\n\r\n> Fetching config from swarm listener failed: Get http://swarm-listener:8080/v1/docker-flow-swarm-listener/get-services: dial tcp: lookup swarm-listener on 127.0.0.11:53: no such host.\r\n\r\n\r\n\r\n**Describe the results you expected:**\r\n\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nDocker version:\r\n\r\n    Client:\r\n    Version:      17.06.0-ce\r\n    API version:  1.30\r\n    Go version:   go1.8.3\r\n    Git commit:   02c1d87\r\n    Built:        Fri Jun 23 21:23:31 2017\r\n    OS/Arch:      linux/amd64\r\n\r\n    Server:\r\n    Version:      17.06.0-ce\r\n    API version:  1.30 (minimum version 1.12)\r\n    Go version:   go1.8.3\r\n    Git commit:   02c1d87\r\n    Built:        Fri Jun 23 21:19:04 2017\r\n    OS/Arch:      linux/amd64\r\n    Experimental: false\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\nUbuntu Server 16.04\r\n"},"comment":{"url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/comments/319719642","html_url":"https://github.com/vfarcic/docker-flow-proxy/issues/307#issuecomment-319719642","issue_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/307","id":319719642,"user":{"login":"vfarcic","id":5716227,"avatar_url":"https://avatars2.githubusercontent.com/u/5716227?v=4","gravatar_id":"","url":"https://api.github.com/users/vfarcic","html_url":"https://github.com/vfarcic","followers_url":"https://api.github.com/users/vfarcic/followers","following_url":"https://api.github.com/users/vfarcic/following{/other_user}","gists_url":"https://api.github.com/users/vfarcic/gists{/gist_id}","starred_url":"https://api.github.com/users/vfarcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vfarcic/subscriptions","organizations_url":"https://api.github.com/users/vfarcic/orgs","repos_url":"https://api.github.com/users/vfarcic/repos","events_url":"https://api.github.com/users/vfarcic/events{/privacy}","received_events_url":"https://api.github.com/users/vfarcic/received_events","type":"User","site_admin":false},"created_at":"2017-08-02T16:07:38Z","updated_at":"2017-08-02T16:07:38Z","body":"The good news is that the syntax for the commands you executed is correct. The bad news is that it worked in my cluster meaning that the problem is not directly related to DFP. The cause of the problem is probably in the firewall. \r\n\r\nFrom your comments on Slack, seems that swarm listener can communicate with the proxy. Can you check whether the same is true the other way around? Enter into the proxy container and execute:\r\n\r\n```bash\r\napk add --update drill\r\n\r\ndrill swarm-listener\r\n```\r\n\r\nPlease paste the output here. The IP should be 127.0.0.11."}}
{"actor":{"display_login":"vfarcic"}}