Bug 1375659

Summary: Upgrade to 6.2 does not delete $(fqdn):event queue what can end up in 503 error in WebUI
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: UpgradesAssignee: Chris Roberts <chrobert>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: urgent    
Version: 6.2.0CC: bbuckingham, chrobert, jcallaha, ktordeur, mmccune, xdmoon
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: http://projects.theforeman.org/issues/16863
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-02 10:12:09 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 Pavel Moravec 2016-09-13 15:39:25 UTC
Description of problem:
It has been noticed in several cases that upgrade from 6.1.9 to 6.2 removed gutterball bits (thats ok) but did not remove its queue $(fqdn):event in qpid broker.

Since candlepin sends events to that queue even in 6.2, the queue gets full after some time, causing candlepin either slowed down or raising errors (I can explain why if interested). That has severe impact to whole Satellite, like performance down, or even WebUI returning 503 (passenger serves only rhsm/candlepin requests until they timeout).

The upgrade has to delete the queue in either way. It is safe for candlepin, since candlepin sends the events to a qpid exchange that routes the messages to the queue - candlepin itself does not know about presence of the queue at all.


Version-Release number of selected component (if applicable):
Sat 6.2

How reproducible:
??? (maybe 100%)


Steps to Reproduce:
1. Install Sat6.1.9
2. Upgrade to 6.2
3. qpid-stat -q --ssl-certificate=/etc/pki/katello/qpid_client_striped.crt -b amqps://localhost:5671 | grep :event



Actual results:
3. returns:
  pmoravec-sat61-rhel7.gsslab.brq.redhat.com:event                                     Y                     81    81      0    6.93m  6.93m       0         0     2

And the counters (81 in above example) are rising over the time (just trigger some candlepin work for that)


Expected results:
3. returns nothing


Additional info:

Comment 3 Chris Roberts 2016-11-02 10:09:22 UTC
Fixed with PR https://github.com/Katello/katello-installer/pull/409

Comment 4 Chris Roberts 2016-11-02 10:12:09 UTC

*** This bug has been marked as a duplicate of bug 1382524 ***