Jira (PUP-11374) Puppet Agent 6.25+ breaks feature branch workflow

6 views
Skip to first unread message

Roman Aleksic (Jira)

unread,
Dec 9, 2021, 8:33:02 AM12/9/21
to puppe...@googlegroups.com
Roman Aleksic created an issue
 
Puppet / Bug PUP-11374
Puppet Agent 6.25+ breaks feature branch workflow
Issue Type: Bug Bug
Affects Versions: PUP 6.25.0
Assignee: Unassigned
Created: 2021/12/09 5:32 AM
Priority: Normal Normal
Reporter: Roman Aleksic

Code changes introduced with PUP-10216 break "feature branch" workflow. 

release notes excerpt:

Failure to fetch node definition results in bad pluginsync and cascading failure - Previously, Puppet agents would make a node definition request to the server to find out the correct environment to run in. This request has now been removed, and the agent saves its last used environment in the last_run_summary.yaml file. If the environment is not set in the CLI or config, agents attempt to use the environment in last_run_summary.yaml — only if the previous run had an agent/server environment mismatch. PUP-10216

We manage our environments within Foreman (ENC) and r10k. If an environment does not exist anymore (for example because of a merge in git), the next agent run fails:

# puppet agent -t
Info: Using environment '317_new_feature'
Notice: Environment '317_new_feature' not found on server, skipping initial pluginsync.
Info: Loading facts
Error: Could not retrieve catalog from remote server: Find /puppet/v3/catalog/server11 resulted in 404 with the message: {"message":"Not Found: Could not find environment '317_new_feature'","issue_kind":"RUNTIME_ERROR"}
Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

When working with feature branches environments get created and deleted often. A possible solution may be to introduce a config option to re-enable the initial query to ENC.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Josh Cooper (Jira)

unread,
Dec 9, 2021, 2:20:01 PM12/9/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-11374
 
Re: Puppet Agent 6.25+ breaks feature branch workflow

alro in feature branch workflows, usually you tell the agent which environment to run in, e.g. puppet agent -t --environment 317_new_feature, and it won't run into the issue you're describing. Having the agent make a node request is not something I've ever heard of TBH.

Roman Aleksic (Jira)

unread,
Dec 10, 2021, 7:10:01 AM12/10/21
to puppe...@googlegroups.com

josh I updated the agent on the server host and restarted the puppetserver as suggested. I can confirm it works now as desired. I don't understand why the agent code is relevant in this scenario, but I tip my hat to you for providing the solution so quickly.

Josh Cooper (Jira)

unread,
Dec 10, 2021, 11:08:02 AM12/10/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-11374

Sure no problem alro. The issue is puppetserver uses puppet, facter, etc code as libraries, and those are contained in the puppet-agent package.

Reply all
Reply to author
Forward
0 new messages