Bug 1133497

Summary: Candlepin fails to initialize due to missing certificates (puppet ordering issue)
Product: Red Hat Satellite Reporter: Ivan Necas <inecas>
Component: InstallationAssignee: Ivan Necas <inecas>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: bbuckingham, erezende, xdmoon
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-25 15:13:17 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: 1115190    

Description Ivan Necas 2014-08-25 10:12:47 UTC
Description of problem:
In some configurations, the ordering of the puppet resoruces causes
candlepin not to be initialized properly, issuing

/Stage[main]/Certs::Candlepin/File[/etc/candlepin/certs/amqp]: Scheduling refresh of Exec[create candlepin qpid exchange]
[cloud-qe-11.idmqe.lab.eng.bos.redhat.com] out: [ WARN 2014-08-24 17:38:30 verbose]  /Stage[main]/Certs::Candlepin/Exec[create candlepin qpid exchange]/returns: Failed: ConnectError: [Errno 111] Connection refused
[cloud-qe-11.idmqe.lab.eng.bos.redhat.com] out: [ERROR 2014-08-24 17:38:30 verbose]  qpid-config --ssl-certificate /etc/pki/katello/certs/java-client.crt --ssl-key /etc/pki/katello/private/java-client.key -b 'amqps://cloud-qe-11.idmqe.lab.eng.bos.redhat.com:5671' add exchange topic event --durable returned 1 instead of one of

Version-Release number of selected component (if applicable):
katello-installer-0.0.61-1.el7sat.noarch

How reproducible:
Sometimes (Puppet non-deterministic) ordering issue)

Steps to Reproduce:
1. katello-installer

Actual results:
Installer fails

Expected results:
Installer succeeds

Additional info:

Workaround:

rm /var/lib/pulp/init.flag
echo >> /etc/foreman/database.yml
katello-installer

Comment 2 Ivan Necas 2014-08-25 15:12:56 UTC
It turned out to be an issue when qpid was not ready fully after the start

Comment 3 Ivan Necas 2014-08-25 15:13:17 UTC

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