Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
PUP 6.25.0, PUP 7.12.0
-
None
-
Night's Watch
-
Needs Assessment
-
Bug Fix
-
6.25.0 and 7.12.0 introduced a regression which caused a newly upgraded agent to download all of its plugins. Now the agent will perform a onetime node request to resynchronize its environment with the server.
-
Needs Assessment
Description
When using a server-specified environment, the agent will re-download all of its plugins after updating to 6.25.0 or 7.12.0. This occurs, because the agent cannot determine what the last server-specified environment was. So it will:
- fallback to "production"
- download plugins from "production"
- request a catalog from "production"
- be redirected to the original environment
- download plugins from the original environment
- request a catalog from the original environment
If the puppet-agent package on the server is not updated to 6.25/7.12 or later, and the server-specified environment references a fact that doesn't exist in the "production" environment, then the "hop back" to the original environment will fail as described in PUP-9570.
To prevent the agent from redownloading all plugins, the agent should fallback to making a node request if its last run summary does not contain the last server-specified environment.
Attachments
Issue Links
- relates to
-
PUP-11323 Puppet agent runs in environment specified on CLI when not in an agent specified environment
-
- Closed
-
-
PUP-11327 Puppet Agent for Window environment no longer can be override by ENC
-
- Closed
-
-
PUP-11330 Puppet::Node#environment_name may return the wrong value
-
- Resolved
-
-
PUP-11379 Regression: agent no longer calls local enc script
-
- Closed
-