{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/9726","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/9726/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/9726/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/9726/events","html_url":"https://github.com/openshift/origin/issues/9726","id":164283611,"number":9726,"title":"oc rsync frequently doesn't return","user":{"login":"fbricon","id":148698,"avatar_url":"https://avatars.githubusercontent.com/u/148698?v=3","gravatar_id":"","url":"https://api.github.com/users/fbricon","html_url":"https://github.com/fbricon","followers_url":"https://api.github.com/users/fbricon/followers","following_url":"https://api.github.com/users/fbricon/following{/other_user}","gists_url":"https://api.github.com/users/fbricon/gists{/gist_id}","starred_url":"https://api.github.com/users/fbricon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbricon/subscriptions","organizations_url":"https://api.github.com/users/fbricon/orgs","repos_url":"https://api.github.com/users/fbricon/repos","events_url":"https://api.github.com/users/fbricon/events{/privacy}","received_events_url":"https://api.github.com/users/fbricon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/cli","name":"component/cli","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P1","name":"priority/P1","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"csrwng","id":5834976,"avatar_url":"https://avatars.githubusercontent.com/u/5834976?v=3","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},"assignees":[{"login":"csrwng","id":5834976,"avatar_url":"https://avatars.githubusercontent.com/u/5834976?v=3","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}],"milestone":null,"comments":12,"created_at":"2016-07-07T11:01:40Z","updated_at":"2016-07-22T20:20:52Z","closed_at":null,"body":"JBoss Tools OpenShift tools delegates workspace to pod synchronization to oc rsync. More often than not, the oc rsync command doesn't return, leaving the process hanging, waiting for a return code, at least on OSX 10.10.5 (Yosemite).\r\n\r\nI managed to reproduce the problem by executing the exact same command from a terminal. In that particular example, the pod is sync'ed to the local directory:\r\n\r\n```\r\n/Users/fbricon/Dev/openshift/client/1.2.0/oc rsync --user=openshift-dev --token=q35nNhR3I9KLl2ic0EdBMRgv06cQIgdwgkHfsLagEz0 --server=https://10.1.2.2:8443 --insecure-skip-tls-verify=true --exclude='.git' nodejs-example-4-d5e15:/opt/app-root/src/ -n demo /Users/fbricon/Dev/workspaces/runtime-New_configuration/.metadata/.plugins/org.jboss.ide.eclipse.as.core/demo@nodejs-example/deploy/\r\n```\r\n\r\n##### Version\r\noc v1.2.0\r\nkubernetes v1.2.0-36-g4a3f9c5\r\nrsync  version 2.6.9  protocol version 29\r\n\r\n##### Steps To Reproduce\r\n0. have OpenShift 3.2 running from the CDK 2.1\r\n1. Create an application from the nodejs-example template \r\n2. Execute an oc rsync command repeatedly\r\n3. wait for the command to return\r\n\r\n##### Current Result\r\nrsync command doesn't always return\r\n\r\n##### Expected Result\r\nrsync command should return 100% of the time\r\n\r\n##### Additional Information\r\nIn http://screencast.com/t/pTPUEVppqp4, you can see the 1st command gets stuck. After killing it, other commands work, until it gets stuck again at the end.\r\n\r\nThis issue was reported under https://issues.jboss.org/browse/JBIDE-22677\r\n\r\nSometimes, the rsync command gets stuck when rsync'ing from local to the pod\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/234646192","html_url":"https://github.com/openshift/origin/issues/9726#issuecomment-234646192","issue_url":"https://api.github.com/repos/openshift/origin/issues/9726","id":234646192,"user":{"login":"ncdc","id":354,"avatar_url":"https://avatars.githubusercontent.com/u/354?v=3","gravatar_id":"","url":"https://api.github.com/users/ncdc","html_url":"https://github.com/ncdc","followers_url":"https://api.github.com/users/ncdc/followers","following_url":"https://api.github.com/users/ncdc/following{/other_user}","gists_url":"https://api.github.com/users/ncdc/gists{/gist_id}","starred_url":"https://api.github.com/users/ncdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncdc/subscriptions","organizations_url":"https://api.github.com/users/ncdc/orgs","repos_url":"https://api.github.com/users/ncdc/repos","events_url":"https://api.github.com/users/ncdc/events{/privacy}","received_events_url":"https://api.github.com/users/ncdc/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T20:20:52Z","updated_at":"2016-07-22T20:20:52Z","body":"The thread dump shows that the remote command execution has finished (`goroutine 38 [chan send, 4 minutes]:`), but for some reason, there is still one `io.Copy` goroutine still holding the `sync.WaitGroup` open before the exec invocation can complete (`goroutine 42 [select, 4 minutes]:`). Note, the other `io.Copy` from `goroutine 39 [syscall, 4 minutes]: ` is not part of the wait group.\r\n\r\nI don't know offhand why the node would close the error stream but keep the stderr stream open (which is what's happening here).\r\n\r\nI would recommend running `oc rsync` with the env var `DEBUG=1` set, and do the same for the openshift node process. If you can reproduce this, please pastebin logs from both the rsync run and the node. And another thread dump from rsync, as well as one from the node would be useful. (To get the node thread dump, run it with the env var `OPENSHIFT_PROFILE=web`, then on the node itself curl http://localhost:6060/debug/pprof/goroutine?debug=2.)"}}
{"actor":{"display_login":"ncdc"}}