Bug 1331307

Summary: [foreman-debug] collect /etc/qpid-dispatch/qdrouterd.conf
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: Foreman DebugAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.8CC: bbuckingham, bkearney, ehelms, kbidarka, sthirugn
Target Milestone: UnspecifiedKeywords: PrioBumpField, PrioBumpGSS, PrioBumpPM, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: katello-3.0.0-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:21:50 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:

Description Pavel Moravec 2016-04-28 09:08:35 UTC
Description of problem:
qdrouterd plays important role in katello communication between Satellite and Capsule / Content Hosts. In case its config is malformed (or e.g. lacks some option after failing upgrade), various issues can occur that are hard to be identified without the config file.

Please collect /etc/qpid-dispatch/qdrouterd.conf


Version-Release number of selected component (if applicable):
katello-debug-3.0.0-3.el7sat.noarch


How reproducible:
100%


Steps to Reproduce:
1. foreman-debug
2. Unpack it
3. Check if /etc/qpid-dispatch/qdrouterd.conf is present


Actual results:
No /etc/qpid-dispatch/qdrouterd.conf collected.


Expected results:
/etc/qpid-dispatch/qdrouterd.conf to be collected


Additional info:
Proposing patch:

--- /usr/share/foreman/script/foreman-debug.d/katello-debug.sh	2016-04-01 17:19:17.000000000 +0200
+++ /usr/share/foreman/script/foreman-debug.d/katello-debug.sh.new	2016-04-28 11:05:07.863000000 +0200
@@ -55,6 +55,9 @@ fi
 add_cmd "qpid-stat --ssl-certificate=/etc/pki/katello/qpid_client_striped.crt -b amqps://localhost:5671 -q" "qpid_stat_queues"
 add_cmd "qpid-stat --ssl-certificate=/etc/pki/katello/qpid_client_striped.crt -b amqps://localhost:5671 -u" "qpid_stat_subscriptions" 
 
+# Qpid dispatch router (*)
+add_files /etc/qpid-dispatch/qdrouterd.conf
+
 # Gofer
 add_files /etc/gofer
 add_files /var/log/gofer


(in longer term, there should be "if [ $NOGENERIC -eq 0 ]; then" clause but until sosreport collects the file in downstream (matter of 1-2 years, due to [1]), I suggest collecting it every time in foreman-debug)

[1] https://github.com/sosreport/sos/issues/623

Comment 2 Pavel Moravec 2016-04-29 06:11:43 UTC
*** Bug 1331301 has been marked as a duplicate of this bug. ***

Comment 3 Bryan Kearney 2016-04-29 12:11:04 UTC
Created redmine issue http://projects.theforeman.org/issues/14881 from this bug

Comment 4 Bryan Kearney 2016-05-07 16:16:23 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14881 has been closed

Comment 5 Kedar Bidarkar 2016-05-24 09:47:09 UTC
~]# tar xvf /tmp/foreman-debug-ZA9ep.tar.xz | grep -i qdrouterd
foreman-debug-ZA9ep/etc/qpid-dispatch/qdrouterd.conf


VERIFIED with sat62-sna12.1

Comment 6 Bryan Kearney 2016-07-27 11:21:50 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://access.redhat.com/errata/RHBA-2016:1501