Puppet: System Administration Automated

Support

Ticket #132 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

puppetd --waitforcert broken in 0.16.3

Reported by: mccune@math.ohio-state.edu Assigned to: luke
Priority: normal Milestone:
Component: client Version: 0.16.3
Severity: critical Keywords: waitforcert getcert certficate bootstrap
Cc: Triage Stage:
Attached Patches: Complexity:

Description

After installing puppet-latest (April 30, 0.16.3), every time I try to bootstrap my client, I get:

jeff:~ root# puppetd --server manage --waitforcert 60 --test err: No certificate; running with reduced functionality. /usr/bin/puppetd:319: undefined local variable or method `waitforcert' for main:Object (Name Error?)

Line 319 of puppetd seems to be referencing waitforcert instead of options[:waitforcert], which may be the cause. Unfortunately, when I change occurrences of "waitforcert" to options[:waitforcert] around line 319, I get the following runtime error:

jeff:~ root# puppetd --server manage --waitforcert 60 --test --verbose err: No certificate; running with reduced functionality. info: Creating a new certificate request for jeff.math.ohio-state.edu info: Requesting certificate err: Could not request certificate: Certificate retrieval failed: undefined method `getcert' for #<#<Class:0x137e800>:0x137c910>

Of note, this bug is not present in version 0.16.2. --waitforcert 60 works fine in the previous release.

Change History