Hmm.. I'm not setting up local Host resources any where in the manifests, my nodes only collect the exported resources.
Almost all of my nodes are exporting their Host resource, and I have several hosts that collect the resource according to their tag name: Host <<| tag == "production-proxy" |>> { ensure => present, } Host <<| tag =="backup-proxy" |>> { ensure => present, } This also happens to me for an Opsviewmonitored resource I'm exporting, which is being collected only by one server that has no local resources like this set.. On Wed, Oct 26, 2011 at 3:16 PM, jcbollinger <john.bollin...@stjude.org>wrote: > > > On Oct 26, 3:01 am, Galed Friedmann <galed.friedm...@onavo.com> wrote: > > Hey all, > > I'm exporting a Host resource across my puppet managed client for various > > synchronizations across my servers. Lately I'm seeing duplicate exported > > resources problems and have a hard time understanding what is causing > this, > > I'll appreciate your help :) > > > > This happens almost every day at various times, I see in the log file: > > Oct 26 07:43:57 ubuntu puppet-master[6164]: Exported resource > > Host[proxy1back] cannot override local resource on node lb5back > > Oct 26 07:44:00 ubuntu puppet-master[6164]: Exported resource > > Host[proxy1back] cannot override local resource on node lb3 > > Oct 26 07:44:00 ubuntu puppet-master[6164]: Exported resource > > Host[proxy1back] cannot override local resource on node lb3 > > Oct 26 07:44:01 ubuntu puppet-master[6164]: Exported resource > > Host[proxy1back] cannot override local resource on node lb3back > > Oct 26 07:44:01 ubuntu puppet-master[6164]: Exported resource > > Host[proxy1back] cannot override local resource on node lb3back > > > > As you can see it happens on several servers and not on a specific one, > the > > duplicate resource happens on random servers and the error affects random > > servers (some of my servers are operating fine and does not report > > duplicate errors). > > > > Looking at the puppet DB resources table I see this: > > mysql> select * from resources where title = 'proxy1back'; > > > +--------+------------+---------+---------+----------------+----------+------+---------------------+---------------------+ > > | id | title | restype | host_id | source_file_id | exported | > > line | updated_at | created_at | > > > +--------+------------+---------+---------+----------------+----------+------+---------------------+---------------------+ > > | 573048 | proxy1back | Host | 39640 | 26 | 1 | > > 63 | 2011-10-26 02:01:22 | 2011-10-26 02:01:22 | > > | 576542 | proxy1back | Host | 40107 | 2 | 0 | > > 63 | 2011-10-26 04:01:05 | 2011-10-26 04:01:05 | > > | 581182 | proxy1back | Host | 40844 | 26 | 1 | > > 63 | 2011-10-26 07:01:35 | 2011-10-26 07:01:35 | > > > +--------+------------+---------+---------+----------------+----------+------+---------------------+---------------------+ > > > > It seems like at some point the server is getting a different host_id and > > then exporting the resource again with the same title, which causes the > > duplicate. But I have no idea why.. > > > > My Host resource looks like this: > > @@host { "$hostname": > > comment => "$hostname", > > ip => "$ec2_local_ipv4", > > name => "stable_host$proxy_id", > > tag => "production-proxy", > > > > } > > > I think you're looking for the problem in the wrong place. The way I > read the error messages, the problem is that you are trying to collect > resources that conflict with ordinary resources already defined on the > affected nodes. Check for declarations of host resources other than > the one you show above in the manifests applicable to the affected > nodes. > > > John > > -- > 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.