{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/33524","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/33524/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/33524/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/33524/events","html_url":"https://github.com/saltstack/salt/issues/33524","id":156910269,"number":33524,"title":"[2016.3.0] TypeError: 'int' object has no attribute '__getitem__'","user":{"login":"syphernl","id":639906,"avatar_url":"https://avatars.githubusercontent.com/u/639906?v=3","gravatar_id":"","url":"https://api.github.com/users/syphernl","html_url":"https://github.com/syphernl","followers_url":"https://api.github.com/users/syphernl/followers","following_url":"https://api.github.com/users/syphernl/following{/other_user}","gists_url":"https://api.github.com/users/syphernl/gists{/gist_id}","starred_url":"https://api.github.com/users/syphernl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syphernl/subscriptions","organizations_url":"https://api.github.com/users/syphernl/orgs","repos_url":"https://api.github.com/users/syphernl/repos","events_url":"https://api.github.com/users/syphernl/events{/privacy}","received_events_url":"https://api.github.com/users/syphernl/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/Cannot%20Reproduce","name":"Cannot Reproduce","color":"c7def8"},{"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/Packaging","name":"Packaging","color":"006b75"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"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},"open_issues":474,"closed_issues":938,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2016-07-13T22:06:16Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2016-05-26T06:04:19Z","updated_at":"2016-07-15T07:45:04Z","closed_at":"2016-05-30T05:59:41Z","body":"### Description of Issue/Question\r\nRunning the following on the salt-master:\r\n```\r\n salt-run state.event pretty=True\r\n```\r\n\r\nresults in an exception:\r\n```\r\n[DEBUG   ] Sending event - data = {'jid': '20160526080133349560', 'return': 'Exception occurred in runner state.event: Traceback (most recent call last):\\n  File \"/usr/lib/python2.7/dist-packages/salt/client/mixins.py\", line 346, in low\\n    data[\\'return\\'] = self.functions[fun](*args, **kwargs)\\n  File \"/usr/lib/python2.7/dist-packages/salt/runners/state.py\", line 196, in event\\n    node=node)\\n  File \"/usr/lib/python2.7/dist-packages/salt/modules/state.py\", line 1658, in event\\n    ret = sevent.get_event(full=True)\\n  File \"/usr/lib/python2.7/dist-packages/salt/utils/event.py\", line 579, in get_event\\n    ret = self._get_event(wait, tag, match_func, no_block)\\n  File \"/usr/lib/python2.7/dist-packages/salt/utils/event.py\", line 484, in _get_event\\n    raw = self.subscriber.read_sync(timeout=wait)\\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/ipc.py\", line 654, in read_sync\\n    return ret_future.result()\\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py\", line 215, in result\\n    raise_exc_info(self._exc_info)\\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 879, in run\\n    yielded = self.gen.send(value)\\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/ipc.py\", line 631, in _read_sync\\n    raise exc_to_raise  # pylint: disable=E0702\\nTypeError: \\'int\\' object has no attribute \\'__getitem__\\'\\n', 'success': False, '_stamp': '2016-05-26T06:01:33.674314', 'user': 'sudo_vagrant', 'fun': 'runner.state.event'}\r\n[DEBUG   ] LazyLoaded local_cache.prep_jid\r\n[INFO    ] Runner completed: 20160526080133349560\r\n[DEBUG   ] Runner return: Exception occurred in runner state.event: Traceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/salt/client/mixins.py\", line 346, in low\r\n    data['return'] = self.functions[fun](*args, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/runners/state.py\", line 196, in event\r\n    node=node)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/modules/state.py\", line 1658, in event\r\n    ret = sevent.get_event(full=True)\r\n  File \"/usr/lib/python2.7/dist-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/dist-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/dist-packages/salt/transport/ipc.py\", line 654, in read_sync\r\n    return ret_future.result()\r\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py\", line 215, in result\r\n    raise_exc_info(self._exc_info)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 879, in run\r\n    yielded = self.gen.send(value)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/ipc.py\", line 631, in _read_sync\r\n    raise exc_to_raise  # pylint: disable=E0702\r\nTypeError: 'int' object has no attribute '__getitem__'\r\n\r\n```\r\n\r\n### Versions Report\r\n```\r\nSalt Version:\r\n           Salt: 2016.3.0\r\n \r\nDependency Versions:\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: 1.5\r\n          gitdb: 0.5.4\r\n      gitpython: 0.3.2 RC1\r\n          ioflo: Not Installed\r\n         Jinja2: 2.7.2\r\n        libgit2: Not Installed\r\n        libnacl: 1.4.3\r\n       M2Crypto: Not Installed\r\n           Mako: 0.9.1\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.3.0\r\n   mysql-python: 1.2.3\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n         Python: 2.7.6 (default, Jun 22 2015, 17:58:13)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.10\r\n          PyZMQ: 14.0.1\r\n           RAET: Not Installed\r\n          smmap: 0.8.2\r\n        timelib: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.0.4\r\n \r\nSystem Versions:\r\n           dist: Ubuntu 14.04 trusty\r\n        machine: x86_64\r\n        release: 3.13.0-83-generic\r\n         system: Linux\r\n        version: Ubuntu 14.04 trusty\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/232885346","html_url":"https://github.com/saltstack/salt/issues/33524#issuecomment-232885346","issue_url":"https://api.github.com/repos/saltstack/salt/issues/33524","id":232885346,"user":{"login":"zhaogaolong","id":13202101,"avatar_url":"https://avatars.githubusercontent.com/u/13202101?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaogaolong","html_url":"https://github.com/zhaogaolong","followers_url":"https://api.github.com/users/zhaogaolong/followers","following_url":"https://api.github.com/users/zhaogaolong/following{/other_user}","gists_url":"https://api.github.com/users/zhaogaolong/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaogaolong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaogaolong/subscriptions","organizations_url":"https://api.github.com/users/zhaogaolong/orgs","repos_url":"https://api.github.com/users/zhaogaolong/repos","events_url":"https://api.github.com/users/zhaogaolong/events{/privacy}","received_events_url":"https://api.github.com/users/zhaogaolong/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T07:45:04Z","updated_at":"2016-07-15T07:45:04Z","body":"I encountered the same problem, but restart salt-master Useless, \r\nmy salt version  salt 2015.5.10 (Lithium) \r\n\r\ndescription:\r\n     salt runing python2.6 is ok, \r\n    but running2.7.10 It will be reported the same mistake\r\n\r\n\r\nerror info:\r\n\r\n[root@xxxx ~]# python\r\nPython 2.7.10 (default, Apr 16 2016, 22:27:29) \r\n[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import salt.client\r\n>>> local = salt.client.LocalClient()\r\n>>> local.cmd('*', 'cmd.run', ['whoami'])\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/python-2.7.10/lib/python2.7/site-packages/salt/client/__init__.py\", line 570, in cmd\r\n    **kwargs):\r\n  File \"/usr/local/python-2.7.10/lib/python2.7/site-packages/salt/client/__init__.py\", line 1294, in get_cli_event_returns\r\n    **kwargs\r\n  File \"/usr/local/python-2.7.10/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/local/python-2.7.10/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/local/python-2.7.10/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/local/python-2.7.10/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/local/python-2.7.10/lib/python2.7/site-packages/salt/transport/ipc.py\", line 654, in read_sync\r\n    return ret_future.result()\r\n  File \"/usr/local/python-2.7.10/lib/python2.7/site-packages/tornado/concurrent.py\", line 232, in result\r\n    raise_exc_info(self._exc_info)\r\n  File \"/usr/local/python-2.7.10/lib/python2.7/site-packages/tornado/gen.py\", line 1017, in run\r\n    yielded = self.gen.send(value)\r\n  File \"/usr/local/python-2.7.10/lib/python2.7/site-packages/salt/transport/ipc.py\", line 631, in _read_sync\r\n    raise exc_to_raise  # pylint: disable=E0702\r\nTypeError: 'int' object has no attribute '__getitem__'\r\n>>>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"zhaogaolong"}}