{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/31426","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/31426/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/31426/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/31426/events","html_url":"https://github.com/saltstack/salt/issues/31426","id":135618659,"number":31426,"title":"pkg.installed says \"failed\" but still installs when rpm has epoch number","user":{"login":"jetpak","id":1972343,"avatar_url":"https://avatars.githubusercontent.com/u/1972343?v=3","gravatar_id":"","url":"https://api.github.com/users/jetpak","html_url":"https://github.com/jetpak","followers_url":"https://api.github.com/users/jetpak/followers","following_url":"https://api.github.com/users/jetpak/following{/other_user}","gists_url":"https://api.github.com/users/jetpak/gists{/gist_id}","starred_url":"https://api.github.com/users/jetpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jetpak/subscriptions","organizations_url":"https://api.github.com/users/jetpak/orgs","repos_url":"https://api.github.com/users/jetpak/repos","events_url":"https://api.github.com/users/jetpak/events{/privacy}","received_events_url":"https://api.github.com/users/jetpak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-23T03:22:49Z","updated_at":"2016-02-23T03:32:21Z","closed_at":null,"body":"salt master: 2015.8.7 (Beryllium)\r\nsalt minion: 2015.8.7 (Beryllium)\r\n\r\ni am trying to install a 'mongo' RPM that has an epoch number of '1', so the full package version is '1:0.0.1-2'\r\n\r\nthe following state causes a failure output, but the RPM does get installed:\r\n\r\n============= State =========================================================\r\nmongo_install_vers:\r\n  pkg.installed:\r\n    - fromrepo: {{ services_repo }}\r\n    - pkgs:\r\n      - mongo: 0.0.1-2\r\n\r\n======================= Failure Output: ========================================\r\nlocal:\r\n----------\r\n          ID: mongo_install_vers\r\n    Function: pkg.installed\r\n      Result: False\r\n     Comment: The following packages failed to install/update: mongo=0.0.1-2\r\n     Started: 03:13:30.507343\r\n    Duration: 7585.238 ms\r\n     Changes:\r\n              ----------\r\n              mongo:\r\n                  ----------\r\n                  new:\r\n                      1:0.0.1-2\r\n                  old:\r\n\r\nSummary for local\r\n------------\r\nSucceeded: 0 (changed=1)\r\nFailed:    1\r\n------------\r\nTotal states run:     1\r\n\r\n========================== YUM Output =======================================\r\n[root@ip-10-1-164-132 centos]# yum list installed | grep mongo\r\nmongo.x86_64                     1:0.0.1-2                   @symphony_services\r\npython-pymongo.x86_64            2.5.2-4.el7                 @epel\r\n\r\n========================== RPM Output =======================================\r\n[root@ip-10-1-164-132 centos]# rpm -qa --queryformat '%{NAME}_|-%{EPOCH}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-(none)\\n' | grep mongo\r\npython-pymongo_|-(none)_|-2.5.2_|-4.el7_|-x86_64_|-(none)\r\nmongo_|-1_|-0.0.1_|-2_|-x86_64_|-(none)\r\n\r\n\r\n========================== Salt Minion Log (Debug Level) ==========================\r\n016-02-23 03:13:31,667 [salt.loaded.int.module.cmdmod][INFO    ][27498] Executing command 'yum -y --disablerepo=\\'*\\' --enablerepo=\\'symphony_services\\'    install \"mongo-0.0.1-2\"' in directory '/root'\r\n2016-02-23 03:13:37,603 [salt.loaded.int.module.cmdmod][INFO    ][27498] Executing command ['rpm', '-qa', '--queryformat', '%{NAME}_|-%{EPOCH}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-(none)\\n'] in directory '/root'\r\n2016-02-23 03:13:38,036 [salt.utils.lazy  ][DEBUG   ][27498] Could not LazyLoad pkg.version_clean\r\n2016-02-23 03:13:38,037 [salt.state       ][ERROR   ][27498] Made the following changes:\r\n'mongo' changed from 'absent' to '1:0.0.1-2'\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/187507345","html_url":"https://github.com/saltstack/salt/issues/31426#issuecomment-187507345","issue_url":"https://api.github.com/repos/saltstack/salt/issues/31426","id":187507345,"user":{"login":"jetpak","id":1972343,"avatar_url":"https://avatars.githubusercontent.com/u/1972343?v=3","gravatar_id":"","url":"https://api.github.com/users/jetpak","html_url":"https://github.com/jetpak","followers_url":"https://api.github.com/users/jetpak/followers","following_url":"https://api.github.com/users/jetpak/following{/other_user}","gists_url":"https://api.github.com/users/jetpak/gists{/gist_id}","starred_url":"https://api.github.com/users/jetpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jetpak/subscriptions","organizations_url":"https://api.github.com/users/jetpak/orgs","repos_url":"https://api.github.com/users/jetpak/repos","events_url":"https://api.github.com/users/jetpak/events{/privacy}","received_events_url":"https://api.github.com/users/jetpak/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T03:32:21Z","updated_at":"2016-02-23T03:32:21Z","body":"there has been a few times in recent salt releases, where new EC2 instances would get new versions of salt-minion that would regress or break our salt states but our existing minions have no problems\r\n\r\nwhat is the best way to setup my salt-cloud profile so that we can lock in a specific (older) version of salt-minion to be installed?\r\n"}}