{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/37108","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/37108/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/37108/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/37108/events","html_url":"https://github.com/saltstack/salt/issues/37108","id":184183241,"number":37108,"title":"updating salt with salt leaves both versions","user":{"login":"mobidyc","id":1949589,"avatar_url":"https://avatars.githubusercontent.com/u/1949589?v=3","gravatar_id":"","url":"https://api.github.com/users/mobidyc","html_url":"https://github.com/mobidyc","followers_url":"https://api.github.com/users/mobidyc/followers","following_url":"https://api.github.com/users/mobidyc/following{/other_user}","gists_url":"https://api.github.com/users/mobidyc/gists{/gist_id}","starred_url":"https://api.github.com/users/mobidyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobidyc/subscriptions","organizations_url":"https://api.github.com/users/mobidyc/orgs","repos_url":"https://api.github.com/users/mobidyc/repos","events_url":"https://api.github.com/users/mobidyc/events{/privacy}","received_events_url":"https://api.github.com/users/mobidyc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-20T09:48:57Z","updated_at":"2016-10-20T16:00:48Z","closed_at":null,"body":"### Description of Issue/Question\r\nCentos7\r\nusing state.sls to update salt-minion installs the latest version + leaves the old version\r\n### Setup salt://salt/init.sls\r\n```\r\nsalt-repo:\r\n  pkgrepo.managed:\r\n    - humanname: saltstack-repo\r\n    - baseurl: https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest\r\n    - mirrorlist: https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest\r\n    - gpgcheck: 0\r\n    - gpgkey: https://repo.saltstack.com/yum/redhat/$releasever/$basearch/archive/2016.3.3/SALTSTACK-GPG-KEY.pub\r\n\r\nsalt-minion:\r\n  pkg.latest:\r\n    - name: salt-minion\r\n    - refresh: True\r\n  service.running:\r\n    - enable: True\r\n    - restart: True\r\n    - watch:\r\n      - pkg: salt-minion\r\n```\r\n### Steps to Reproduce Issue\r\nsalt-call state.sls salt\r\n\r\n### Versions Report\r\n# rpm -q salt-minion\r\nsalt-minion-2015.5.10-2.el7.noarch\r\nsalt-minion-2016.3.3-2.el7.noarch\r\n\r\n# rpm -qa |grep salt\r\nsalt-minion-2016.3.3-2.el7.noarch\r\nsalt-2015.5.10-2.el7.noarch\r\nsalt-master-2015.5.10-2.el7.noarch\r\nsalt-2016.3.3-2.el7.noarch\r\nsalt-minion-2015.5.10-2.el7.noarch\r\n\r\n### additional info\r\n\r\nsystem is broken now\r\n```\r\n# salt '*' cmd.run 'ls'\r\n[ERROR   ] Exception occurred in Subscriber while handling stream: 'int' object has no attribute '__getitem__'\r\n[ERROR   ] An un-handled exception was caught by salt's global exception handler:\r\nTypeError: 'int' object has no attribute '__getitem__'\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/salt\", line 10, in <module>\r\n    salt_main()\r\n  File \"/usr/lib/python2.7/site-packages/salt/scripts.py\", line 478, in salt_main\r\n    client.run()\r\n  File \"/usr/lib/python2.7/site-packages/salt/cli/salt.py\", line 158, in run\r\n    for full_ret in cmd_func(**kwargs):\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/__init__.py\", line 622, in cmd_cli\r\n    **kwargs):\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/__init__.py\", line 1301, in get_cli_event_returns\r\n    **kwargs\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/__init__.py\", line 913, in get_iter_returns\r\n    for raw in ret_iter:\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/__init__.py\", line 848, in get_returns_no_block\r\n    raw = self.event.get_event(wait=0.01, tag=tag, match_type=match_type, full=True, no_block=True)\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/event.py\", line 579, in get_event\r\n    ret = self._get_event(wait, tag, match_func, no_block)\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/event.py\", line 484, in _get_event\r\n    raw = self.subscriber.read_sync(timeout=wait)\r\n  File \"/usr/lib/python2.7/site-packages/salt/transport/ipc.py\", line 668, in read_sync\r\n    return ret_future.result()\r\n  File \"/usr/lib64/python2.7/site-packages/tornado/concurrent.py\", line 215, in result\r\n    raise_exc_info(self._exc_info)\r\n  File \"/usr/lib64/python2.7/site-packages/tornado/gen.py\", line 879, in run\r\n    yielded = self.gen.send(value)\r\n  File \"/usr/lib/python2.7/site-packages/salt/transport/ipc.py\", line 644, in _read_sync\r\n    raise exc_to_raise  # pylint: disable=E0702\r\nTypeError: 'int' object has no attribute '__getitem__'\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/salt\", line 10, in <module>\r\n    salt_main()\r\n  File \"/usr/lib/python2.7/site-packages/salt/scripts.py\", line 478, in salt_main\r\n    client.run()\r\n  File \"/usr/lib/python2.7/site-packages/salt/cli/salt.py\", line 158, in run\r\n    for full_ret in cmd_func(**kwargs):\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/__init__.py\", line 622, in cmd_cli\r\n    **kwargs):\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/__init__.py\", line 1301, in get_cli_event_returns\r\n    **kwargs\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/__init__.py\", line 913, in get_iter_returns\r\n    for raw in ret_iter:\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/__init__.py\", line 848, in get_returns_no_block\r\n    raw = self.event.get_event(wait=0.01, tag=tag, match_type=match_type, full=True, no_block=True)\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/event.py\", line 579, in get_event\r\n    ret = self._get_event(wait, tag, match_func, no_block)\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/event.py\", line 484, in _get_event\r\n    raw = self.subscriber.read_sync(timeout=wait)\r\n  File \"/usr/lib/python2.7/site-packages/salt/transport/ipc.py\", line 668, in read_sync\r\n    return ret_future.result()\r\n  File \"/usr/lib64/python2.7/site-packages/tornado/concurrent.py\", line 215, in result\r\n    raise_exc_info(self._exc_info)\r\n  File \"/usr/lib64/python2.7/site-packages/tornado/gen.py\", line 879, in run\r\n    yielded = self.gen.send(value)\r\n  File \"/usr/lib/python2.7/site-packages/salt/transport/ipc.py\", line 644, in _read_sync\r\n    raise exc_to_raise  # pylint: disable=E0702\r\nTypeError: 'int' object has no attribute '__getitem__'\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/255149409","html_url":"https://github.com/saltstack/salt/issues/37108#issuecomment-255149409","issue_url":"https://api.github.com/repos/saltstack/salt/issues/37108","id":255149409,"user":{"login":"gtmanfred","id":732321,"avatar_url":"https://avatars.githubusercontent.com/u/732321?v=3","gravatar_id":"","url":"https://api.github.com/users/gtmanfred","html_url":"https://github.com/gtmanfred","followers_url":"https://api.github.com/users/gtmanfred/followers","following_url":"https://api.github.com/users/gtmanfred/following{/other_user}","gists_url":"https://api.github.com/users/gtmanfred/gists{/gist_id}","starred_url":"https://api.github.com/users/gtmanfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtmanfred/subscriptions","organizations_url":"https://api.github.com/users/gtmanfred/orgs","repos_url":"https://api.github.com/users/gtmanfred/repos","events_url":"https://api.github.com/users/gtmanfred/events{/privacy}","received_events_url":"https://api.github.com/users/gtmanfred/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T16:00:48Z","updated_at":"2016-10-20T16:00:48Z","body":"I am unable to replicate this error.\r\n\r\n```\r\n----------\r\n          ID: salt-minion\r\n    Function: pkg.latest\r\n      Result: True\r\n     Comment: The following packages were successfully installed/upgraded: salt-minion\r\n     Started: 15:59:03.612089\r\n    Duration: 13430.688 ms\r\n     Changes:\r\n              ----------\r\n              salt:\r\n                  ----------\r\n                  new:\r\n                      2016.3.3-2.el7\r\n                  old:\r\n                      2015.8.12-2.el7\r\n              salt-minion:\r\n                  ----------\r\n                  new:\r\n                      2016.3.3-2.el7\r\n                  old:\r\n                      2015.8.12-2.el7\r\n```\r\n\r\nI get the 2015.8.12 package removed, and the 2016.3.3 package installed.  Can you provide the `state.sls` output with the above test state?"}}
{"actor":{"display_login":"gtmanfred"}}