Bug 1302505

Summary: Puppet agent is not automatically registering to Satellte(puppet master)
Product: Red Hat Satellite Reporter: jnikolak
Component: ProvisioningAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: urgent    
Version: 6.1.6   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-28 03:03:56 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 jnikolak 2016-01-28 01:47:36 UTC
Steps to Reproduce:

1) Create Vm Machine in vmware with Red hat 6 or 7.

2) Then register and subscribe the vm to Satellite

3) Download the packages, puppet

4) populate the /etc/puppet.conf
Other Details and 
certificate_revocation = false

5) Run puppet agent -t -o 

6) Sign the certificate with (because we have no autosign)
puppet cert sign --all


7) Then run puppet-agent -t -o ( we have to run puppet agent again to get environment)
Getting error:
Exiting; no certificate found and waitforcert is disabled



We found workaround, but this requires extra steps, 
########################################

1) Create Vm Machine in vmware with Red hat 6 or 7.

2) Then register and subscribe the vm to Satellite

3) Download the packages, puppet

4) populate the /etc/puppet.conf
Other Details and 
certificate_revocation = false

5) Run puppet agent -t -o 

6) Sign the certificate with (because we have no autosign)
puppet cert sign --all

7) From Satellite Master, run :
puppet cert clean hostname,

8) from puppet agent(host) 
rm -rf /var/lib/puppet/ssl/*

9) Then run puppet-agent -t -o ( we have to run puppet agent again to get environment)

10) Go to Satellite and assign the puppet environment

11) it now works


How can we get this working without the extra steps?

Comment 1 jnikolak 2016-01-28 03:03:56 UTC
this can be closed, issue was resolved by:

The issue was resolved by signing the certificate before puppet agent was run.
This was resolved by running adding a timer to puppet with -w option.

We also added certificate_revocation = false however not  confirmed if this fix helped the issue.
In addition to that, the order of enabling and puppet was changed.