Issue #10790 has been updated by James Turnbull.

Status changed from Unreviewed to Closed

Duplicate of #4487
----------------------------------------
Bug #10790: --- and \\ prepended to environment
https://projects.puppetlabs.com/issues/10790

Author: Phil Frost
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.6.2
Keywords: 
Branch: 


I've recently enabled storeconfigs (PostgreSQL backend), and am using them to 
export Nagios resources. It's been working for a few days, then I merged a 
branch into production that should have added a monitor to check that 
state.yaml is being touched on clients. Later, nothing had picked up the 
change. Looking in syslog on the puppetmaster, I find entries like this (this 
is just for one host during the failure):

Nov 12 13:15:02 puppet puppet-master[1866]: Compiled catalog for rt in 
environment --- "--- production" in 0.12 seconds
Nov 12 13:45:07 puppet puppet-master[1866]: Compiled catalog for rt in 
environment --- "--- \"--- \\\"--- production\\\"\"" in 0.04 seconds

Some of them are more absurd:

Nov 12 14:01:21 puppet puppet-master[1866]: Compiled catalog for nagios in 
environment --- "--- \"--- \\\"--- \\\\\\\"--- \\\\\\\\\\\\\\\"--- 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"--- 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"--- 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"---
 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"---
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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

It looks like for each run it's taking the previous value, escaping " and \, 
quoting it with ", and prepending ---.

Anyhow, I restarted puppetmaster and things seem back to normal.

Looking a in the puppet database, I do notice that for each row in the hosts 
table, a "---" is prepended to the environment. So, for a host that should be 
in "production", the environment column is set to "--- production". This is for 
hosts which have checked in since the restart; those that have not yet checked 
in have longer strings with more --- and \\.

I can only guess this has something to do with features that allow setting the 
environment on the server side; I'm not (intentionally) using those features. 
Some of my clients have an environment explicitly set in puppet.conf, but most 
just use the default production. I don't think those with an explicit 
environment avoided the failure.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to