{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/11143","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/11143/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/11143/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/11143/events","html_url":"https://github.com/openshift/origin/issues/11143","id":179863698,"number":11143,"title":"oc cluster up: should check for existing/accessibility of /var/run/docker.sock on remote system","user":{"login":"jawnsy","id":52710,"avatar_url":"https://avatars3.githubusercontent.com/u/52710?v=4","gravatar_id":"","url":"https://api.github.com/users/jawnsy","html_url":"https://github.com/jawnsy","followers_url":"https://api.github.com/users/jawnsy/followers","following_url":"https://api.github.com/users/jawnsy/following{/other_user}","gists_url":"https://api.github.com/users/jawnsy/gists{/gist_id}","starred_url":"https://api.github.com/users/jawnsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jawnsy/subscriptions","organizations_url":"https://api.github.com/users/jawnsy/orgs","repos_url":"https://api.github.com/users/jawnsy/repos","events_url":"https://api.github.com/users/jawnsy/events{/privacy}","received_events_url":"https://api.github.com/users/jawnsy/received_events","type":"User","site_admin":false},"labels":[{"id":205903814,"url":"https://api.github.com/repos/openshift/origin/labels/area/usability","name":"area/usability","color":"006b75","default":false},{"id":200493322,"url":"https://api.github.com/repos/openshift/origin/labels/component/cli","name":"component/cli","color":"0052cc","default":false},{"id":118251701,"url":"https://api.github.com/repos/openshift/origin/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb","default":false},{"id":858447969,"url":"https://api.github.com/repos/openshift/origin/labels/lifecycle/rotten","name":"lifecycle/rotten","color":"604460","default":false},{"id":210152331,"url":"https://api.github.com/repos/openshift/origin/labels/priority/P3","name":"priority/P3","color":"fad8c7","default":false}],"state":"open","locked":false,"assignee":{"login":"jawnsy","id":52710,"avatar_url":"https://avatars3.githubusercontent.com/u/52710?v=4","gravatar_id":"","url":"https://api.github.com/users/jawnsy","html_url":"https://github.com/jawnsy","followers_url":"https://api.github.com/users/jawnsy/followers","following_url":"https://api.github.com/users/jawnsy/following{/other_user}","gists_url":"https://api.github.com/users/jawnsy/gists{/gist_id}","starred_url":"https://api.github.com/users/jawnsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jawnsy/subscriptions","organizations_url":"https://api.github.com/users/jawnsy/orgs","repos_url":"https://api.github.com/users/jawnsy/repos","events_url":"https://api.github.com/users/jawnsy/events{/privacy}","received_events_url":"https://api.github.com/users/jawnsy/received_events","type":"User","site_admin":false},"assignees":[{"login":"jawnsy","id":52710,"avatar_url":"https://avatars3.githubusercontent.com/u/52710?v=4","gravatar_id":"","url":"https://api.github.com/users/jawnsy","html_url":"https://github.com/jawnsy","followers_url":"https://api.github.com/users/jawnsy/followers","following_url":"https://api.github.com/users/jawnsy/following{/other_user}","gists_url":"https://api.github.com/users/jawnsy/gists{/gist_id}","starred_url":"https://api.github.com/users/jawnsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jawnsy/subscriptions","organizations_url":"https://api.github.com/users/jawnsy/orgs","repos_url":"https://api.github.com/users/jawnsy/repos","events_url":"https://api.github.com/users/jawnsy/events{/privacy}","received_events_url":"https://api.github.com/users/jawnsy/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-09-28T19:22:21Z","updated_at":"2018-03-12T15:13:08Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"You can bind the docker daemon to a TCP socket, so that it can be used over the network, using the `-H` flag, this means the daemon will no longer listen on the default UNIX socket `/var/run/docker.sock`.\n\nFor example:\n\n`docker daemon -H tcp://0.0.0.0:2375` listens on a TCP port **only**\n`docker daemon` listens on a Unix domain socket **only**\n`docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock` listens on both a TCP port and domain socket\n##### Version\n\norigin 1.3.0 final release tarball (openshift-origin-client-tools-v1.3.0-3ab7af3d097b57f933eccef684a714f2368804e7-linux-64bit):\n\n```\noc v1.3.0\nkubernetes v1.3.0+52492b4\nopenshift v1.3.0\nkubernetes v1.3.0+52492b4\n```\n##### Steps To Reproduce\n1. Set options in `/etc/sysconfig/docker` and restart the daemon: `-H tcp://0.0.0.0:2375` and `--insecure-registry 172.30.0.0/16`\n2. From another machine, download the `oc` tarball\n3. Set your `DOCKER_HOST` environment variable to point to the first machine (`export DOCKER_HOST=tcp://1.2.3.4:2375`)\n4. Check connectivity using `docker info`\n5. Run `oc cluster up`, which correctly runs against the remote machine, but errors out unless the remote machine is listening on the docker socket\n##### Current Result\n\n```\nFAIL\n   Error: cannot access master readiness URL https://xxx:8443/healthz/ready\n   Details:\n     Last 10 lines of \"origin\" container log:\n     I0928 18:32:54.607640    4952 log.go:11] skydns: ready for queries on cluster.local. for udp4://0.0.0.0:8053 [rcache 0]\n     I0928 18:32:54.706102    4952 run_components.go:223] DNS listening at 0.0.0.0:8053\n     I0928 18:32:54.709474    4952 start_master.go:544] Controllers starting (*)\n     E0928 18:32:54.711045    4952 util.go:45] Metric for serviceaccount_controller already registered\n     I0928 18:32:54.712827    4952 docker.go:329] Start docker client with request timeout=2m0s\n     I0928 18:32:54.777164    4952 start_node.go:298] Starting node xxx (v1.3.0)\n     I0928 18:32:54.778955    4952 start_node.go:307] Connecting to API server https://xxx:8443\n     I0928 18:32:54.790540    4952 docker.go:309] Connecting to docker on unix:///var/run/docker.sock\n     I0928 18:32:54.790569    4952 docker.go:329] Start docker client with request timeout=0\n     F0928 18:32:54.790618    4952 node.go:169] error: No Docker socket found at /var/run/docker.sock. Have you started the Docker daemon?\n```\n\nA solution is to ensure that the daemon still listens on /var/run/docker.sock by specifying: `-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock`.\n##### Expected Result\n\nIt would be nice if `oc cluster up` detected that there is nothing listening on `/var/run/docker.sock` on the docker host and provided an appropriate error message, rather than failing at node startup time.\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/372344749","html_url":"https://github.com/openshift/origin/issues/11143#issuecomment-372344749","issue_url":"https://api.github.com/repos/openshift/origin/issues/11143","id":372344749,"user":{"login":"csrwng","id":5834976,"avatar_url":"https://avatars1.githubusercontent.com/u/5834976?v=4","gravatar_id":"","url":"https://api.github.com/users/csrwng","html_url":"https://github.com/csrwng","followers_url":"https://api.github.com/users/csrwng/followers","following_url":"https://api.github.com/users/csrwng/following{/other_user}","gists_url":"https://api.github.com/users/csrwng/gists{/gist_id}","starred_url":"https://api.github.com/users/csrwng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csrwng/subscriptions","organizations_url":"https://api.github.com/users/csrwng/orgs","repos_url":"https://api.github.com/users/csrwng/repos","events_url":"https://api.github.com/users/csrwng/events{/privacy}","received_events_url":"https://api.github.com/users/csrwng/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T15:13:08Z","updated_at":"2018-03-12T15:13:08Z","author_association":"CONTRIBUTOR","body":"/close"}}
{"actor":{"display_login":"csrwng"}}