db11260c11
Some services such as nova introduced GMR for API wsgi application so that GMR can be generated via a file handler. However the current setup method tries to register signal handler and causes warnings. For example we are seeing the following error when starting nova-api by apache + mod_wsgi. mod_wsgi (pid=80323): Callback registration for signal 12 ignored. File "/var/www/cgi-bin/nova/nova-api", line 52, in <module> application = init_application() File "/usr/lib/python3.9/site-packages/nova/api/openstack/compute/wsgi.py", line 20, in init_application return wsgi_app.init_application(NAME) File "/usr/lib/python3.9/site-packages/nova/api/openstack/wsgi_app.py", line 128, in init_application init_global_data(conf_files, name) File "/usr/lib/python3.9/site-packages/nova/utils.py", line 1122, in wrapper return func(*args, **kwargs) File "/usr/lib/python3.9/site-packages/nova/api/openstack/wsgi_app.py", line 105, in init_global_data gmr.TextGuruMeditation.setup_autorun( File "/usr/lib/python3.9/site-packages/oslo_reports/guru_meditation_report.py", line 152, in setup_autorun cls._setup_signal(signal.SIGUSR2, File "/usr/lib/python3.9/site-packages/oslo_reports/guru_meditation_report.py", line 185, in _setup_signal signal.signal(signum, This introduces the new argument so that we can disable signal handler completely to avoid such warnings. Change-Id: I95170542fecb493260a22d9148f3a2777207cb0e |
||
---|---|---|
.. | ||
generators | ||
locale/en_GB/LC_MESSAGES | ||
models | ||
tests | ||
views | ||
__init__.py | ||
_i18n.py | ||
_utils.py | ||
guru_meditation_report.py | ||
opts.py | ||
report.py |