{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/48370","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/48370/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/48370/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/48370/events","html_url":"https://github.com/saltstack/salt/issues/48370","id":336930931,"node_id":"MDU6SXNzdWUzMzY5MzA5MzE=","number":48370,"title":"2017.7.6 breaks zeromq","user":{"login":"jatorvi","id":28137769,"node_id":"MDQ6VXNlcjI4MTM3NzY5","avatar_url":"https://avatars2.githubusercontent.com/u/28137769?v=4","gravatar_id":"","url":"https://api.github.com/users/jatorvi","html_url":"https://github.com/jatorvi","followers_url":"https://api.github.com/users/jatorvi/followers","following_url":"https://api.github.com/users/jatorvi/following{/other_user}","gists_url":"https://api.github.com/users/jatorvi/gists{/gist_id}","starred_url":"https://api.github.com/users/jatorvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jatorvi/subscriptions","organizations_url":"https://api.github.com/users/jatorvi/orgs","repos_url":"https://api.github.com/users/jatorvi/repos","events_url":"https://api.github.com/users/jatorvi/events{/privacy}","received_events_url":"https://api.github.com/users/jatorvi/received_events","type":"User","site_admin":false},"labels":[{"id":41387723,"node_id":"MDU6TGFiZWw0MTM4NzcyMw==","url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":67288742,"node_id":"MDU6TGFiZWw2NzI4ODc0Mg==","url":"https://api.github.com/repos/saltstack/salt/labels/Critical","name":"Critical","color":"e95800","default":false},{"id":194766302,"node_id":"MDU6TGFiZWwxOTQ3NjYzMDI=","url":"https://api.github.com/repos/saltstack/salt/labels/P3","name":"P3","color":"0a3d77","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestone/13","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"node_id":"MDk6TWlsZXN0b25lOTI2NQ==","number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"node_id":"MDQ6VXNlcjUwNzU5OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/507599?v=4","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":2087,"closed_issues":7624,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2018-06-29T13:39:13Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-06-29T09:36:02Z","updated_at":"2018-06-29T14:30:52Z","closed_at":null,"author_association":"NONE","body":"### Description of Issue/Question\r\nupdate from 2017.7.5 to 2017.7.6 breaks zeromq on salt-master when trying to run caller.cmd.run from reactor on debian 9 py2. local.cmd.run silently fails.\r\n`salt-call cmd.run cmd=` works as expected, as does `salt 'target' cmd.run cmd=`\r\n\r\n### Setup\r\n```\r\nrun_command:\r\n  caller.cmd.run:\r\n    - args:\r\n      - cmd: 'touch /tmp/foo'\r\n```\r\n### Steps to Reproduce Issue\r\n`salt-call event.send what/ever/triggers/reactor`\r\n\r\nresulting error from journal:\r\n```\r\n[WARNING ] /usr/lib/python2.7/dist-packages/salt/minion.py:648: RuntimeWarning: IOLoop.current expected instance of <class 'zmq.eventloop.ioloop.ZMQIOLoop'>, got <tornado.platform.epoll.EPollIOLoop object at 0x7f97d3467a50>\r\n  io_loop = ZMQDefaultLoop.current()\r\n[WARNING ] /usr/lib/python2.7/dist-packages/salt/transport/zeromq.py:329: RuntimeWarning: IOLoop.current expected instance of <class 'zmq.eventloop.ioloop.ZMQIOLoop'>, got <tornado.platform.epoll.EPollIOLoop object at 0x7f97d3467a50>\r\n  self.io_loop = ZMQDefaultLoop.current()\r\n[ERROR   ] Exception in callback <functools.partial object at 0x7f97d0226100>\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/tornado/ioloop.py\", line 604, in _run_callback\r\n    ret = callback()\r\n  File \"/usr/lib/python2.7/dist-packages/tornado/stack_context.py\", line 275, in null_wrapper\r\n    return fn(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/tornado/ioloop.py\", line 619, in <lambda>\r\n    self.add_future(ret, lambda f: f.result())\r\n  File \"/usr/lib/python2.7/dist-packages/tornado/concurrent.py\", line 237, in result\r\n    raise_exc_info(self._exc_info)\r\n  File \"/usr/lib/python2.7/dist-packages/tornado/gen.py\", line 285, in wrapper\r\n    yielded = next(result)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/crypt.py\", line 510, in _authenticate\r\n    io_loop=self.io_loop)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/client.py\", line 108, in factory\r\n    return salt.transport.zeromq.AsyncZeroMQReqChannel(opts, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py\", line 130, in __new__\r\n    obj.__singleton_init__(opts, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py\", line 193, in __singleton_init__\r\n    kwargs={'io_loop': self._io_loop})\r\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py\", line 907, in __init__\r\n    super(AsyncReqMessageClientPool, self).__init__(AsyncReqMessageClient, opts, args=args, kwargs=kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/__init__.py\", line 69, in __init__\r\n    self.message_clients = [tgt(*args, **kwargs) for _ in range(sock_pool_size)]\r\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py\", line 954, in __init__\r\n    self._init_socket()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py\", line 1007, in _init_socket\r\n    self.stream = zmq.eventloop.zmqstream.ZMQStream(self.socket, io_loop=self.io_loop)\r\n  File \"/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py\", line 114, in __init__\r\n    self._init_io_state()\r\n  File \"/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py\", line 535, in _init_io_state\r\n    self.io_loop.add_handler(self.socket, self._handle_events, self._state)\r\n  File \"/usr/lib/python2.7/dist-packages/tornado/ioloop.py\", line 725, in add_handler\r\n    self._impl.register(fd, events | self.ERROR)\r\nTypeError: argument must be an int, or have a fileno() method.\r\n```\r\n\r\n### Versions Report\r\nSalt Version:\r\n           Salt: 2017.7.6\r\n\r\nDependency Versions:\r\n           cffi: Not Installed\r\n       cherrypy: 3.5.0\r\n       dateutil: 2.5.3\r\n      docker-py: Not Installed\r\n          gitdb: 2.0.0\r\n      gitpython: 2.1.1\r\n          ioflo: Not Installed\r\n         Jinja2: 2.9.4\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.8\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n   pycryptodome: Not Installed\r\n         pygit2: Not Installed\r\n         Python: 2.7.13 (default, Nov 24 2017, 17:33:09)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.12\r\n          PyZMQ: 16.0.2\r\n           RAET: Not Installed\r\n          smmap: 2.0.1\r\n        timelib: Not Installed\r\n        Tornado: 4.4.3\r\n            ZMQ: 4.2.1\r\n\r\nSystem Versions:\r\n           dist: debian 9.4\r\n         locale: UTF-8\r\n        machine: x86_64\r\n        release: 4.15.17-1-pve\r\n         system: Linux\r\n        version: debian 9.4\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/401371983","html_url":"https://github.com/saltstack/salt/issues/48370#issuecomment-401371983","issue_url":"https://api.github.com/repos/saltstack/salt/issues/48370","id":401371983,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTM3MTk4Mw==","user":{"login":"DmitryKuzmenko","id":4807387,"node_id":"MDQ6VXNlcjQ4MDczODc=","avatar_url":"https://avatars0.githubusercontent.com/u/4807387?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryKuzmenko","html_url":"https://github.com/DmitryKuzmenko","followers_url":"https://api.github.com/users/DmitryKuzmenko/followers","following_url":"https://api.github.com/users/DmitryKuzmenko/following{/other_user}","gists_url":"https://api.github.com/users/DmitryKuzmenko/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryKuzmenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryKuzmenko/subscriptions","organizations_url":"https://api.github.com/users/DmitryKuzmenko/orgs","repos_url":"https://api.github.com/users/DmitryKuzmenko/repos","events_url":"https://api.github.com/users/DmitryKuzmenko/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryKuzmenko/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T14:30:52Z","updated_at":"2018-06-29T14:30:52Z","author_association":"CONTRIBUTOR","body":"@jatorvi thank you. It's not a solution, just wanted to ensure I'm thinking in the right direction."}}
{"actor":{"display_login":"DmitryKuzmenko"}}