Hi there, I have a strange problem with the exported ressources in the munin module I wrote. See: http://mail.madstop.com/pipermail/puppet-users/2007-June/003179.html For some reason it stopped working. On the munin::host I get the error that: err: Could not retrieve configuration: Exported resource File[munin_def_XY_4949] cannot override local resource The munin::host is also a munin::client. the error persists if it is only the munin::host and vanishes if the computer is only a munin::client. Thus, the error is in the munin::host class, which uses the @@file{...} exported resources from the munin::client(s) I can not debug this error further and I do not know where to start looking for the error or the solution. All I know is that I did not change things. It simply stopped working. Could someone give me a hint where to look further for the error? My puppet and puppetmaster version is 0.22.4, rails is 1.2.3 ruby is 1.8.2 all on debian Thanks for the help, udo.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 11 July 2007, Udo Waechter wrote:> Hi there, > I have a strange problem with the exported ressources in the munin > module I wrote. > See: http://mail.madstop.com/pipermail/puppet-users/2007-June/003179.html > > For some reason it stopped working. > On the munin::host I get the error that: > > err: Could not retrieve configuration: Exported resource > File[munin_def_XY_4949] cannot override local resource > > The munin::host is also a munin::client. the error persists if it is > only the munin::host and vanishes if the computer is only a > munin::client. Thus, the error is in the munin::host class, which uses > the @@file{...} exported resources from the munin::client(s) > > I can not debug this error further and I do not know where to start > looking for the error or the solution. > All I know is that I did not change things. It simply stopped working. > > Could someone give me a hint where to look further for the error?Exported resources have to have globally unique titles. I suspect that you have the same "XY" on your munin clients and host. Regards, David - -- - - hallo... wie gehts heute? - - *hust* gut *rotz* *keuch* - - gott sei dank kommunizieren wir über ein septisches medium ;) -- Matthias Leeb, Uni f. angewandte Kunst, 2005-02-15 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGlMxs/Pp1N6Uzh0URApquAJ9ZyY4NC3ESdcuX21CfHShjud+BLACff8Rs TCAAwppcVW4eEwiFy88yElI=Y3Xl -----END PGP SIGNATURE-----
Sorry David, I think I do not get your point. I have a lot of munin::clients which export their configuration with: @@file{"munin_[def|darwin]_$fqdn_$port": ... } exactly like you did in the original implementation. The only difference is that mac os x hosts have munin_darwin_ and PCs munin_def_ prepended to the exported resource. This holds for all computers even for the munin::host itself, which I has the fqdn: munin.local, lets say. The definition of munin::host resembles more or less your original implementation and File <<||>> is used to read all the exported resources by the munin::clients Is the munin::host not able to be munin::client at the same time? Sorry for my not understanding, udo. On 11.07.2007, at 14:26, David Schmitt wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Wednesday 11 July 2007, Udo Waechter wrote: >> Hi there, >> I have a strange problem with the exported ressources in the munin >> module I wrote. >> See: http://mail.madstop.com/pipermail/puppet-users/2007-June/ >> 003179.html >> >> For some reason it stopped working. >> On the munin::host I get the error that: >> >> err: Could not retrieve configuration: Exported resource >> File[munin_def_XY_4949] cannot override local resource >> >> The munin::host is also a munin::client. the error persists if it is >> only the munin::host and vanishes if the computer is only a >> munin::client. Thus, the error is in the munin::host class, which >> uses >> the @@file{...} exported resources from the munin::client(s) >> >> I can not debug this error further and I do not know where to start >> looking for the error or the solution. >> All I know is that I did not change things. It simply stopped >> working. >> >> Could someone give me a hint where to look further for the error? > > Exported resources have to have globally unique titles. I suspect > that you > have the same "XY" on your munin clients and host. > > > Regards, David > - -- > - - hallo... wie gehts heute? > - - *hust* gut *rotz* *keuch* > - - gott sei dank kommunizieren wir über ein septisches medium ;) > -- Matthias Leeb, Uni f. angewandte Kunst, 2005-02-15 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFGlMxs/Pp1N6Uzh0URApquAJ9ZyY4NC3ESdcuX21CfHShjud+BLACff8Rs > TCAAwppcVW4eEwiFy88yElI> =Y3Xl > -----END PGP SIGNATURE----- > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >-- ---[ Institute of Cognitive Science @ University of Osnabrueck ---[ Albrechtstrasse 28, D-49076 Osnabrueck, 969-3362 ---[ Eyes: http://www.zoide.net/ ---[ Ears: http://www.auriculabovinari.de/
Hi, I found the ''solution''. I simply emptied all database tables, now it works again. have fun, udo. udo waechter wrote:> Sorry David, I think I do not get your point. > I have a lot of munin::clients which export their configuration with: > > @@file{"munin_[def|darwin]_$fqdn_$port": ... } > exactly like you did in the original implementation. The only > difference is that mac os x hosts have munin_darwin_ and PCs > munin_def_ prepended to the exported resource. > > This holds for all computers even for the munin::host itself, which I > has the fqdn: munin.local, lets say. > > The definition of munin::host resembles more or less your original > implementation and > File <<||>> > is used to read all the exported resources by the munin::clients > > Is the munin::host not able to be munin::client at the same time? > > Sorry for my not understanding, > udo. > > On 11.07.2007, at 14:26, David Schmitt wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> On Wednesday 11 July 2007, Udo Waechter wrote: >>> Hi there, >>> I have a strange problem with the exported ressources in the munin >>> module I wrote. >>> See: http://mail.madstop.com/pipermail/puppet-users/2007-June/ >>> 003179.html >>> >>> For some reason it stopped working. >>> On the munin::host I get the error that: >>> >>> err: Could not retrieve configuration: Exported resource >>> File[munin_def_XY_4949] cannot override local resource >>> >>> The munin::host is also a munin::client. the error persists if it is >>> only the munin::host and vanishes if the computer is only a >>> munin::client. Thus, the error is in the munin::host class, which >>> uses >>> the @@file{...} exported resources from the munin::client(s) >>> >>> I can not debug this error further and I do not know where to start >>> looking for the error or the solution. >>> All I know is that I did not change things. It simply stopped >>> working. >>> >>> Could someone give me a hint where to look further for the error? >> Exported resources have to have globally unique titles. I suspect >> that you >> have the same "XY" on your munin clients and host. >> >> >> Regards, David >> - -- >> - - hallo... wie gehts heute? >> - - *hust* gut *rotz* *keuch* >> - - gott sei dank kommunizieren wir über ein septisches medium ;) >> -- Matthias Leeb, Uni f. angewandte Kunst, 2005-02-15 >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.6 (GNU/Linux) >> >> iD8DBQFGlMxs/Pp1N6Uzh0URApquAJ9ZyY4NC3ESdcuX21CfHShjud+BLACff8Rs >> TCAAwppcVW4eEwiFy88yElI>> =Y3Xl >> -----END PGP SIGNATURE----- >> _______________________________________________ >> Puppet-users mailing list >> Puppet-users@madstop.com >> https://mail.madstop.com/mailman/listinfo/puppet-users >> >