{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/10948","labels_url":"https://api.github.com/repos/saltstack/salt/issues/10948/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/10948/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/10948/events","html_url":"https://github.com/saltstack/salt/issues/10948","id":28745316,"number":10948,"title":"pkg.install and pkg.available_version on windows minion to SL master do not seem to behave according to docs.","user":{"login":"Gehn","id":447766,"avatar_url":"https://avatars.githubusercontent.com/u/447766?v=3","gravatar_id":"","url":"https://api.github.com/users/Gehn","html_url":"https://github.com/Gehn","followers_url":"https://api.github.com/users/Gehn/followers","following_url":"https://api.github.com/users/Gehn/following{/other_user}","gists_url":"https://api.github.com/users/Gehn/gists{/gist_id}","starred_url":"https://api.github.com/users/Gehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gehn/subscriptions","organizations_url":"https://api.github.com/users/Gehn/orgs","repos_url":"https://api.github.com/users/Gehn/repos","events_url":"https://api.github.com/users/Gehn/events{/privacy}","received_events_url":"https://api.github.com/users/Gehn/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":"eb6420"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Windows","name":"Windows","color":"fef2c0"}],"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":2053,"closed_issues":1678,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-03-17T21:16:53Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2014-03-04T22:02:43Z","updated_at":"2015-03-17T22:07:17Z","closed_at":null,"body":"This problem seemed very similar to behavior specified on #4630 and the linked #6894, and while the latter was resolved via a typo, I did not see anything that would be relevant in this situation?  (Could be totally blind, thanks in advance for any help you can give.)  Please let me know if there is any other information I can provide to facilitate this.\r\n\r\nMaster: (sl 6.2)\r\nroot@slprototype:/srv/salt/repositories/win>salt --versions-report\r\n           Salt: 0.17.5\r\n\r\nMinion: (win server 2k8)\r\nC:\\salt>salt --versions-report\r\n           Salt: 0.17.5-52-g2d4772c\r\n\r\n\r\nFollowing the tutorial specified at:\r\nhttp://docs.saltstack.com/ref/windows-package-manager.html\r\n\r\n/etc/salt/master has all instances of\r\n/srv/salt/win/repo changed to /srv/salt/repositories/win\r\n\r\nin /srv/salt/repositories/win/firefox/init.sls:\r\n```\r\nfirefox:\r\n  27.0.1:\r\n    installer: 'salt://repositories/win/firefox/Firefox Setup Stub 27.0.1.exe'\r\n    full_name: Mozilla Firefox 27.0.1 (x86 en-US)\r\n    locale: en_US\r\n    reboot: False\r\n    install_flags: ' -ms'\r\n    uninstaller: '%ProgramFiles(x86)%/Mozilla Firefox/uninstall/helper.exe'\r\n    uninstall_flags: ' /S'\r\n```\r\n(stolen from tutorial, modified for most up to date version, the installer is local in that directory.)\r\n```\r\nroot@slprototype:/srv/salt/repositories/win>salt-run winrepo.genrepo\r\n{'name_map': {'Mozilla Firefox 27.0.1 (x86 en-US)': 'firefox',\r\n              'Python 2.7.6 (64-bit)': 'python',\r\n              'Salt Minion 0.17.5-2': 'salt-minion'},\r\n 'repo': {'firefox': {'27.0.1': {'full_name': 'Mozilla Firefox 27.0.1 (x86 en-US)',\r\n                                 'install_flags': ' -ms',\r\n                                 'installer': 'salt://repositories/win/firefox/Firefox Setup Stub 27.0.1.exe',\r\n                                 'locale': 'en_US',\r\n                                 'reboot': False,\r\n                                 'uninstall_flags': ' /S',\r\n                                 'uninstaller': '%ProgramFiles(x86)%/Mozilla Firefox/uninstall/helper.exe'}},\r\n          'python': {'2.7.6': {'full_name': 'Python 2.7.6 (64-bit)',\r\n                               'install_flags': '/qn /norestart',\r\n                               'installer': 'http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi',\r\n                               'locale': 'en_US',\r\n                               'msiexec': True,\r\n                               'reboot': False,\r\n                               'uninstall_flags': '/qn',\r\n                               'uninstaller': 'http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi'}},\r\n          'salt-minion': {'0.17.5-2': {'full_name': 'Salt Minion 0.17.5-2',\r\n                                       'install_flags': ' /S /master=172.23.254.31 /minion-name=%COMPUTERNAME%',\r\n                                       'installer': 'salt://repositories/win/salt-minion/Salt-Minion-0.17.5-2-AMD64-Setup.exe',\r\n                                       'locale': 'en_US',\r\n                                       'reboot': False,\r\n                                       'uninstall_flags': '',\r\n                                       'uninstaller': ''}}}}\r\n```\r\n(Yes, I had prepared some other packages.  If there's any thought that they are interfering, I can nuke em, but I figured at this point it was very unlikely they were.)\r\n\r\nSpecified the refresh.\r\n```\r\nroot@slprototype:/srv/salt/repositories/win>salt zinc14 pkg.refresh_db\r\nzinc14:\r\n    True\r\n```\r\n\r\nThings start getting interesting when I run available_version.  As you see, no results.\r\n```\r\nroot@slprototype:/srv/salt/repositories/win>salt -v -t 100 zinc14 pkg.available_version firefox\r\nExecuting job with jid 20140304165418973273\r\n-------------------------------------------\r\n\r\nzinc14:\r\n\r\n```\r\n\r\nTried to do an install anyway:\r\n\r\n```\r\nroot@slprototype:/srv/salt/repositories/win>salt -v -t 100 zinc14 pkg.install firefox\r\nExecuting job with jid 20140304165530375286\r\n-------------------------------------------\r\n\r\nzinc14:\r\n    ----------\r\n```\r\n\r\nNo error, as well... I tried to run it by proxy of a state, to get more useful information, and lo and behold:\r\n```\r\nroot@slprototype:/srv/salt/repositories/win>salt zinc14 state.sls firefox\r\nzinc14:\r\n----------\r\n    State: - pkg\r\n    Name:      firefox\r\n    Function:  installed\r\n        Result:    False\r\n        Comment:   Package firefox not found in the repository.\r\n        Changes:\r\n\r\nSummary\r\n------------\r\nSucceeded: 0\r\nFailed:    1\r\n------------\r\nTotal:     1\r\n```\r\n\r\n(the firefox sls is entirely a pkg.install: firefox)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/82617252","html_url":"https://github.com/saltstack/salt/issues/10948#issuecomment-82617252","issue_url":"https://api.github.com/repos/saltstack/salt/issues/10948","id":82617252,"user":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T22:07:16Z","updated_at":"2015-03-17T22:07:16Z","body":"I think this is still an issue, we need to get it fixed.\r\n\r\nAs far as getting involved, unfortunately IRC is one of the main ways (#salt on freenode), but we also have a community mailing list: https://groups.google.com/forum/#!forum/salt-users"}}