Add Guru Meditation Reports support to Neutron services

This new feature allows services to dump valuable debug info to stderr
on SIGUSR2 signal.

Change-Id: If17b57f687558e23b830eae5ee1f8900356355e4
Implements: blueprint guru-meditation-report
This commit is contained in:
Ihar Hrachyshka 2015-11-26 17:17:43 +01:00
parent 7490891157
commit a63c413f05
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_reports import guru_meditation_report as gmr
from neutron import version
_version_string = version.version_info.release_string()
gmr.TextGuruMeditation.setup_autorun(version=_version_string)

View File

@ -0,0 +1,6 @@
---
prelude: >
Neutron is integrated with Guru Meditation Reports library.
features:
- Neutron services should now respond to SIGUSR2 signal by dumping valuable
debug information to standard error output.

View File

@ -34,6 +34,7 @@ oslo.log>=1.12.0 # Apache-2.0
oslo.messaging!=2.8.0,>2.6.1 # Apache-2.0
oslo.middleware>=2.9.0 # Apache-2.0
oslo.policy>=0.5.0 # Apache-2.0
oslo.reports>=0.6.0 # Apache-2.0
oslo.rootwrap>=2.0.0 # Apache-2.0
oslo.serialization>=1.10.0 # Apache-2.0
oslo.service>=0.12.0 # Apache-2.0