API doesn't quit when api.workers > 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Searchlight |
New
|
Medium
|
Hari |
Bug Description
When the API is configured to have more than 0 workers (the default), it fails to exit cleanly with Ctrl+C:
In config:
[api]
workers = 0
After running the API:
searchlight-api --config-file etc/searchlight
....
2016-01-26 17:14:52.209 4696 INFO searchlight.
2016-01-26 17:14:52.210 4696 INFO searchlight.
2016-01-26 17:14:52.212 4698 INFO eventlet.
Ctrl+C, then log continues:
2016-01-26 17:15:38.962 4696 INFO searchlight.
2016-01-26 17:15:38.965 4696 INFO searchlight.
2016-01-26 17:15:38.966 4699 INFO eventlet.
It looks like there's a problem with detecting exit codes, but I've not dug into it more yet.
tags: | added: low-hanging-fruit |
Changed in searchlight: | |
importance: | Undecided → High |
Changed in searchlight: | |
assignee: | nobody → Hari (hosingh000) |
Changed in searchlight: | |
assignee: | Hari (hosingh000) → nobody |
I can't reproduce this bug
/usr/local/ bin/searchlight -api --config-file /etc/searchligh t/searchlight. conf versionutils [-] Deprecated: WritableLogger() is deprecated as of Liberty and may be removed in Mitaka. It will not be superseded. authtoken" is deprecated. Use option "user-name" from group "keystone_ authtoken" . are.auth_ token [-] signing_dir mode is 0755 instead of 0700 common. wsgi [-] Starting 3 workers common. wsgi [-] Started child 106449 wsgi.server [-] (106449) wsgi starting up on http:// 0.0.0.0: 9393/ common. wsgi [-] Started child 106450 wsgi.server [-] (106450) wsgi starting up on http:// 0.0.0.0: 9393/ common. wsgi [-] Started child 106451 wsgi.server [-] (106451) wsgi starting up on http:// 0.0.0.0: 9393/ common. wsgi [-] Removed dead child 106449 common. wsgi [-] Started child 106458 wsgi.server [-] (106458) wsgi starting up on http:// 0.0.0.0: 9393/ wsgi.server [-] (106458) wsgi exited, is_accepting=True common. wsgi [-] Child 106458 exiting normally
Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
2015-12-11 17:09:31.257 WARNING oslo_log.
2015-12-11 17:09:31.424 WARNING oslo_config.cfg [-] Option "policy_file" from group "DEFAULT" is deprecated. Use option "policy_file" from group "oslo_policy".
2015-12-11 17:09:31.430 WARNING oslo_config.cfg [-] Option "username" from group "keystone_
2015-12-11 17:09:31.431 WARNING keystonemiddlew
2015-12-11 17:09:31.438 INFO searchlight.
2015-12-11 17:09:31.441 INFO searchlight.
2015-12-11 17:09:31.442 INFO eventlet.
2015-12-11 17:09:31.445 INFO searchlight.
2015-12-11 17:09:31.446 INFO eventlet.
2015-12-11 17:09:31.450 INFO searchlight.
2015-12-11 17:09:31.451 INFO eventlet.
^C2015-12-11 17:09:33.750 INFO searchlight.
2015-12-11 17:09:33.754 INFO searchlight.
2015-12-11 17:09:33.755 INFO eventlet.
2015-12-11 17:09:33.757 INFO eventlet.
2015-12-11 17:09:33.758 INFO searchlight.