Introduce Guru Meditation Reports into Nova
This commit integrates functionality from the `openstack.common.report` module into Nova. This enables Nova services to receive SIGUSR1 and print a Guru Meditation Report to stderr. The required modules were added to 'openstack-common.conf' as well. Change-Id: I224a426dad084f0e738069207ffbffe7f7935a17 Implements: blueprint guru-meditation-report
This commit is contained in:
@@ -22,8 +22,10 @@ from oslo.config import cfg
|
||||
|
||||
from nova import config
|
||||
from nova.openstack.common import log as logging
|
||||
from nova.openstack.common.report import guru_meditation_report as gmr
|
||||
from nova import service
|
||||
from nova import utils
|
||||
from nova import version
|
||||
|
||||
|
||||
CONF = cfg.CONF
|
||||
@@ -34,6 +36,9 @@ def main():
|
||||
config.parse_args(sys.argv)
|
||||
logging.setup("nova")
|
||||
utils.monkey_patch()
|
||||
|
||||
gmr.TextGuruMeditation.setup_autorun(version)
|
||||
|
||||
should_use_ssl = 'osapi_compute' in CONF.enabled_ssl_apis
|
||||
server = service.WSGIService('osapi_compute', use_ssl=should_use_ssl)
|
||||
service.serve(server, workers=server.workers)
|
||||
|
||||
Reference in New Issue
Block a user