Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1337846

Summary: Upgrade[619 -> sat62 snap12] candlepin logs raises ERROR Unable to instantiate AMQPBusProvider
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: UpgradesAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED NOTABUG QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-26 09:13:41 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:
Bug Depends On:    
Bug Blocks: 1335807    
Attachments:
Description Flags
complete exception
none
foreman-debug logs none

Description Sachin Ghai 2016-05-20 08:39:04 UTC
Description of problem:
I was trying upgrade from [619 -> sat62 snap12] and performed following steps:

1. Disable sat6.1 repo 
2. Set/enable sat6.2 repo
3. yum install satellite -y
4. yum update -y
5. satellite-installer --scenario satellite --upgrade 

While installer was running, following exception raised in candlepin logs:

==> /var/log/candlepin/candlepin.log <==
2016-05-20 04:18:39,208 [thread=localhost-startStop-1] [=, org=] ERROR org.candlepin.guice.AMQPBusPubProvider - Unable to instantiate AMQPBusProvider: 
javax.jms.JMSException: Error creating connection: Connection refused
	at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:128) ~[qpid-client-0.30.jar:0.30]
	at org.candlepin.guice.AMQPBusPubProvider.init(AMQPBusPubProvider.java:84) ~[AMQPBusPubProvider.class:na]
	at org.candlepin.guice.AMQPBusPubProvider.<init>(AMQPBusPubProvider.java:73) ~[AMQPBusPubProvider.class:na]
	at org.candlepin.guice.AMQPBusPubProvider$$FastClassByGuice$$ef75a35a.newInstance(<generated>) [guice-3.0.jar:na]
	at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40) [guice-3.0.jar:na]
	at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60) [guice-3.0.jar:na]
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85) [guice-3.0.jar:

Version-Release number of selected component (if applicable):
Upgrade[ sat619 -> sat62 snap12]

How reproducible:


Steps to Reproduce:
1. Disable sat6.1 repo 
2. Set/enable sat6.2 repo
3. yum install satellite -y
4. yum update -y
5. satellite-installer --scenario satellite --upgrade 

Actual results:

2016-05-20 04:18:39,208 [thread=localhost-startStop-1] [=, org=] ERROR org.candlepin.guice.AMQPBusPubProvider - Unable to instantiate AMQPBusProvider: 
javax.jms.JMSException: Error creating connection: Connection refused
	at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:128) ~[qpid-client-0.30.jar:0.30]
	at org.candlepin.guice.AMQPBusPubProvider.init(AMQPBusPubProvider.java:84) ~[AMQPBusPubProvider.class:na

Expected results:
no execption should be raised in logs while running upgrade.

Additional info:

Comment 1 Sachin Ghai 2016-05-20 08:39:53 UTC
Created attachment 1159848 [details]
complete exception

Comment 2 Sachin Ghai 2016-05-20 09:41:35 UTC
Created attachment 1159864 [details]
foreman-debug logs

Comment 4 Brad Buckingham 2016-05-24 14:49:08 UTC
I have not been able to reproduce this issue on my environment.  I am testing with changes that will be coming in snap 13; therefore, it could be related to those changes or environmental or procedural differences.  For now, I am going to triage this in, as we need to ensure the bug is resolved.

Comment 5 Sachin Ghai 2016-05-26 09:13:41 UTC
This issue appears only when we run "yum install satellite -y" before "yum update -y". Otherwise not reproducible. I'm closing this issue now because as per dev satellite package installed with yum update -y so no need to install satellite package before yum update. I will re-open if come across again with standard upgrade procedure.