]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add Guru Meditation Reports support to Neutron services
authorIhar Hrachyshka <ihrachys@redhat.com>
Thu, 26 Nov 2015 16:17:43 +0000 (17:17 +0100)
committerIhar Hrachyshka <ihrachys@redhat.com>
Thu, 26 Nov 2015 16:35:07 +0000 (17:35 +0100)
This new feature allows services to dump valuable debug info to stderr
on SIGUSR2 signal.

Change-Id: If17b57f687558e23b830eae5ee1f8900356355e4
Implements: blueprint guru-meditation-report

neutron/cmd/__init__.py
releasenotes/notes/oslo-reports-166a169037bf64f2.yaml [new file with mode: 0644]
requirements.txt

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..29fcdc5da97d38a9b7ee46cf7adccc7d3f4f9644 100644 (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)
diff --git a/releasenotes/notes/oslo-reports-166a169037bf64f2.yaml b/releasenotes/notes/oslo-reports-166a169037bf64f2.yaml
new file mode 100644 (file)
index 0000000..dbd5963
--- /dev/null
@@ -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.
index d0420b08db58f9984220c87c66eceb9ade28d565..016225bc33aadb6b40a1e6f4b325a0815618ae66 100644 (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