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", } Thanks in advance, Galed. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/3Ntpn1-sN20J. 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.