Jira (PUP-11379) Regression: agent no longer calls local enc script

12 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Dec 14, 2021, 11:43:01 AM12/14/21
to puppe...@googlegroups.com
Breno Fernandes created an issue
 
Puppet / Bug PUP-11379
Regression: agent no longer calls local enc script
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2021/12/14 8:42 AM
Priority: Normal Normal
Reporter: Breno Fernandes

As a result of changes made in the environment convergence epic, the agent no longer calls the Puppet::Node terminus to resolve the environment during the run (before doing pluginsync and the catalog request). If the agent is configured to use a *local* enc, then it will no longer be called.

See gabriel.nagy comment in https://tickets.puppetlabs.com/browse/PUP-11328?focusedCommentId=839470&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-839470 for more information.

We should re-add this capability with the following notes:

1. The terminus should only be called when the following is true:

      unless (cached_catalog || options[:catalog] || Puppet[:strict_environment_mode])

2. The terminus should only be called if it's overridden from the default.

3. If the terminus should be called with the same parameters as last time, e.g. transaction_uuid.

4. If the terminus returns a node, then the agent should use its environment as the "last known environment" ignoring what is stored in the last run summary.

5. If the terminus returns a node whose environment is nil, then I'm not sure. We should check what happened previously.

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

Josh Cooper (Jira)

unread,
Jan 4, 2022, 11:23:01 AM1/4/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 7.14.0
Fix Version/s: PUP 6.26.0

Josh Cooper (Jira)

unread,
Jan 5, 2022, 5:30:02 PM1/5/22
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Victor Bobosila
Change By: Josh Cooper
Assignee: Victor Bobosila

Ciprian Badescu (Jira)

unread,
Jan 6, 2022, 3:55:02 AM1/6/22
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Jan 6, 2022, 3:55:03 AM1/6/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jan 10, 2022, 8:20:02 PM1/10/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jan 10, 2022, 8:25:04 PM1/10/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Release Notes: Bug Fix
Release Notes Summary: This introduces a puppet setting (use_last_environment=true|false) and a corresponding "puppet agent -t --no-use_last_environment" boolean command line option that can be used to force the agent to make a node request like it did prior to 7.12 and 6.25. By default, the agent will not make a node request.

Parker Leach (Jira)

unread,
Jan 11, 2022, 2:17:01 PM1/11/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Feb 23, 2022, 12:02:02 AM2/23/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: 7.15.0
Reply all
Reply to author
Forward
0 new messages