oslo.reports/oslo_reports
Kashyap Chamarthy 45b1c02d11 guru_meditation_report: Use SIGUSR2 instead of SIGUSR1
Currently the setup_autorun() method expects the user-defined signal,
SIGUSR1, to generate Guru Meditation Report upon killing a Nova Compute
process, while supplying the said signal.

However, testing in a DevStack environment, manually attempting to kill
a Nova Compute process with SIGUSR1 [kill -s USR1 `pgrep nova-compute`]
does not result in the process being terminated, and no error report is
generated.

It turns out[*] that SIGUSR1 is used by Apache 'mod_wsgi'.

Using, the other user-defined signal, SIGUSR2 resolves this issue (i.e.
'nova-compute' process is terminated, and the Guru Meditation Report is
generated successfully).

So, use the signal USR2 instead of USR1.  Also, update the corresponding
tests.

DocImpact: With this patch merged, to generate a successful Guru
           Meditation Report, supply the signal USR2 while killing a
           Nova Compute process [`kill -s USR2 `pgrep nova-compute`].

[*] https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIRestrictSignal

Change-Id: I9d3b6079ba2cca41fe4723723a6f80b2c3c0b9c0
2015-09-14 16:51:33 +02:00
..
generators Guru Meditation Reports broken without version_string 2015-06-22 16:57:05 -04:00
models Fix GMR break with new psutil versions 2015-07-06 00:21:12 +00:00
tests guru_meditation_report: Use SIGUSR2 instead of SIGUSR1 2015-09-14 16:51:33 +02:00
views Fix intermittent test failures because of sort order 2015-06-19 15:42:43 -04:00
__init__.py Graduation Prep: Initial Import Fixup 2015-06-03 13:46:39 -04:00
_i18n.py Add a configuration for the directory to generate gmr 2015-08-25 22:22:56 -04:00
_utils.py Graduation Prep: Use six.text_type instead of str 2015-06-03 14:45:50 -04:00
guru_meditation_report.py guru_meditation_report: Use SIGUSR2 instead of SIGUSR1 2015-09-14 16:51:33 +02:00
opts.py Add a configuration for the directory to generate gmr 2015-08-25 22:22:56 -04:00
report.py Graduation Prep: Use six.text_type instead of str 2015-06-03 14:45:50 -04:00