{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/14075","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/14075/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/14075/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/14075/events","html_url":"https://github.com/openshift/origin/issues/14075","id":226589028,"number":14075,"title":"Rsync via tar strategy: Cannot open: Not a directory ERROR","user":{"login":"bdshadow","id":5796973,"avatar_url":"https://avatars3.githubusercontent.com/u/5796973?v=4","gravatar_id":"","url":"https://api.github.com/users/bdshadow","html_url":"https://github.com/bdshadow","followers_url":"https://api.github.com/users/bdshadow/followers","following_url":"https://api.github.com/users/bdshadow/following{/other_user}","gists_url":"https://api.github.com/users/bdshadow/gists{/gist_id}","starred_url":"https://api.github.com/users/bdshadow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdshadow/subscriptions","organizations_url":"https://api.github.com/users/bdshadow/orgs","repos_url":"https://api.github.com/users/bdshadow/repos","events_url":"https://api.github.com/users/bdshadow/events{/privacy}","received_events_url":"https://api.github.com/users/bdshadow/received_events","type":"User","site_admin":false},"labels":[{"id":200493322,"url":"https://api.github.com/repos/openshift/origin/labels/component/cli","name":"component/cli","color":"0052cc","default":false},{"id":118251699,"url":"https://api.github.com/repos/openshift/origin/labels/kind/bug","name":"kind/bug","color":"fc2929","default":false},{"id":210151912,"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"fabianofranz","id":158611,"avatar_url":"https://avatars0.githubusercontent.com/u/158611?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianofranz","html_url":"https://github.com/fabianofranz","followers_url":"https://api.github.com/users/fabianofranz/followers","following_url":"https://api.github.com/users/fabianofranz/following{/other_user}","gists_url":"https://api.github.com/users/fabianofranz/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianofranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianofranz/subscriptions","organizations_url":"https://api.github.com/users/fabianofranz/orgs","repos_url":"https://api.github.com/users/fabianofranz/repos","events_url":"https://api.github.com/users/fabianofranz/events{/privacy}","received_events_url":"https://api.github.com/users/fabianofranz/received_events","type":"User","site_admin":false},"assignees":[{"login":"fabianofranz","id":158611,"avatar_url":"https://avatars0.githubusercontent.com/u/158611?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianofranz","html_url":"https://github.com/fabianofranz","followers_url":"https://api.github.com/users/fabianofranz/followers","following_url":"https://api.github.com/users/fabianofranz/following{/other_user}","gists_url":"https://api.github.com/users/fabianofranz/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianofranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianofranz/subscriptions","organizations_url":"https://api.github.com/users/fabianofranz/orgs","repos_url":"https://api.github.com/users/fabianofranz/repos","events_url":"https://api.github.com/users/fabianofranz/events{/privacy}","received_events_url":"https://api.github.com/users/fabianofranz/received_events","type":"User","site_admin":false},{"login":"juanvallejo","id":3902875,"avatar_url":"https://avatars2.githubusercontent.com/u/3902875?v=4","gravatar_id":"","url":"https://api.github.com/users/juanvallejo","html_url":"https://github.com/juanvallejo","followers_url":"https://api.github.com/users/juanvallejo/followers","following_url":"https://api.github.com/users/juanvallejo/following{/other_user}","gists_url":"https://api.github.com/users/juanvallejo/gists{/gist_id}","starred_url":"https://api.github.com/users/juanvallejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanvallejo/subscriptions","organizations_url":"https://api.github.com/users/juanvallejo/orgs","repos_url":"https://api.github.com/users/juanvallejo/repos","events_url":"https://api.github.com/users/juanvallejo/events{/privacy}","received_events_url":"https://api.github.com/users/juanvallejo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-05-05T14:22:42Z","updated_at":"2017-10-17T20:21:18Z","closed_at":null,"author_association":"MEMBER","body":"`oc rsync` via tar strategy is buggy\r\n\r\n##### Version\r\noc v1.4.1+3f9807a\r\nkubernetes v1.4.0+776c994\r\n\r\n##### Environment\r\nWindows (must not be important)\r\n`rsync` is deleted, only `tar` is available\r\n\r\n##### Steps To Reproduce\r\n1. create eap application in openshift, e.g. jboss-eap70-openshift\r\n2.  wait till pod is built and run\r\n3a. run rsync from pod to local\r\n`oc rsync --token=ToKeN--server=https://10.1.2.2:8443 --insecure-skip-tls-verify=true --exclude='.git' jboss-eap70-openshift-1-zn39w:/opt/eap/standalone/deployments/ -n myproject C:\\Users\\dbocharo\\dev\\runtime-New_configuration\\.metadata\\.plugins\\org.jboss.ide.eclipse.as.core\\myproject@jboss-eap70-openshift\\deploy\\`\r\n3b. run rsync from local to pod\r\n`oc rsync --token=ToKen --server=https://10.1.2.2:8443 --insecure-skip-tls-verify=true --exclude='.git' C:\\Users\\dbocharo\\dev\\runtime-New_configuration\\.metadata\\.plugins\\org.jboss.ide.eclipse.as.core\\myproject@jboss-eap70-openshift\\deploy\\ jboss-eap70-openshift-1-zn39w:/opt/eap/standalone/deployments/ -n myproject`\r\n\r\n##### Current Result\r\n3a. \r\n```bash\r\nWARNING: rsync command not found in path. Download cwRsync for Windows and add it to your PATH.\r\n./ROOT.war\r\nERROR: Error extracting file \"./ROOT.war\": open C:\\Users\\dbocharo\\dev\\runtime-New_configuration\\.metadata\\.plugins\\org.jboss.ide.eclipse.as.core\\myproject@jboss-eap70-openshift\\deploy\\ROOT.war: is a directory\r\nERROR: Error extracting tar stream\r\nIgnoring the following flags because they only apply to rsync: --exclude\r\nerror: error extracting tar at destination directory: open C:\\Users\\dbocharo\\dev\\runtime-New_configuration\\.metadata\\.plugins\\org.jboss.ide.eclipse.as.core\\myproject@jboss-eap70-openshift\\deploy\\ROOT.war: is a directory\r\n```\r\n3b.\r\n```bash\r\nWARNING: rsync command not found in path. Download cwRsync for Windows and add it to your PATH.\r\nREADME.txt\r\nROOT.war/META-INF/MANIFEST.MF\r\nROOT.war/META-INF/maven/org.jboss.quickstarts.eap/jboss-kitchensink/pom.properties\r\nROOT.war/META-INF/maven/org.jboss.quickstarts.eap/jboss-kitchensink/pom.xml\r\nROOT.war/WEB-INF/beans.xml\r\nROOT.war/WEB-INF/classes/META-INF/persistence.xml\r\nROOT.war/WEB-INF/classes/import.sql\r\nROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/controller/MemberController.class\r\nROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/data/MemberListProducer.class\r\nROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/data/MemberRepository.class\r\nROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/model/Member.class\r\nROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/rest/JaxRsActivator.class\r\nROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/rest/MemberResourceRESTService.class\r\nROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/service/MemberRegistration.class\r\nROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/util/Resources.class\r\nROOT.war/WEB-INF/faces-config.xml\r\nROOT.war/WEB-INF/kitchensink-quickstart-ds.xml\r\nROOT.war/WEB-INF/templates/default.xhtml\r\nROOT.war/index.html\r\nROOT.war/index.xhtml\r\nROOT.war/resources/css/screen.css\r\nROOT.war/resources/gfx/asidebkg.png\r\nROOT.war/resources/gfx/banner.png\r\nROOT.war/resources/gfx/bkg-blkheader.png\r\nROOT.war/resources/gfx/headerbkg.png\r\nROOT.war/resources/gfx/rhjb_eap_logo.png\r\nROOT.war.dodeploy\r\nROOT.war.isdeploying\r\nactivemq-rar.rar\r\nactivemq-rar.rar.isdeploying\r\nIgnoring the following flags because they only apply to rsync: --exclude\r\ntar: ROOT.war/META-INF/MANIFEST.MF: Cannot open: Not a directory\r\ntar: ROOT.war/META-INF/maven/org.jboss.quickstarts.eap/jboss-kitchensink/pom.properties: Cannot open: Not a directory\r\ntar: ROOT.war/META-INF/maven/org.jboss.quickstarts.eap/jboss-kitchensink/pom.xml: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/beans.xml: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/classes/META-INF/persistence.xml: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/classes/import.sql: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/controller/MemberController.class: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/data/MemberListProducer.class: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/data/MemberRepository.class: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/model/Member.class: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/rest/JaxRsActivator.class: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/rest/MemberResourceRESTService.class: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/service/MemberRegistration.class: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/util/Resources.class: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/faces-config.xml: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/kitchensink-quickstart-ds.xml: Cannot open: Not a directory\r\ntar: ROOT.war/WEB-INF/templates/default.xhtml: Cannot open: Not a directory\r\ntar: ROOT.war/index.html: Cannot open: Not a directory\r\ntar: ROOT.war/index.xhtml: Cannot open: Not a directory\r\ntar: ROOT.war/resources/css/screen.css: Cannot open: Not a directory\r\ntar: ROOT.war/resources/gfx/asidebkg.png: Cannot open: Not a directory\r\ntar: ROOT.war/resources/gfx/banner.png: Cannot open: Not a directory\r\ntar: ROOT.war/resources/gfx/bkg-blkheader.png: Cannot open: Not a directory\r\ntar: ROOT.war/resources/gfx/headerbkg.png: Cannot open: Not a directory\r\ntar: ROOT.war/resources/gfx/rhjb_eap_logo.png: Cannot open: Not a directory\r\ntar: ROOT.war.dodeploy: time stamp 2017-05-05 14:09:19 is 77342.946681899 s in the future\r\ntar: Exiting with failure status due to previous errors\r\nerror: error extracting tar at destination directory: command terminated with exit code 2\r\n```\r\n##### Expected Result\r\nrsync is successful\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/337358311","html_url":"https://github.com/openshift/origin/issues/14075#issuecomment-337358311","issue_url":"https://api.github.com/repos/openshift/origin/issues/14075","id":337358311,"user":{"login":"fabianofranz","id":158611,"avatar_url":"https://avatars0.githubusercontent.com/u/158611?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianofranz","html_url":"https://github.com/fabianofranz","followers_url":"https://api.github.com/users/fabianofranz/followers","following_url":"https://api.github.com/users/fabianofranz/following{/other_user}","gists_url":"https://api.github.com/users/fabianofranz/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianofranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianofranz/subscriptions","organizations_url":"https://api.github.com/users/fabianofranz/orgs","repos_url":"https://api.github.com/users/fabianofranz/repos","events_url":"https://api.github.com/users/fabianofranz/events{/privacy}","received_events_url":"https://api.github.com/users/fabianofranz/received_events","type":"User","site_admin":false},"created_at":"2017-10-17T20:21:18Z","updated_at":"2017-10-17T20:21:18Z","author_association":"MEMBER","body":"I was unable to reproduce this on 3.6.x using a similar environment: on Windows, without rsync installed, with a ROOT.war directory as part of the synced structured, eap pod, both to and from pod.\r\n\r\nSince it's unlikely the fix will be ported to 1.4 I'm closing this, but feel free to reopen with more information about how to reproduce it if it still happens on a recent (3.5+) version."}}
{"actor":{"display_login":"fabianofranz"}}