{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/36568","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/36568/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/36568/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/36568/events","html_url":"https://github.com/saltstack/salt/issues/36568","id":179162036,"number":36568,"title":"cp.push remove_source problem","user":{"login":"lkx007","id":22045278,"avatar_url":"https://avatars.githubusercontent.com/u/22045278?v=3","gravatar_id":"","url":"https://api.github.com/users/lkx007","html_url":"https://github.com/lkx007","followers_url":"https://api.github.com/users/lkx007/followers","following_url":"https://api.github.com/users/lkx007/following{/other_user}","gists_url":"https://api.github.com/users/lkx007/gists{/gist_id}","starred_url":"https://api.github.com/users/lkx007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkx007/subscriptions","organizations_url":"https://api.github.com/users/lkx007/orgs","repos_url":"https://api.github.com/users/lkx007/repos","events_url":"https://api.github.com/users/lkx007/events{/privacy}","received_events_url":"https://api.github.com/users/lkx007/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Fixed%20Pending%20Verification","name":"Fixed Pending Verification","color":"d4c5f9"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/TEAM%20Core","name":"TEAM Core","color":"A9A9A9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":3188,"closed_issues":4029,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-09-27T05:52:16Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-09-26T07:57:22Z","updated_at":"2016-09-27T06:02:04Z","closed_at":null,"body":"### I can use cp.push properly like this:\r\n[root@localhost salt]# salt 'worker' cp.push /root/a \r\nworker:\r\n    True\r\n[root@localhost salt]# \r\n\r\n### But when I add remove_source error occurs as follows:\r\n[root@localhost salt]# salt 'worker' cp.push /root/a remove_source=True\r\nworker:\r\n    The minion function caused an exception: Traceback (most recent call last):\r\n      File \"/usr/lib/python2.7/site-packages/salt/minion.py\", line 1332, in _thread_return\r\n        return_data = executor.execute()\r\n      File \"/usr/lib/python2.7/site-packages/salt/executors/direct_call.py\", line 28, in execute\r\n        return self.func(*self.args, **self.kwargs)\r\n      File \"/usr/lib/python2.7/site-packages/salt/modules/cp.py\", line 814, in push\r\n        salt.utils.rm_rf(path)\r\n      File \"/usr/lib/python2.7/site-packages/salt/utils/__init__.py\", line 1870, in rm_rf\r\n        shutil.rmtree(path, onerror=_onerror)\r\n      File \"/usr/lib64/python2.7/shutil.py\", line 239, in rmtree\r\n        onerror(os.listdir, path, sys.exc_info())\r\n      File \"/usr/lib64/python2.7/shutil.py\", line 237, in rmtree\r\n        names = os.listdir(path)\r\n    OSError: [Errno 20] Not a directory: '/root/a'\r\n[root@localhost salt]# \r\n\r\n### Versions Report\r\n[root@localhost salt]# salt --versions-report\r\nSalt Version:\r\n           Salt: 2016.3.3\r\n \r\nDependency Versions:\r\n           cffi: 1.7.0\r\n       cherrypy: 3.2.2\r\n       dateutil: 2.5.3\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n         Jinja2: 2.7.2\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: 0.21.1\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.8\r\n   mysql-python: Not Installed\r\n      pycparser: 2.14\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n         Python: 2.7.5 (default, Aug 18 2016, 15:58:25)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 15.3.0\r\n           RAET: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.1.4\r\n \r\nSystem Versions:\r\n           dist: centos 7.2.1511 Core\r\n        machine: x86_64\r\n        release: 3.10.0-327.el7.x86_64\r\n         system: Linux\r\n        version: CentOS Linux 7.2.1511 Core\r\n \r\n[root@localhost salt]# \r\n\r\n###  Can anyone helps me ?? thanks a lot..\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/249773953","html_url":"https://github.com/saltstack/salt/issues/36568#issuecomment-249773953","issue_url":"https://api.github.com/repos/saltstack/salt/issues/36568","id":249773953,"user":{"login":"cachedout","id":111616,"avatar_url":"https://avatars.githubusercontent.com/u/111616?v=3","gravatar_id":"","url":"https://api.github.com/users/cachedout","html_url":"https://github.com/cachedout","followers_url":"https://api.github.com/users/cachedout/followers","following_url":"https://api.github.com/users/cachedout/following{/other_user}","gists_url":"https://api.github.com/users/cachedout/gists{/gist_id}","starred_url":"https://api.github.com/users/cachedout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachedout/subscriptions","organizations_url":"https://api.github.com/users/cachedout/orgs","repos_url":"https://api.github.com/users/cachedout/repos","events_url":"https://api.github.com/users/cachedout/events{/privacy}","received_events_url":"https://api.github.com/users/cachedout/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T06:02:04Z","updated_at":"2016-09-27T06:02:04Z","body":"@lkx007 Unfortunately, I still don't have access to a Windows machine to do any development on. @twangboy or @UtahDave will have to look at this."}}
{"actor":{"display_login":"cachedout"}}