{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/27205","labels_url":"https://api.github.com/repos/saltstack/salt/issues/27205/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/27205/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/27205/events","html_url":"https://github.com/saltstack/salt/issues/27205","id":107069917,"number":27205,"title":"In git.config_set state CommandExecutionError occurs when global=True when using salt 2015.8.0","user":{"login":"msummers42","id":8331623,"avatar_url":"https://avatars.githubusercontent.com/u/8331623?v=3","gravatar_id":"","url":"https://api.github.com/users/msummers42","html_url":"https://github.com/msummers42","followers_url":"https://api.github.com/users/msummers42/followers","following_url":"https://api.github.com/users/msummers42/following{/other_user}","gists_url":"https://api.github.com/users/msummers42/gists{/gist_id}","starred_url":"https://api.github.com/users/msummers42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msummers42/subscriptions","organizations_url":"https://api.github.com/users/msummers42/orgs","repos_url":"https://api.github.com/users/msummers42/repos","events_url":"https://api.github.com/users/msummers42/events{/privacy}","received_events_url":"https://api.github.com/users/msummers42/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/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P3","name":"P3","color":"0a3d77"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/State%20Module","name":"State Module","color":"006b75"}],"state":"open","locked":false,"assignee":null,"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":2539,"closed_issues":2608,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-09-18T16:25:14Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-09-17T20:40:22Z","updated_at":"2015-09-18T16:25:52Z","closed_at":null,"body":"We see CommandExecutionError, reproducible using the contrived state below, with salt-ssh-2015.8.0, 100% of the time, on a Linux minion. The same error occurs for any state using git.config_set. This appears to be a result of this line https://github.com/saltstack/salt/blob/develop/salt/states/git.py#L1923 or so, where the CWD is set rather oddly to a directory named 'global'. It is unclear to me why that is the case.\r\n\r\nPlease let me know if I can provide any further information. Thanks!\r\n\r\n```\r\njackb-gitconfig-name:\r\n  git.config_set:\r\n    - name: user.name\r\n    - value: ' Jack Black'\r\n    - global: True\r\n    - user: jackb\r\n```\r\n\r\n```\r\nmy-git-config-minion-yay:\r\n----------\r\n          ID: jackb-gitconfig-name\r\n    Function: git.config_set\r\n        Name: user.name\r\n      Result: False\r\n     Comment: An exception occurred in this state: Traceback (most recent call last):\r\n                File \"/tmp/.foodiddle_2e8e09_salt/salt/state.py\", line 1591, in call                                                    \r\n                  **cdata['kwargs'])                                                                                                 \r\n                File \"/tmp/.foodiddle_2e8e09_salt/salt/states/git.py\", line 1927, in config_set                                         \r\n                  **{'all': True}                                                                                                    \r\n                File \"/tmp/.foodiddle_2e8e09_salt/salt/modules/git.py\", line 865, in config_get                                         \r\n                  **kwargs)                                                                                                          \r\n                File \"/tmp/.foodiddle_2e8e09_salt/salt/modules/git.py\", line 79, in _config_getter                                      \r\n                  failhard=False)                                                                                                    \r\n                File \"/tmp/.foodiddle_2e8e09_salt/salt/modules/git.py\", line 217, in _git_run                                           \r\n                  **kwargs)                                                                                                          \r\n                File \"/tmp/.foodiddle_2e8e09_salt/salt/modules/cmdmod.py\", line 1550, in run_all                                        \r\n                  use_vt=use_vt)                                                                                                     \r\n                File \"/tmp/.foodiddle_2e8e09_salt/salt/modules/cmdmod.py\", line 421, in _run                                            \r\n                  .format(cwd)                                                                                                       \r\n              CommandExecutionError: Specified cwd '/home/jackb/global' either not absolute or does not exist                     \r\n     Started: 19:54:30.901818\r\n    Duration: 27.785 ms\r\n     Changes:\r\n```\r\n\r\nAlso, I should note that salt-ssh --versions-report does not output the correct data for at least one dependency (python-gnupg. I have noted versions to the right of where it failed. salt-ssh is currently installed in a python-2.7 virtualenv using 'pip install salt-ssh'\r\n\r\n```\r\nSalt Version:\r\n           Salt: 2015.8.0\r\n \r\nDependency Versions:\r\n         Jinja2: 2.7.3\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: Not Installed\r\n         Python: 2.7.9 (default, Dec 30 2014, 09:52:01)\r\n           RAET: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: Not Installed\r\n           cffi: 1.1.2\r\n       cherrypy: Not Installed\r\n       dateutil: 2.4.2\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n        libnacl: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.6\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-gnupg: Not Installed  python-gnupg (0.3.7)\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n \r\nSystem Versions:\r\n           dist: gentoo 2.2 \r\n        machine: x86_64\r\n        release: 4.1.6-hardened-r2\r\n         system: Gentoo Base System 2.2\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/141498680","html_url":"https://github.com/saltstack/salt/issues/27205#issuecomment-141498680","issue_url":"https://api.github.com/repos/saltstack/salt/issues/27205","id":141498680,"user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T16:25:52Z","updated_at":"2015-09-18T16:25:52Z","body":"@msummers42, thanks for the report.  Will you create a separate issue for the salt-ssh version problem?\r\n\r\n@terminalmage"}}