{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/26460","labels_url":"https://api.github.com/repos/saltstack/salt/issues/26460/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/26460/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/26460/events","html_url":"https://github.com/saltstack/salt/issues/26460","id":101903997,"number":26460,"title":"salt-call winrepo.update_git_repos fails with \"Key Error: 'git.latest'\" on masterless minion","user":{"login":"TheBigBear","id":471105,"avatar_url":"https://avatars.githubusercontent.com/u/471105?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBigBear","html_url":"https://github.com/TheBigBear","followers_url":"https://api.github.com/users/TheBigBear/followers","following_url":"https://api.github.com/users/TheBigBear/following{/other_user}","gists_url":"https://api.github.com/users/TheBigBear/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBigBear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBigBear/subscriptions","organizations_url":"https://api.github.com/users/TheBigBear/orgs","repos_url":"https://api.github.com/users/TheBigBear/repos","events_url":"https://api.github.com/users/TheBigBear/events{/privacy}","received_events_url":"https://api.github.com/users/TheBigBear/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/Execution%20Module","name":"Execution Module","color":"006b75"},{"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/Windows","name":"Windows","color":"006b75"}],"state":"closed","locked":false,"assignee":{"login":"terminalmage","id":328598,"avatar_url":"https://avatars.githubusercontent.com/u/328598?v=3","gravatar_id":"","url":"https://api.github.com/users/terminalmage","html_url":"https://github.com/terminalmage","followers_url":"https://api.github.com/users/terminalmage/followers","following_url":"https://api.github.com/users/terminalmage/following{/other_user}","gists_url":"https://api.github.com/users/terminalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/terminalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terminalmage/subscriptions","organizations_url":"https://api.github.com/users/terminalmage/orgs","repos_url":"https://api.github.com/users/terminalmage/repos","events_url":"https://api.github.com/users/terminalmage/events{/privacy}","received_events_url":"https://api.github.com/users/terminalmage/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/63","html_url":"https://github.com/saltstack/salt/milestones/Be%20-1","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/63/labels","id":1259068,"number":63,"title":"Be -1","description":"","creator":{"login":"rallytime","id":6547906,"avatar_url":"https://avatars.githubusercontent.com/u/6547906?v=3","gravatar_id":"","url":"https://api.github.com/users/rallytime","html_url":"https://github.com/rallytime","followers_url":"https://api.github.com/users/rallytime/followers","following_url":"https://api.github.com/users/rallytime/following{/other_user}","gists_url":"https://api.github.com/users/rallytime/gists{/gist_id}","starred_url":"https://api.github.com/users/rallytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallytime/subscriptions","organizations_url":"https://api.github.com/users/rallytime/orgs","repos_url":"https://api.github.com/users/rallytime/repos","events_url":"https://api.github.com/users/rallytime/events{/privacy}","received_events_url":"https://api.github.com/users/rallytime/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":31,"state":"closed","created_at":"2015-08-17T20:17:04Z","updated_at":"2015-09-15T23:15:37Z","due_on":"2015-08-31T06:00:00Z","closed_at":"2015-09-15T23:15:37Z"},"comments":23,"created_at":"2015-08-19T14:14:25Z","updated_at":"2015-09-16T17:04:36Z","closed_at":"2015-08-21T07:54:35Z","body":"I have a masterless minion and when I invoke:\r\n```salt-call --local winrepo.update_git_repos``` I get:\r\n\r\n```\r\n[ERROR   ] An un-handled exception was caught by salt's global exception handler:\r\nKeyError: 'git.latest'\r\n```\r\nFull ```debug``` level log is:\r\n```\r\n[DEBUG   ] Reading configuration from c:\\salt\\conf\\minion\r\n[DEBUG   ] Configuration file path: c:\\salt\\conf\\minion\r\n[DEBUG   ] Reading configuration from c:\\salt\\conf\\minion\r\n[DEBUG   ] LazyLoaded jinja.render\r\n[DEBUG   ] LazyLoaded yaml.render\r\n[DEBUG   ] LazyLoaded jinja.render\r\n[DEBUG   ] LazyLoaded yaml.render\r\n[DEBUG   ] LazyLoaded config.get\r\n[DEBUG   ] Error loading module.ifttt: IFTTT Secret Key Unavailable, not loading.\r\n[DEBUG   ] Error loading module.npm: npm execution module could not be loaded because the npm binary could not be located\r\n[DEBUG   ] Error loading module.tls: ['PyOpenSSL version 0.10 or later must be installed before this module can be used.']\r\n[DEBUG   ] Error loading module.victorops: No VictorOps api key found.\r\n[DEBUG   ] LazyLoaded winrepo.update_git_repos\r\n[DEBUG   ] Error loading module.ipmi: No module named pyghmi.ipmi\r\n[DEBUG   ] SMBIOS: neither dmidecode nor smbios found!\r\n[DEBUG   ] Could not LazyLoad git.latest\r\n[ERROR   ] An un-handled exception was caught by salt's global exception handler:\r\nKeyError: 'git.latest'\r\nTraceback (most recent call last):\r\n  File \"c:\\python27\\scripts\\salt-call-script.py\", line 9, in <module>\r\n    load_entry_point('salt==2015.8.0', 'console_scripts', 'salt-call')()\r\n  File \"c:\\salt-dev\\salt\\salt\\scripts.py\", line 224, in salt_call\r\n    client.run()\r\n  File \"c:\\salt-dev\\salt\\salt\\cli\\call.py\", line 50, in run\r\n    caller.run()\r\n  File \"c:\\salt-dev\\salt\\salt\\cli\\caller.py\", line 133, in run\r\n    ret = self.call()\r\n  File \"c:\\salt-dev\\salt\\salt\\cli\\caller.py\", line 196, in call\r\n    ret['return'] = func(*args, **kwargs)\r\n  File \"c:\\salt-dev\\salt\\salt\\modules\\win_repo.py\", line 150, in update_git_repos\r\n    result = __salt__['git.latest'](remote,\r\n  File \"c:\\salt-dev\\salt\\salt\\utils\\lazy.py\", line 93, in __getitem__\r\n    raise KeyError(key)\r\nKeyError: 'git.latest'\r\nTraceback (most recent call last):\r\n  File \"c:\\python27\\scripts\\salt-call-script.py\", line 9, in <module>\r\n    load_entry_point('salt==2015.8.0', 'console_scripts', 'salt-call')()\r\n  File \"c:\\salt-dev\\salt\\salt\\scripts.py\", line 224, in salt_call\r\n    client.run()\r\n  File \"c:\\salt-dev\\salt\\salt\\cli\\call.py\", line 50, in run\r\n    caller.run()\r\n  File \"c:\\salt-dev\\salt\\salt\\cli\\caller.py\", line 133, in run\r\n    ret = self.call()\r\n  File \"c:\\salt-dev\\salt\\salt\\cli\\caller.py\", line 196, in call\r\n    ret['return'] = func(*args, **kwargs)\r\n  File \"c:\\salt-dev\\salt\\salt\\modules\\win_repo.py\", line 150, in update_git_repos\r\n    result = __salt__['git.latest'](remote,\r\n  File \"c:\\salt-dev\\salt\\salt\\utils\\lazy.py\", line 93, in __getitem__\r\n    raise KeyError(key)\r\nKeyError: 'git.latest'\r\n```\r\nMy minion is: ```2015.8.0``` and the versions-report is:\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: 0.21.1\r\n           Mako: 1.0.1\r\n         PyYAML: 3.11\r\n          PyZMQ: 14.6.0\r\n         Python: 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)]\r\n           RAET: 0.6.3\r\n        Tornado: 4.2\r\n            ZMQ: 4.0.5\r\n          ioflo: 1.3.8\r\n        libnacl: 1.4.3\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.6\r\n       pycrypto: 2.6.1\r\n        timelib: Not Installed\r\n \r\nSystem Versions:\r\n           dist:   \r\n        machine: AMD64\r\n        release: 8\r\n         system: 8 6.2.9200  Multiprocessor Free\r\n```\r\nother relevant lines from my windows minion conf file might be:\r\n```\r\nfile_client: local\r\nwinrepo_cachefile: c:\\\\salt\\srv\\salt\\win\\repo\\winrepo.p\r\nwinrepo_dir: c:\\\\salt\\srv\\salt\\win\\repo\r\n\r\nwinrepo_remotes:\r\n  - 'https://github.com/saltstack/salt-winrepo.git'\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/140805307","html_url":"https://github.com/saltstack/salt/issues/26460#issuecomment-140805307","issue_url":"https://api.github.com/repos/saltstack/salt/issues/26460","id":140805307,"user":{"login":"TheBigBear","id":471105,"avatar_url":"https://avatars.githubusercontent.com/u/471105?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBigBear","html_url":"https://github.com/TheBigBear","followers_url":"https://api.github.com/users/TheBigBear/followers","following_url":"https://api.github.com/users/TheBigBear/following{/other_user}","gists_url":"https://api.github.com/users/TheBigBear/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBigBear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBigBear/subscriptions","organizations_url":"https://api.github.com/users/TheBigBear/orgs","repos_url":"https://api.github.com/users/TheBigBear/repos","events_url":"https://api.github.com/users/TheBigBear/events{/privacy}","received_events_url":"https://api.github.com/users/TheBigBear/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T17:04:36Z","updated_at":"2015-09-16T17:04:36Z","body":"@liyingbo if you do end up creating a salt for windows winrepo sls pkg file for ```nginx``` please be sure to submit it to the ```salt-winrepo``` git repo at either https://github.com/saltstack/salt-winrepo or https://github.com/saltstack/salt-winrepo-ng . You would be fulfilling an old request and closing a long outstanding issue. https://github.com/saltstack/salt-winrepo/issues/29 Thanks in advance. "}}