No way to cleanly stop service once started

Bug #1309406 reported by Sulochan Acharya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-entropy
Status tracked in Trunk
Trunk
New
High
Pranesh

Bug Description

Currently if you start the service like so:

python entropy/ start-engine ... ....

There is not way to cleanly stop it. This is because, we are running an executor with infinite while loop inside:
https://github.com/stackforge/entropy/blob/master/entropy/engine.py#L158

When this is the case excecutor.shutdown will not work, and the python program will not stop untill the pending future is done executing ... which in this case is never. It will not process Ctrl-C either.

Revision history for this message
Pranesh (praneshpg) wrote :

I plan to work on this next. Planned fix is to use same technique as adding audit/repair scripts, the stop-engine call will modify the engines.cfg file that holds currently running engine.Any ideas about cleanly killing it/better startup are welcome.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.