Issue #5156 has been reported by Jordan Sissel.

----------------------------------------
Bug #5156: Exported resources give confusing error when duplicate resources are 
present
https://projects.puppetlabs.com/issues/5156

Author: Jordan Sissel
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.6.2
Keywords: 
Branch: 


If I export the same resource from two hosts, then collect both on another, I 
get something like this:

<pre>
Exported resource Nagios::Check[ssh tcp] cannot override local resource on node 
ops.prod.loggly.net
</pre>

Here's how I figured it out:

<pre>
mysql> select count(title),title,restype from resources where exported=1 group 
by title;

+--------------+---------------------------+---------------+
| count(title) | title                     | restype       |
+--------------+---------------------------+---------------+
|           14 | ssh tcp                   | Nagios::Check |
+--------------+---------------------------+---------------+

14 counts of this resource with the same title.

Clearly, this is a problem in my manifests which I am fixing, however, the 
error message is quite confusing.

Also, in general, debugging exported resource problems requires jumping into 
mysql. Would be cool if there were a puppet tool for managing this just like 
there is for 'puppet cert'


-- 
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