From: Ihar Hrachyshka Date: Thu, 26 Nov 2015 16:17:43 +0000 (+0100) Subject: Add Guru Meditation Reports support to Neutron services X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a63c413f05c4b7ad8d622c8fe8b215531d38bf2b;p=openstack-build%2Fneutron-build.git 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 --- diff --git a/neutron/cmd/__init__.py b/neutron/cmd/__init__.py index e69de29bb..29fcdc5da 100644 --- a/neutron/cmd/__init__.py +++ b/neutron/cmd/__init__.py @@ -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) diff --git a/releasenotes/notes/oslo-reports-166a169037bf64f2.yaml b/releasenotes/notes/oslo-reports-166a169037bf64f2.yaml new file mode 100644 index 000000000..dbd5963fb --- /dev/null +++ b/releasenotes/notes/oslo-reports-166a169037bf64f2.yaml @@ -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. diff --git a/requirements.txt b/requirements.txt index d0420b08d..016225bc3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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