Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Felix Frank
Hi,

On 01/17/2012 09:27 PM, Peter Berghold wrote:
 err: Could not retrieve catalog from remote server: Error 400 on SERVER:
 Exported resource Nagios_contact[sharkrivertech-support] cannot override
 local resource on node slcdmon0.slc.sharkrivertech.com
 http://slcdmon0.slc.sharkrivertech.com

looks like you have both a @@nagios_contact { sharkrivertech-support }
anywhere in your manifests, and a nagios_contact {
sharkrivertech-support } in the manifest of the erronous node. Please
double-check.

HTH,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Peter Berghold
That was my first thought Felix. I ran the command line

find . -name '*.pp' -print -exec grep support {} \;

just to find out where there might be a duplicate and came up dry.  My
templates.pp file is the only place that exists.

I've managed to kludge a fix for it though by putting an if statement so
that on the monitoring host (where the error was occurring) ignores that
set of resources. That seems to have gotten me by for the moment.

I've also changed my config store to mysql instead of sqlite3 and that has
solved other issues as well.


On Wed, Jan 18, 2012 at 6:47 AM, Felix Frank 
felix.fr...@alumni.tu-berlin.de wrote:

 Hi,

 On 01/17/2012 09:27 PM, Peter Berghold wrote:
  err: Could not retrieve catalog from remote server: Error 400 on SERVER:
  Exported resource Nagios_contact[sharkrivertech-support] cannot override
  local resource on node slcdmon0.slc.sharkrivertech.com
  http://slcdmon0.slc.sharkrivertech.com

 looks like you have both a @@nagios_contact { sharkrivertech-support }
 anywhere in your manifests, and a nagios_contact {
 sharkrivertech-support } in the manifest of the erronous node. Please
 double-check.

 HTH,
 Felix

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.




-- 
Peter L. Berghold
Owner, Shark River Technical Solutions LLC

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Peter Berghold
I guess my kludge didn't work after all.  The issue is back.  I'm beginning
to think that perhaps there is something bad about exporting nagios_contact
resources. :-/



On Wed, Jan 18, 2012 at 9:13 AM, Peter Berghold salty.cowd...@gmail.comwrote:

 That was my first thought Felix. I ran the command line

 find . -name '*.pp' -print -exec grep support {} \;

 just to find out where there might be a duplicate and came up dry.  My
 templates.pp file is the only place that exists.

 I've managed to kludge a fix for it though by putting an if statement so
 that on the monitoring host (where the error was occurring) ignores that
 set of resources. That seems to have gotten me by for the moment.

 I've also changed my config store to mysql instead of sqlite3 and that has
 solved other issues as well.


 On Wed, Jan 18, 2012 at 6:47 AM, Felix Frank 
 felix.fr...@alumni.tu-berlin.de wrote:

 Hi,

 On 01/17/2012 09:27 PM, Peter Berghold wrote:
  err: Could not retrieve catalog from remote server: Error 400 on SERVER:
  Exported resource Nagios_contact[sharkrivertech-support] cannot override
  local resource on node slcdmon0.slc.sharkrivertech.com
  http://slcdmon0.slc.sharkrivertech.com

 looks like you have both a @@nagios_contact { sharkrivertech-support }
 anywhere in your manifests, and a nagios_contact {
 sharkrivertech-support } in the manifest of the erronous node. Please
 double-check.

 HTH,
 Felix

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.




 --
 Peter L. Berghold
 Owner, Shark River Technical Solutions LLC




-- 
Peter L. Berghold
Owner, Shark River Technical Solutions LLC

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Nan Liu
You probably have multiple server exporting the same resource when you only
intend to export this particular resource only once.

Nan

On Jan 18, 2012, at 7:59, Peter Berghold salty.cowd...@gmail.com wrote:

I guess my kludge didn't work after all.  The issue is back.  I'm beginning
to think that perhaps there is something bad about exporting nagios_contact
resources. :-/



On Wed, Jan 18, 2012 at 9:13 AM, Peter Berghold salty.cowd...@gmail.comwrote:

 That was my first thought Felix. I ran the command line

 find . -name '*.pp' -print -exec grep support {} \;

 just to find out where there might be a duplicate and came up dry.  My
 templates.pp file is the only place that exists.

 I've managed to kludge a fix for it though by putting an if statement so
 that on the monitoring host (where the error was occurring) ignores that
 set of resources. That seems to have gotten me by for the moment.

 I've also changed my config store to mysql instead of sqlite3 and that has
 solved other issues as well.


 On Wed, Jan 18, 2012 at 6:47 AM, Felix Frank 
 felix.fr...@alumni.tu-berlin.de wrote:

 Hi,

 On 01/17/2012 09:27 PM, Peter Berghold wrote:
  err: Could not retrieve catalog from remote server: Error 400 on SERVER:
  Exported resource Nagios_contact[sharkrivertech-support] cannot override
  local resource on node slcdmon0.slc.sharkrivertech.com
  http://slcdmon0.slc.sharkrivertech.com

 looks like you have both a @@nagios_contact { sharkrivertech-support }
 anywhere in your manifests, and a nagios_contact {
 sharkrivertech-support } in the manifest of the erronous node. Please
 double-check.

 HTH,
 Felix

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.




 --
 Peter L. Berghold
 Owner, Shark River Technical Solutions LLC




-- 
Peter L. Berghold
Owner, Shark River Technical Solutions LLC

-- 
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Peter Berghold
So I should logic in to export it just one time...

On Jan 18, 2012 12:07 PM, Nan Liu n...@puppetlabs.com wrote:

You probably have multiple server exporting the same resource when you only
intend to export this particular resource only once.

Nan


On Jan 18, 2012, at 7:59, Peter Berghold salty.cowd...@gmail.com wrote:

 I guess my kludge didn...


-- 
You received this message because you are subscribed to the Google Groups
Puppet Users group

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Daniel Pittman
Yes.  Also, in earlier versions of Puppet - including most of 2.7 -
the local part in that message is a ... well, lie isn't quite the
word, but it is misleading.  It can also be a resource exported by
another machine. :)

On Wed, Jan 18, 2012 at 09:25, Peter Berghold salty.cowd...@gmail.com wrote:
 So I should logic in to export it just one time...

 On Jan 18, 2012 12:07 PM, Nan Liu n...@puppetlabs.com wrote:

 You probably have multiple server exporting the same resource when you only
 intend to export this particular resource only once.

 Nan


 On Jan 18, 2012, at 7:59, Peter Berghold salty.cowd...@gmail.com wrote:

 I guess my kludge didn...


 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.



-- 
Daniel Pittman
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] more fun and games...(exported resources)

2012-01-17 Thread Peter Berghold
what does this mean?

err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Exported resource Nagios_contact[sharkrivertech-support] cannot override
local resource on node slcdmon0.slc.sharkrivertech.com
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run

There's another nagios contact being exported prior to that one and it runs
just fine...



-- 
Peter L. Berghold
Owner, Shark River Technical Solutions LLC

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.