Open fake-name opened 5 years ago
Going into /usr/local/lib/python3.6/dist-packages/salt/utils/event.py
and commenting out self.io_loop.close
in the SaltEvent.destroy()
function appears to at least allow me to create VMs again.
I have no idea what this will wind up breaking, but from what I can tell, the tornado.ioloop.IOLoop()
returns a singleton, so we don't want to close the ioloop anyways, since I'm running a persistent application that periodically runs setup/teardown tasks via apscheduler.
Further reading makes me think passing keep_loop=True
to salt.utils.event.get_event()
in fire_event()
in salt/utils/cloud.py
is probably the correct solution.
In any event, it makes thins work, at least.
Thanks for reporting the issue. Team, we need to find out if this happens in later versions of salt
I'm basically running develop, so it currently happens there.
Note that I've been running with https://github.com/fake-name/salt/commit/60736621e9fcf7ee3a150238d5de19b1fab5be16 for the last week (since the issue was opened, basically), and it's been apparently OK (though I deliberately don't use a lot of salt's features).
I both updated to the current develop, AND switched from python 2 to python 3 (which was kind of dumb to do together, in retrospect), so I'm not sure if this is a problem triggered by the py3k change or the recent develop.
Would you mind submitting a Pull Request for https://github.com/fake-name/salt/commit/60736621e9fcf7ee3a150238d5de19b1fab5be16?
Sure.
Mostly, I figured I should check if there was a reason the reactor was getting torn down the way it was before just blindly PRing changes.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Thank you for updating this issue. It is no longer marked as stale.
Description of Issue
I'm using the
salt.cloud.CloudClient()
interface to manage salt minions.Currently, every invocation of
CloudClient().<function>
by my code now fails.It looks, at a quick check, like something somewhere added a dependency on a tornado ioloop without considering how this would affect consumers of the various APIs.
I last merged upstream on April 23, though I'm currently running salt from the official apt repo.
Note that this may also be a python2/python3 issue, as I both updated salt and switched from python 2 to python 3.
Setup
https://github.com/fake-name/AutoTriever/tree/master/marshaller
Steps to Reproduce Issue
Execute
salt_runner.py ltest
from https://github.com/fake-name/AutoTriever/tree/master/marshallerNote: this will create a linode VM.
You can also do
salt_runner.py dtest
(digital ocean),salt_runner.py vtest
(vultr) and a set of others. See the output fromsalt_runner.py
without args.Versions Report