Jira (PUP-11327) Puppet Agent for Window environment no longer can be override by ENC

18 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Oct 22, 2021, 1:48:02 PM10/22/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Puppet / Bug PUP-11327
Puppet Agent for Window environment no longer can be override by ENC
Change By: Josh Cooper
Summary: Puppet Agent for Window environment no longar longer can be override by ENC
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

MARCIN BOJKO (Jira)

unread,
Oct 23, 2021, 2:49:03 AM10/23/21
to puppe...@googlegroups.com
MARCIN BOJKO commented on Bug PUP-11327
 
Re: Puppet Agent for Window environment no longer can be override by ENC

Josh Cooper - I don't think this is expected.
First, when you're doing an upgrade, you're jumping into the predecessor's cache, and lastrun.
Even if new installation resets cache and lastrun, second run of puppet should jump in with proper env settings, right?
Well, this is not happening.
Every run ends with (from debug)

Debug: Environment not passed via CLI and no catalog was given, attempting to find out the last server-specified environment
Debug: Could not find a usable environment in the lastrunfile. Either the file does not exist, does not have the required keys, or the values of 'initial_environment' and 'converged_environment' are identical.
Info: Using environment 'production'

 

and we're landing with a broken catalog (well, this is expected)

puppet agent -t --noop
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 
Error: Could not retrieve catalog; skipping run

Josh Cooper (Jira)

unread,
Oct 24, 2021, 11:58:03 PM10/24/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-11327

Please include the redacted output of puppet agent -t --debug

MARCIN BOJKO (Jira)

unread,
Oct 25, 2021, 11:32:02 AM10/25/21
to puppe...@googlegroups.com
MARCIN BOJKO commented on Bug PUP-11327

puppet-agent 6.24.0

puppetserver  6.16.1

Yes, the failure of an agent in the above case is perfectly understandable as the agent is not delivering facts. I'll try to bump agent and server and if it won't help I'll redact debug

MARCIN BOJKO (Jira)

unread,
Oct 25, 2021, 11:53:04 AM10/25/21
to puppe...@googlegroups.com
MARCIN BOJKO commented on Bug PUP-11327

Josh Cooper - you were right, after bumping both agent and server , puppet 6.25 on windows started to work properly
Thanks!

Josh Cooper (Jira)

unread,
Oct 25, 2021, 6:39:01 PM10/25/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-11327

Thanks for your help MARCIN BOJKO! I filed PUP-11328 as it would be better if the agent didn't lose track of its environment after upgrading to 6.25/7.12, and it would avoid the catalog compilation issue you ran into. I'm going to close this as a dup.

Reply all
Reply to author
Forward
0 new messages