{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/49929","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/49929/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/49929/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/49929/events","html_url":"https://github.com/saltstack/salt/issues/49929","id":367725307,"node_id":"MDU6SXNzdWUzNjc3MjUzMDc=","number":49929,"title":"pkg.installed on windows fail but the package installs succesfull","user":{"login":"PabloLemos","id":353683,"node_id":"MDQ6VXNlcjM1MzY4Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/353683?v=4","gravatar_id":"","url":"https://api.github.com/users/PabloLemos","html_url":"https://github.com/PabloLemos","followers_url":"https://api.github.com/users/PabloLemos/followers","following_url":"https://api.github.com/users/PabloLemos/following{/other_user}","gists_url":"https://api.github.com/users/PabloLemos/gists{/gist_id}","starred_url":"https://api.github.com/users/PabloLemos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PabloLemos/subscriptions","organizations_url":"https://api.github.com/users/PabloLemos/orgs","repos_url":"https://api.github.com/users/PabloLemos/repos","events_url":"https://api.github.com/users/PabloLemos/events{/privacy}","received_events_url":"https://api.github.com/users/PabloLemos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-08T10:23:22Z","updated_at":"2018-10-08T16:14:54Z","closed_at":null,"author_association":"NONE","body":"### Description of Issue/Question\r\nWhen using the state `pkg.installed` in windows the state gives an error code but the indicated package is installed correctly.\r\n\r\nI recently updated to `2018.3.2` and to date it worked correctly.\r\n\r\n### Setup\r\n```\r\n# Instalamos agente winlogbeat\r\nwinlogbeat:\r\n  pkg.installed:\r\n    - pkgs:\r\n      - winlogbeat\r\n    - refresh: True\r\n```\r\n\r\n### Steps to Reproduce Issue\r\n```\r\n[DEBUG   ] Rendered data from file: c:\\salt\\var\\cache\\salt\\minion\\files\\base\\win\\repo-ng\\winlogbeat.sls:\r\n# Winlogbeat:\r\n# Collect Windows Event Logs\r\n# Harness the richness of system, application, and security information from\r\n# Windows event logs using a lightweight Winlogbeat data collector.\r\n# Ship events directly to Elasticsearch or parse and enrich them using Logstash\r\n# prior to visualizing results in Kibana.\r\n\r\n# URL: https://www.elastic.co/downloads/beats/winlogbeat\r\n\r\nwinlogbeat:\r\n    latest:\r\n        full_name: 'Winlogbeat 1.3.1'\r\n        installer: 'salt://win/repo-ng/winlogbeat/winlogbeat_1_3_1_7zip.exe'\r\n        msiexec: False\r\n        locale: en_US\r\n        reboot: False\r\n    '1.3.1':\r\n        full_name: 'Winlogbeat 1.3.1'\r\n        installer: 'salt://win/repo-ng/winlogbeat/winlogbeat_1_3_1_7zip.exe'\r\n        msiexec: False\r\n        locale: en_US\r\n        reboot: False\r\n    '1.0.1':\r\n        full_name: 'Winlogbeat 1.0.1'\r\n        installer: 'salt://win/repo-ng/winlogbeat/winlogbeat_1_0_1_7zip.exe'\r\n        msiexec: False\r\n        locale: en_US\r\n        reboot: False\r\n```\r\n\r\n```\r\n----------\r\n          ID: winlogbeat\r\n    Function: pkg.installed\r\n      Result: False\r\n     Comment: The following packages failed to install/update: winlogbeat\r\n     Started: 11:56:26.888000\r\n    Duration: 3000.0 ms\r\n     Changes:\r\n              ----------\r\n              winlogbeat:\r\n                  ----------\r\n                  install status:\r\n                      success\r\n```\r\n```\r\nc:\\Admin>dir winlogbeat\r\n Volume in drive C has no label.\r\n Volume Serial Number is 9EBB-EFF8\r\n\r\n Directory of c:\\Admin\\winlogbeat\r\n\r\n08/10/2018  11:56    <DIR>          .\r\n08/10/2018  11:56    <DIR>          ..\r\n08/10/2018  11:56               132 .winlogbeat.yml\r\n08/10/2018  11:56    <DIR>          Logs\r\n14/09/2016  22:21         8.926.208 winlogbeat.exe\r\n14/09/2016  22:21               728 winlogbeat.template.json\r\n08/10/2018  11:56            10.136 winlogbeat.yml\r\n               4 File(s)      8.937.204 bytes\r\n               3 Dir(s)  87.205.928.960 bytes free\r\n```\r\n\r\nI have more states to distribute agents on the windows machines and they all return the same error:\r\n```\r\n          ID: check-mk-agent\r\n    Function: pkg.installed\r\n      Result: False\r\n     Comment: The following packages failed to install/update: check_mk\r\n     Started: 11:59:57.922000\r\n    Duration: 5761.0 ms\r\n     Changes:\r\n              ----------\r\n              check_mk:\r\n                  ----------\r\n                  install status:\r\n                      success\r\n```\r\n\r\n### Versions Report\r\n**master**\r\n```\r\nroot@master ~> salt --versions-report\r\n\r\nSalt Version:\r\n           Salt: 2018.3.2\r\n\r\nDependency Versions:\r\n           cffi: 1.11.5\r\n       cherrypy: unknown\r\n       dateutil: 2.7.3\r\n      docker-py: Not Installed\r\n          gitdb: 2.0.4\r\n      gitpython: 2.1.11\r\n          ioflo: Not Installed\r\n         Jinja2: 2.8.1\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: 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.18\r\n       pycrypto: 2.6.1\r\n   pycryptodome: Not Installed\r\n         pygit2: Not Installed\r\n         Python: 2.7.13 (default, Jul 12 2017, 17:32:34)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 14.5.0\r\n           RAET: Not Installed\r\n          smmap: 2.0.4\r\n        timelib: Not Installed\r\n        Tornado: 4.5.3\r\n            ZMQ: 4.0.5\r\n\r\nSystem Versions:\r\n           dist: centos 6.9 Santiago\r\n         locale: ANSI_X3.4-1968\r\n        machine: x86_64\r\n        release: 2.6.32-696.6.3.el6.x86_64\r\n         system: Linux\r\n        version: Red Hat Enterprise Linux Server 6.9 Santiago\r\n```\r\n**minion**\r\n```\r\n    Salt Version:\r\n               Salt: 2018.3.2\r\n\r\n    Dependency Versions:\r\n               cffi: 1.10.0\r\n           cherrypy: 10.2.1\r\n           dateutil: 2.6.1\r\n          docker-py: Not Installed\r\n              gitdb: 2.0.3\r\n          gitpython: 2.1.3\r\n              ioflo: Not Installed\r\n             Jinja2: 2.9.6\r\n            libgit2: Not Installed\r\n            libnacl: Not Installed\r\n           M2Crypto: Not Installed\r\n               Mako: 1.0.6\r\n       msgpack-pure: Not Installed\r\n     msgpack-python: 0.4.8\r\n       mysql-python: Not Installed\r\n          pycparser: 2.17\r\n           pycrypto: 2.6.1\r\n       pycryptodome: Not Installed\r\n             pygit2: Not Installed\r\n             Python: 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)]\r\n       python-gnupg: 0.4.1\r\n             PyYAML: 3.12\r\n              PyZMQ: 16.0.3\r\n               RAET: Not Installed\r\n              smmap: 2.0.3\r\n            timelib: 0.2.4\r\n            Tornado: 4.5.1\r\n                ZMQ: 4.1.6\r\n\r\n    System Versions:\r\n               dist:\r\n             locale: cp1252\r\n            machine: AMD64\r\n            release: 2012ServerR2\r\n             system: Windows\r\n            version: 2012ServerR2 6.3.9600  Multiprocessor Free\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/427893936","html_url":"https://github.com/saltstack/salt/issues/49929#issuecomment-427893936","issue_url":"https://api.github.com/repos/saltstack/salt/issues/49929","id":427893936,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzg5MzkzNg==","user":{"login":"twangboy","id":9383935,"node_id":"MDQ6VXNlcjkzODM5MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/9383935?v=4","gravatar_id":"","url":"https://api.github.com/users/twangboy","html_url":"https://github.com/twangboy","followers_url":"https://api.github.com/users/twangboy/followers","following_url":"https://api.github.com/users/twangboy/following{/other_user}","gists_url":"https://api.github.com/users/twangboy/gists{/gist_id}","starred_url":"https://api.github.com/users/twangboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twangboy/subscriptions","organizations_url":"https://api.github.com/users/twangboy/orgs","repos_url":"https://api.github.com/users/twangboy/repos","events_url":"https://api.github.com/users/twangboy/events{/privacy}","received_events_url":"https://api.github.com/users/twangboy/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T16:14:54Z","updated_at":"2018-10-08T16:14:54Z","author_association":"CONTRIBUTOR","body":"@PabloLemos I would remove the entire entry for `latest`. That's a keyword reserved for software downloads that only supply a single url to their product that is the latest version... you can't download earlier versions. Google Chrome for example."}}
{"actor":{"display_login":"twangboy"}}