{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/39254","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/39254/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/39254/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/39254/events","html_url":"https://github.com/saltstack/salt/issues/39254","id":206325816,"number":39254,"title":"Running salt-cloud with --parallel gives fd error","user":{"login":"aig787","id":4955443,"avatar_url":"https://avatars.githubusercontent.com/u/4955443?v=3","gravatar_id":"","url":"https://api.github.com/users/aig787","html_url":"https://github.com/aig787","followers_url":"https://api.github.com/users/aig787/followers","following_url":"https://api.github.com/users/aig787/following{/other_user}","gists_url":"https://api.github.com/users/aig787/gists{/gist_id}","starred_url":"https://api.github.com/users/aig787/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aig787/subscriptions","organizations_url":"https://api.github.com/users/aig787/orgs","repos_url":"https://api.github.com/users/aig787/repos","events_url":"https://api.github.com/users/aig787/events{/privacy}","received_events_url":"https://api.github.com/users/aig787/received_events","type":"User","site_admin":false},"labels":[{"id":41387723,"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":67288742,"url":"https://api.github.com/repos/saltstack/salt/labels/Critical","name":"Critical","color":"e95800","default":false},{"id":265327209,"url":"https://api.github.com/repos/saltstack/salt/labels/Mac%20OS","name":"Mac OS","color":"006b75","default":false},{"id":194766284,"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5","default":false},{"id":220527153,"url":"https://api.github.com/repos/saltstack/salt/labels/RIoT","name":"RIoT","color":"fef2c0","default":false},{"id":65370277,"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-Cloud","name":"Salt-Cloud","color":"006b75","default":false},{"id":279790739,"url":"https://api.github.com/repos/saltstack/salt/labels/TEAM%20RIoT","name":"TEAM RIoT","color":"A9A9A9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-08T21:11:54Z","updated_at":"2017-02-09T17:07:16Z","closed_at":null,"body":"### Description of Issue/Question\r\n\r\nRunning `salt-cloud -m test-cloud.map -c config -l debug -y -P` gives this error on macOS 10.12.3. The same command without the -P option spins up the environment just fine.\r\n\r\n```\r\n[DEBUG   ] Error deleting fd from IOLoop\r\nTraceback (most recent call last):\r\n  File \"/opt/salt/lib/python2.7/site-packages/tornado/ioloop.py\", line 732, in remove_handler\r\n    self._impl.unregister(fd)\r\n  File \"/opt/salt/lib/python2.7/site-packages/tornado/platform/kqueue.py\", line 50, in unregister\r\n    self._control(fd, events, select.KQ_EV_DELETE)\r\n  File \"/opt/salt/lib/python2.7/site-packages/tornado/platform/kqueue.py\", line 63, in _control\r\n    self._kqueue.control([kevent], 0)\r\nOSError: [Errno 9] Bad file descriptor\r\n[DEBUG   ] Error deleting fd from IOLoop\r\nTraceback (most recent call last):\r\n  File \"/opt/salt/lib/python2.7/site-packages/tornado/ioloop.py\", line 732, in remove_handler\r\n    self._impl.unregister(fd)\r\n  File \"/opt/salt/lib/python2.7/site-packages/tornado/platform/kqueue.py\", line 50, in unregister\r\n    self._control(fd, events, select.KQ_EV_DELETE)\r\n  File \"/opt/salt/lib/python2.7/site-packages/tornado/platform/kqueue.py\", line 63, in _control\r\n    self._kqueue.control([kevent], 0)\r\nOSError: [Errno 9] Bad file descriptor\r\n[WARNING ] Unable to obtain lock for /var/cache/salt/cloud/index.p\r\n[WARNING ] Unable to obtain lock for /var/cache/salt/cloud/index.p\r\n[ERROR   ] There was a query error: [Errno 61] Connection refused\r\nTraceback (most recent call last):\r\n  File \"/opt/salt/lib/python2.7/site-packages/salt/cloud/cli.py\", line 348, in run\r\n    ret = mapper.run_map(dmap)\r\n  File \"/opt/salt/lib/python2.7/site-packages/salt/cloud/__init__.py\", line 2257, in run_map\r\n    _create_multiprocessing, parallel_data, pool_size=pool_size)\r\n  File \"/opt/salt/lib/python2.7/site-packages/salt/cloud/__init__.py\", line 150, in enter_mainloop\r\n    ret = pool.map(func=target, iterable=iterable)\r\n  File \"/opt/salt/lib/python2.7/multiprocessing/pool.py\", line 251, in map\r\n    return self.map_async(func, iterable, chunksize).get()\r\n  File \"/opt/salt/lib/python2.7/multiprocessing/pool.py\", line 567, in get\r\n    raise self._value\r\nerror: [Errno 61] Connection refused\r\n```\r\n\r\n### Setup\r\n(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)\r\n\r\n### Steps to Reproduce Issue\r\n(Include debug logs if possible and relevant.)\r\n\r\n### Versions Report\r\n(Provided by running `salt --versions-report`. Please also mention any differences in master/minion versions.)\r\n\r\n```\r\nSalt Version:\r\n           Salt: 2016.11.2\r\n\r\nDependency Versions:\r\n           cffi: 1.5.0\r\n       cherrypy: 4.0.0\r\n       dateutil: 2.4.2\r\n          gitdb: 0.6.4\r\n      gitpython: 1.0.1\r\n          ioflo: 1.5.0\r\n         Jinja2: 2.9.4\r\n        libgit2: Not Installed\r\n        libnacl: 1.4.4\r\n       M2Crypto: Not Installed\r\n           Mako: 1.0.3\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.7\r\n   mysql-python: Not Installed\r\n      pycparser: 2.14\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n         Python: 2.7.12 (default, Jan 25 2017, 14:57:42)\r\n   python-gnupg: 0.3.8\r\n         PyYAML: 3.11\r\n          PyZMQ: 15.2.0\r\n           RAET: 0.6.5\r\n          smmap: 0.9.0\r\n        timelib: 0.2.4\r\n        Tornado: 4.3\r\n            ZMQ: 4.1.2\r\n\r\nSystem Versions:\r\n           dist:\r\n        machine: x86_64\r\n        release: 16.4.0\r\n         system: Darwin\r\n        version: 10.12.3 x86_64\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/278706102","html_url":"https://github.com/saltstack/salt/issues/39254#issuecomment-278706102","issue_url":"https://api.github.com/repos/saltstack/salt/issues/39254","id":278706102,"user":{"login":"aig787","id":4955443,"avatar_url":"https://avatars.githubusercontent.com/u/4955443?v=3","gravatar_id":"","url":"https://api.github.com/users/aig787","html_url":"https://github.com/aig787","followers_url":"https://api.github.com/users/aig787/followers","following_url":"https://api.github.com/users/aig787/following{/other_user}","gists_url":"https://api.github.com/users/aig787/gists{/gist_id}","starred_url":"https://api.github.com/users/aig787/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aig787/subscriptions","organizations_url":"https://api.github.com/users/aig787/orgs","repos_url":"https://api.github.com/users/aig787/repos","events_url":"https://api.github.com/users/aig787/events{/privacy}","received_events_url":"https://api.github.com/users/aig787/received_events","type":"User","site_admin":false},"created_at":"2017-02-09T17:07:16Z","updated_at":"2017-02-09T17:07:16Z","body":"Could it be related to https://github.com/tornadoweb/tornado/issues/1901?"}}
{"actor":{"display_login":"aig787"}}