Merge "Fixes unusable Guru meditation report"
This commit is contained in:
commit
7a402c5858
@ -23,6 +23,7 @@ from oslo_config import cfg
|
|||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
try:
|
try:
|
||||||
from oslo_reports import guru_meditation_report as gmr
|
from oslo_reports import guru_meditation_report as gmr
|
||||||
|
from oslo_reports import opts as gmr_opts
|
||||||
except ImportError:
|
except ImportError:
|
||||||
gmr = None
|
gmr = None
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ def main():
|
|||||||
ironic_service.prepare_service(sys.argv)
|
ironic_service.prepare_service(sys.argv)
|
||||||
|
|
||||||
if gmr is not None:
|
if gmr is not None:
|
||||||
|
gmr_opts.set_defaults(CONF)
|
||||||
gmr.TextGuruMeditation.setup_autorun(version)
|
gmr.TextGuruMeditation.setup_autorun(version)
|
||||||
else:
|
else:
|
||||||
LOG.debug('Guru meditation reporting is disabled '
|
LOG.debug('Guru meditation reporting is disabled '
|
||||||
|
@ -25,6 +25,7 @@ from oslo_config import cfg
|
|||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
try:
|
try:
|
||||||
from oslo_reports import guru_meditation_report as gmr
|
from oslo_reports import guru_meditation_report as gmr
|
||||||
|
from oslo_reports import opts as gmr_opts
|
||||||
except ImportError:
|
except ImportError:
|
||||||
gmr = None
|
gmr = None
|
||||||
from oslo_service import service
|
from oslo_service import service
|
||||||
@ -78,7 +79,8 @@ def main():
|
|||||||
ironic_service.prepare_service(sys.argv)
|
ironic_service.prepare_service(sys.argv)
|
||||||
|
|
||||||
if gmr is not None:
|
if gmr is not None:
|
||||||
gmr.TextGuruMeditation.setup_autorun(version)
|
gmr_opts.set_defaults(CONF)
|
||||||
|
gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
|
||||||
else:
|
else:
|
||||||
LOG.debug('Guru meditation reporting is disabled '
|
LOG.debug('Guru meditation reporting is disabled '
|
||||||
'because oslo.reports is not installed')
|
'because oslo.reports is not installed')
|
||||||
|
6
releasenotes/notes/fix-gmr-37332a12065c09dc.yaml
Normal file
6
releasenotes/notes/fix-gmr-37332a12065c09dc.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixes state report via Guru Meditation Reports that did not work
|
||||||
|
previously because of empty ``log_dir`` and no way to configure
|
||||||
|
this configuration option.
|
@ -10,6 +10,7 @@ mock>=3.0.0 # BSD
|
|||||||
Babel!=2.4.0,>=2.3.4 # BSD
|
Babel!=2.4.0,>=2.3.4 # BSD
|
||||||
PyMySQL>=0.7.6 # MIT License
|
PyMySQL>=0.7.6 # MIT License
|
||||||
iso8601>=0.1.11 # MIT
|
iso8601>=0.1.11 # MIT
|
||||||
|
oslo.reports>=1.18.0 # Apache-2.0
|
||||||
oslotest>=3.2.0 # Apache-2.0
|
oslotest>=3.2.0 # Apache-2.0
|
||||||
stestr>=1.0.0 # Apache-2.0
|
stestr>=1.0.0 # Apache-2.0
|
||||||
psycopg2>=2.7.3 # LGPL/ZPL
|
psycopg2>=2.7.3 # LGPL/ZPL
|
||||||
|
@ -17,6 +17,7 @@ namespace = oslo.middleware.http_proxy_to_wsgi
|
|||||||
namespace = oslo.concurrency
|
namespace = oslo.concurrency
|
||||||
namespace = oslo.policy
|
namespace = oslo.policy
|
||||||
namespace = oslo.log
|
namespace = oslo.log
|
||||||
|
namespace = oslo.reports
|
||||||
namespace = oslo.service.service
|
namespace = oslo.service.service
|
||||||
namespace = oslo.service.periodic_task
|
namespace = oslo.service.periodic_task
|
||||||
namespace = oslo.service.sslutils
|
namespace = oslo.service.sslutils
|
||||||
|
Loading…
x
Reference in New Issue
Block a user