Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1131720

Summary: HA logging improvements - log prefix with status and ID.
Product: Red Hat Enterprise MRG Reporter: Alan Conway <aconway>
Component: qpid-cppAssignee: Alan Conway <aconway>
Status: CLOSED ERRATA QA Contact: Frantisek Reznicek <freznice>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 3.0CC: esammons, freznice, jross, zkraus
Target Milestone: 3.2Keywords: Improvement
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-cpp-0.32-1 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-08 13:09:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alan Conway 2014-08-19 22:35:49 UTC
Description of problem:

Include broker status and ID in (almost) all logging messages.
Makes it much easier to track broker state and interactions.
 
Requested by QE to aid testing & debugging: https://bugzilla.redhat.com/show_bug.cgi?id=1122966#c4

Comment 1 Alan Conway 2014-08-19 22:37:23 UTC
------------------------------------------------------------------------
r1619003 | aconway | 2014-08-19 18:34:15 -0400 (Tue, 19 Aug 2014) | 15 lines

QPID-6020: HA logging improvements - log prefix with status and ID.

Include broker status and ID in (almost) all logging messages.
Makes it much easier to track broker state and interactions.

Sundry other logging improvements including:
- Demote noisy messages to trace - connections from rgmanager status checks, searching for primary.
- Rationalise start-up messages.
- Improved queue state detail replicating subscription and queue guard initialization.
- Fail to prepare TX is error.
- Collect all primary TX errors into one.
- Fix status of catchup brokers in primary membership for logging.
- Add process name/PID info to client connection messages.
- Various minor message tweaks.

------------------------------------------------------------------------

Comment 2 Alan Conway 2014-08-21 20:56:06 UTC
Also should include:

------------------------------------------------------------------------
r1619581 | aconway | 2014-08-21 16:55:51 -0400 (Thu, 21 Aug 2014) | 5 lines

QPID-6020: HA logging improvements - log prefix with status and ID.

Fix log prefix for RemoteBackup and PrimaryTxObserver objects.
Use short UUIDs for showing UUID sets in logs.

------------------------------------------------------------------------

Comment 4 Frantisek Reznicek 2015-08-12 10:46:43 UTC
Thee feature has been implemented and helps with HA troubleshooting as suggested in original bug 1122966, comment 4.

Tested on RHEL 6.7 i/x and also 7.1x on packages:
  python-qpid-proton-doc-0.9-4.el6.noarch
  python-qpid-proton-0.9-4.el6.x86_64
  python-qpid-qmf-0.34-1.el6.x86_64
  python-qpid-0.34-1.el6.noarch
  qpid-cpp-client-devel-docs-0.34-1.el6.noarch
  qpid-cpp-client-devel-0.34-1.el6.x86_64
  qpid-cpp-client-rdma-0.34-1.el6.x86_64
  qpid-cpp-client-0.34-1.el6.x86_64
  qpid-cpp-debuginfo-0.34-1.el6.x86_64
  qpid-cpp-server-devel-0.34-1.el6.x86_64
  qpid-cpp-server-ha-0.34-1.el6.x86_64
  qpid-cpp-server-linearstore-0.34-1.el6.x86_64
  qpid-cpp-server-rdma-0.34-1.el6.x86_64
  qpid-cpp-server-xml-0.34-1.el6.x86_64
  qpid-cpp-server-0.34-1.el6.x86_64
  qpid-java-client-0.32-2.el6.noarch
  qpid-java-common-0.32-2.el6.noarch
  qpid-java-example-0.32-2.el6.noarch
  qpid-jca-xarecovery-0.22-2.el6.noarch
  qpid-jca-0.22-2.el6.noarch
  qpid-jms-client-docs-0.3.0-3.el6.noarch
  qpid-jms-client-examples-0.3.0-3.el6.noarch
  qpid-jms-client-maven-repo-0.3.0-3.el6.noarch
  qpid-jms-client-0.3.0-3.el6.noarch
  qpid-proton-c-devel-0.9-4.el6.x86_64
  qpid-proton-c-0.9-4.el6.x86_64
  qpid-proton-debuginfo-0.9-4.el6.x86_64
  qpid-proton-java-maven-repo-0.9.1-4.el6.noarch
  qpid-proton-java-0.9.1-4.el6.noarch
  qpid-qmf-debuginfo-0.34-1.el6.x86_64
  qpid-qmf-devel-0.34-1.el6.x86_64
  qpid-qmf-0.34-1.el6.x86_64
  qpid-tools-0.34-1.el6.noarch

-> VERIFIED

Comment 6 errata-xmlrpc 2015-10-08 13:09:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2015-1879.html