Jira (PUP-9748) Puppet Device doesn't honor ENC-set Environment in 5.5.10 or later

7 views
Skip to first unread message

Adam Gardner (JIRA)

unread,
Jun 11, 2019, 10:47:03 PM6/11/19
to puppe...@googlegroups.com
Adam Gardner created an issue
 
Puppet / Bug PUP-9748
Puppet Device doesn't honor ENC-set Environment in 5.5.10 or later
Issue Type: Bug Bug
Affects Versions: PUP 5.5.14, PUP 5.5.13, PUP 5.5.12, PUP 5.5.10
Assignee: Unassigned
Created: 2019/06/11 7:46 PM
Environment:

Centos 7
Puppetserver 5.3.6
Puppet Agent 5.5.x (5.5.8 and earlier works, 5.5.10 through 5.5.14 does not).

Priority: Normal Normal
Reporter: Adam Gardner

Puppet Version: 5.5.10 - 5.5.14 (5.5.8 works correctly)
Puppet Server Version: 5.3.6
OS Name/Version: Centos 7

**Note that this probably affects at least some versions of Puppet 6.x, though I don't have the setup to verify that personally.

Steps to reproduce:

  1. Install Puppet Agent 5.5.10 or later
  2. Configure a Device node in devices.conf and set up a certificate for it
  3. Configure the ENC on the Master to supply an environment other than production for the device node
  4. Run `puppet device --target <node> --verbose`

Desired Behavior:

The application switches to the ENC-supplied environment before performing a plugin sync. This behavior can be observed under 5.5.8; the logs show "Notice: Local environment 'production' doesn't match server specified node environment 'foo', switching agent to 'foo'." prior to "Retrieving pluginfacts".

Actual Behavior:

The application remains in the production environment during pluginsync (and possibly after) unless a `–environment` flag is explicitly passed. No environment-switching occurs. If the module containing the device transport code is not present in the production environment, then the device transport files will be removed and the subsequent run will fail.

Notes

****This seems likely to be related to PUP-8766, which changed the way that the puppet device application handles environments, and was incorporated into 5.5.10 as well as 6.0.5. Prior to PUP-8766, only ENC-supplied environments were honored by the Puppet Device application, and the --environment flag did not function; now, the reverse situation is true.

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Adam Gardner (JIRA)

unread,
Jun 11, 2019, 10:47:04 PM6/11/19
to puppe...@googlegroups.com
Adam Gardner updated an issue
Change By: Adam Gardner
*Puppet Version: 5.5.10 - 5.5.14 (5.5.8 works correctly)*
*Puppet Server Version: 5.3.6*
*OS Name/Version: Centos 7*

** Note that this probably affects at least some versions of Puppet 6.x, though I don't have the setup to verify that personally.

*Steps to reproduce:*
# Install Puppet Agent 5.5.10 or later
# Configure a Device node in devices.conf and set up a certificate for it
# Configure the ENC on the Master to supply an environment other than production for the device node
# Run `puppet device --target <node> --verbose`

*Desired Behavior:*


The application switches to the ENC-supplied environment before performing a plugin sync. This behavior can be observed under 5.5.8; the logs show "Notice: Local environment 'production' doesn't match server specified node environment 'foo', switching agent to 'foo'." prior to "Retrieving pluginfacts".

*Actual Behavior:*


The application remains in the production environment during pluginsync (and possibly after) unless a `–environment` flag is explicitly passed. No environment-switching occurs. If the module containing the device transport code is not present in the production environment, then the device transport files will be removed and the subsequent run will fail.

*Notes*

**** This seems likely to be related to PUP-8766, which changed the way that the puppet device application handles environments, and was incorporated into 5.5.10 as well as 6.0.5. Prior to PUP-8766, _only_ ENC-supplied environments were honored by the Puppet Device application, and the --environment flag did not function; now, the reverse situation is true.

 

Jorie Tappa (JIRA)

unread,
Jun 17, 2019, 12:54:02 PM6/17/19
to puppe...@googlegroups.com

David Mallon (JIRA)

unread,
Jun 24, 2019, 7:17:03 AM6/24/19
to puppe...@googlegroups.com
David Mallon commented on Bug PUP-9748
 
Re: Puppet Device doesn't honor ENC-set Environment in 5.5.10 or later

David Schmitt - I might need some help from you on this one to triage

Reply all
Reply to author
Forward
0 new messages