Guru Meditation Report (GMR) supports report generation to file
in a configured directory. By default it will genarate
report to stdout stream. To configure GMR you have to add the
following section to cinder.conf:
[oslo_reports]
log_dir = '/path/to/logs/dir'
DocImpact
Change-Id: Ia32cae8e4fe937f2512693acb7fcc552f01efa01
Closes-Bug: #
1546199
from oslo_config import cfg
from oslo_log import log as logging
from oslo_reports import guru_meditation_report as gmr
+from oslo_reports import opts as gmr_opts
from cinder import i18n
i18n.enable_lazy()
# TODO(e0ne): get a rid of code duplication in cinder.cmd module in Mitaka
def main():
objects.register_all()
+ gmr_opts.set_defaults(CONF)
CONF(sys.argv[1:], project='cinder',
version=version.version_string())
logging.setup(CONF, "cinder")
utils.monkey_patch()
- gmr.TextGuruMeditation.setup_autorun(version)
+ gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
rpc.init(CONF)
from oslo_config import cfg
from oslo_log import log as logging
from oslo_reports import guru_meditation_report as gmr
+from oslo_reports import opts as gmr_opts
from cinder import i18n
i18n.enable_lazy()
def main():
objects.register_all()
+ gmr_opts.set_defaults(CONF)
CONF(sys.argv[1:], project='cinder',
version=version.version_string())
logging.setup(CONF, "cinder")
utils.monkey_patch()
- gmr.TextGuruMeditation.setup_autorun(version)
+ gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
rpc.init(CONF)
launcher = service.process_launcher()
from oslo_config import cfg
from oslo_log import log as logging
from oslo_reports import guru_meditation_report as gmr
+from oslo_reports import opts as gmr_opts
eventlet.monkey_patch()
def main():
objects.register_all()
+ gmr_opts.set_defaults(CONF)
CONF(sys.argv[1:], project='cinder',
version=version.version_string())
logging.setup(CONF, "cinder")
utils.monkey_patch()
- gmr.TextGuruMeditation.setup_autorun(version)
+ gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
server = service.Service.create(binary='cinder-backup')
service.serve(server)
service.wait()
from oslo_config import cfg
from oslo_log import log as logging
from oslo_reports import guru_meditation_report as gmr
+from oslo_reports import opts as gmr_opts
from cinder import i18n
i18n.enable_lazy()
def main():
objects.register_all()
+ gmr_opts.set_defaults(CONF)
CONF(sys.argv[1:], project='cinder',
version=version.version_string())
logging.setup(CONF, "cinder")
utils.monkey_patch()
- gmr.TextGuruMeditation.setup_autorun(version)
+ gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
server = service.Service.create(binary='cinder-scheduler')
service.serve(server)
service.wait()
from oslo_config import cfg
from oslo_log import log as logging
from oslo_reports import guru_meditation_report as gmr
+from oslo_reports import opts as gmr_opts
from cinder import i18n
i18n.enable_lazy()
def main():
objects.register_all()
+ gmr_opts.set_defaults(CONF)
CONF(sys.argv[1:], project='cinder',
version=version.version_string())
logging.setup(CONF, "cinder")
utils.monkey_patch()
- gmr.TextGuruMeditation.setup_autorun(version)
+ gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
launcher = service.get_launcher()
LOG = logging.getLogger(__name__)
service_started = False