Klaus Ethgen
2010-Nov-10 15:43 UTC
[Puppet Users] Custom facts in current and old environments
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello, I read that there is several problems about custom facts on this list. However, none is serving my task exactly so I start another. (Topic »custom facts in legacy puppet 0.24.[89]« is the might be the same issue but that gets no answer.) My problem is that I have to serve clients with different versions of puppet. The systems running ubuntu with 0.25.4 work perfect but I have problems to bring custom facts to the systems running silly SLES 11.1 with puppet version 0.24.8. The first think that I recognise, is, that puppet itself deletes /var/lib/puppet/lib/facter at the very begin of all puppet run: debug: /File[/var/lib/puppet/lib]: Changing checksum debug: /File[/var/lib/puppet/lib]: 1 change(s) debug: /File[/var/lib/puppet/lib]/checksum: Replacing /var/lib/puppet/lib checksum {mtime}Wed Nov 10 15:51:11 +0100 2010 with {mtime}Wed Nov 10 16:27:14 +0100 2010 notice: /File[/var/lib/puppet/lib]/checksum: checksum changed ''{mtime}Wed Nov 10 15:51:11 +0100 2010'' to ''{mtime}Wed Nov 10 16:27:14 +0100 2010'' debug: /File[/var/lib/puppet/lib/facter]: Changing ensure debug: /File[/var/lib/puppet/lib/facter]: 1 change(s) debug: /File[/var/lib/puppet/lib/facter]: Removing existing directory for replacement with absent notice: /File[/var/lib/puppet/lib/facter]/ensure: removed As that is alarming me I did no find any location where the file /var/lib/puppet/lib/facter is defined in all manifest, modules or source of puppet. So my first question is, where do puppet get this file resource from? And why do it means that it has to remove it? (By the way, it seems that this path is only purged when »factsync = true« is in /etc/puppet/puppet.conf.) When I try to ensure that directory to exist it will be deleted on every begin of the run and created at the end. But it will always be empty. An other point that I found in debug log is that sometimes there is an error about not existing (not mounted) /facts on the puppetmaster. (The client prints that, the master work fine.) I tried with or without »[facts]« section in /etc/puppet/fileserver.conf. Both work well with clients version 0.25.4 but none work with version 0.24.8. (Well. the error message is different. But the result is the same.) err: /File[/var/lib/puppet/facts]: Failed to generate additional resources during transaction: Fileserver module ''facts'' not mounted and/or err: /File[/var/lib/puppet/facts]: Failed to retrieve current state of resource: Fileserver module ''facts'' not mounted Could not describe /facts: Fileserver module ''facts'' not mounted For now I tried many to debug this stuff, puttin several .instpect to the ruby code but did not find any anchor where to search exactly or how to get ridge of this problem. As I told, with the ubuntu machines that all worked instantly from the description. Anybody a hint what to try else? Regards Klaus Ethgen - -- Klaus Ethgen http://www.ethgen.de/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus@Ethgen.de> Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTNq9up+OKpjRpO3lAQoOJAf/RuVP5f+lepoNWPatoLfgyEDDqIA9GWaz iAnHcufW0zisuxEIDU5IORKIt2zJ1C1Yy1ZppeYRtT7kRqJH3LLa1P3JwNQJHqYo bWK1t1MnCugr925trYliunv5a2MYcmrKESxoeUIa6LTEVDDRaPfg6a9np+sDQmNA USm96Z8/07GXdrg2TdCsE2RCVLm3tqHhwRvekiN+VqxYtoJMhvMbfrCFzO7dJmJb GYNJZ4PmaQV5nnEUBNAaMqgRPNSsDulEdAR6yCRUnW1YGuXoV85F05Gdl4InLUQC oTuSkKeCEd9RaC38ZTN+OF+3zDOprnq05wEJ/qtYaFi7Mizl3gZR7g==NUpx -----END PGP SIGNATURE----- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2010-Nov-10 16:22 UTC
Re: [Puppet Users] Custom facts in current and old environments
On Wed, Nov 10, 2010 at 7:43 AM, Klaus Ethgen <Klaus+puppet@ethgen.de> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Hello, > > I read that there is several problems about custom facts on this list. > However, none is serving my task exactly so I start another. (Topic > »custom facts in legacy puppet 0.24.[89]« is the might be the same issue > but that gets no answer.) > > My problem is that I have to serve clients with different versions of > puppet. The systems running ubuntu with 0.25.4 work perfect but I have > problems to bring custom facts to the systems running silly SLES 11.1 > with puppet version 0.24.8.There were some major changes between the two versions in this regard. Are you using environments? Are you using plugins in modules to deliver facts?> > The first think that I recognise, is, that puppet itself deletes > /var/lib/puppet/lib/facter at the very begin of all puppet run: > debug: /File[/var/lib/puppet/lib]: Changing checksum > debug: /File[/var/lib/puppet/lib]: 1 change(s) > debug: /File[/var/lib/puppet/lib]/checksum: Replacing /var/lib/puppet/lib checksum {mtime}Wed Nov 10 15:51:11 +0100 2010 with {mtime}Wed Nov 10 16:27:14 +0100 2010 > notice: /File[/var/lib/puppet/lib]/checksum: checksum changed ''{mtime}Wed Nov 10 15:51:11 +0100 2010'' to ''{mtime}Wed Nov 10 16:27:14 +0100 2010'' > debug: /File[/var/lib/puppet/lib/facter]: Changing ensure > debug: /File[/var/lib/puppet/lib/facter]: 1 change(s) > debug: /File[/var/lib/puppet/lib/facter]: Removing existing directory for replacement with absent > notice: /File[/var/lib/puppet/lib/facter]/ensure: removed > > As that is alarming me I did no find any location where the file > /var/lib/puppet/lib/facter is defined in all manifest, modules or source > of puppet. So my first question is, where do puppet get this file > resource from? And why do it means that it has to remove it? (By the > way, it seems that this path is only purged when »factsync = true« is in > /etc/puppet/puppet.conf.) > > When I try to ensure that directory to exist it will be deleted on > every begin of the run and created at the end. But it will always be > empty. > > An other point that I found in debug log is that sometimes there is an > error about not existing (not mounted) /facts on the puppetmaster. (The > client prints that, the master work fine.) I tried with or without > »[facts]« section in /etc/puppet/fileserver.conf. Both work well with > clients version 0.25.4 but none work with version 0.24.8. (Well. the > error message is different. But the result is the same.) > err: /File[/var/lib/puppet/facts]: Failed to generate additional resources during transaction: Fileserver module ''facts'' not mounted > and/or > err: /File[/var/lib/puppet/facts]: Failed to retrieve current state of resource: Fileserver module ''facts'' not mounted Could not describe /facts: Fileserver module ''facts'' not mounted > > For now I tried many to debug this stuff, puttin several .instpect to > the ruby code but did not find any anchor where to search exactly or how > to get ridge of this problem. > > As I told, with the ubuntu machines that all worked instantly from the > description. > > Anybody a hint what to try else? > > Regards > Klaus Ethgen > - -- > Klaus Ethgen http://www.ethgen.de/ > pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus@Ethgen.de> > Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iQEVAwUBTNq9up+OKpjRpO3lAQoOJAf/RuVP5f+lepoNWPatoLfgyEDDqIA9GWaz > iAnHcufW0zisuxEIDU5IORKIt2zJ1C1Yy1ZppeYRtT7kRqJH3LLa1P3JwNQJHqYo > bWK1t1MnCugr925trYliunv5a2MYcmrKESxoeUIa6LTEVDDRaPfg6a9np+sDQmNA > USm96Z8/07GXdrg2TdCsE2RCVLm3tqHhwRvekiN+VqxYtoJMhvMbfrCFzO7dJmJb > GYNJZ4PmaQV5nnEUBNAaMqgRPNSsDulEdAR6yCRUnW1YGuXoV85F05Gdl4InLUQC > oTuSkKeCEd9RaC38ZTN+OF+3zDOprnq05wEJ/qtYaFi7Mizl3gZR7g=> =NUpx > -----END PGP SIGNATURE----- > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- Nigel Kersten - Puppet Labs - http://www.puppetlabs.com -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Klaus Ethgen
2010-Nov-11 09:31 UTC
Re: [Puppet Users] Custom facts in current and old environments
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello, Am Mi den 10. Nov 2010 um 17:22 schrieb Nigel Kersten:> > My problem is that I have to serve clients with different versions of > > puppet. The systems running ubuntu with 0.25.4 work perfect but I have > > problems to bring custom facts to the systems running silly SLES 11.1 > > with puppet version 0.24.8. > > There were some major changes between the two versions in this regard.I know. But there must be a way to solve the documented problems with both.> Are you using environments?Yes.> Are you using plugins in modules to deliver facts?Yes. And the funny think is that I also have a custom provider for packagemanagement (zypper) under .../plugins/puppet/provider/package that work well with all versions I tested. But the facts do not although they are organized the same way. Regards Klaus Ethgen - -- Klaus Ethgen http://www.ethgen.de/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus@Ethgen.de> Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTNu37J+OKpjRpO3lAQreBAf/ReeszRMO3xAiY3e5yDO4srrTs6qmcXpr Vrp2JnopiP23C2nsU7Fafy074On3D+jSeUChsgjLUvGdafqpwTCuQdDow1dBz5Z0 EXAJKC7ewwsKybWmYqDWWN6zY8izDDqs4dC0gStFVIpIK1gKhb4oHjnlYpf+WklU +p7gIzBx7JDtXbd/VTgfYINk3v31H3VxXq7xfDvHgxRAGvrg8PGDacq4+1h4f1nQ eMRWxjO5gngBh/E+l7jK7qBVe6AGB0kO+QEy7LLTIGPbXL0BX7emMfzmcAfmQNeT Rf2/mXfbYG4nVDywOEp+tmBZn2CVEyiA5twmitLLRg39GkM/GE64sw==xC1A -----END PGP SIGNATURE----- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2010-Nov-11 15:06 UTC
Re: [Puppet Users] Custom facts in current and old environments
On Thu, Nov 11, 2010 at 1:31 AM, Klaus Ethgen <Klaus+puppet@ethgen.de> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Hello, > > Am Mi den 10. Nov 2010 um 17:22 schrieb Nigel Kersten: >> > My problem is that I have to serve clients with different versions of >> > puppet. The systems running ubuntu with 0.25.4 work perfect but I have >> > problems to bring custom facts to the systems running silly SLES 11.1 >> > with puppet version 0.24.8. >> >> There were some major changes between the two versions in this regard. > > I know. But there must be a way to solve the documented problems with > both. > >> Are you using environments? > > Yes. > >> Are you using plugins in modules to deliver facts? > > Yes. And the funny think is that I also have a custom provider for > packagemanagement (zypper) under .../plugins/puppet/provider/package > that work well with all versions I tested. But the facts do not although > they are organized the same way.Are you using the wiki suggestion of a module called "facts" and enabling factsync on your 0.24.x clients?> > Regards > Klaus Ethgen > - -- > Klaus Ethgen http://www.ethgen.de/ > pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus@Ethgen.de> > Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iQEVAwUBTNu37J+OKpjRpO3lAQreBAf/ReeszRMO3xAiY3e5yDO4srrTs6qmcXpr > Vrp2JnopiP23C2nsU7Fafy074On3D+jSeUChsgjLUvGdafqpwTCuQdDow1dBz5Z0 > EXAJKC7ewwsKybWmYqDWWN6zY8izDDqs4dC0gStFVIpIK1gKhb4oHjnlYpf+WklU > +p7gIzBx7JDtXbd/VTgfYINk3v31H3VxXq7xfDvHgxRAGvrg8PGDacq4+1h4f1nQ > eMRWxjO5gngBh/E+l7jK7qBVe6AGB0kO+QEy7LLTIGPbXL0BX7emMfzmcAfmQNeT > Rf2/mXfbYG4nVDywOEp+tmBZn2CVEyiA5twmitLLRg39GkM/GE64sw=> =xC1A > -----END PGP SIGNATURE----- > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- Nigel Kersten - Puppet Labs - http://www.puppetlabs.com -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Klaus Ethgen
2011-Feb-09 11:24 UTC
Re: [Puppet Users] Custom facts in current and old environments
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi, first sorry about the long delay of my answer. I was very bussy. However the problem still appears. Am Do den 11. Nov 2010 um 16:06 schrieb Nigel Kersten:> > Yes. And the funny think is that I also have a custom provider for > > packagemanagement (zypper) under .../plugins/puppet/provider/package > > that work well with all versions I tested. But the facts do not although > > they are organized the same way. > > Are you using the wiki suggestion of a module called "facts" and > enabling factsync on your 0.24.x clients?Well, yes and no. I use facts inside modules. But the Module is not called »facts«. The point is that special facts are needed by special modules and I like to have them close together to stay maintainable. And yes, I enabled factsync on all clients. Regards Klaus - -- Klaus Ethgen http://www.ethgen.ch/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus@Ethgen.de> Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTVJ5g5+OKpjRpO3lAQqUgwgAoh06eCro2MI5cPuHN/NiylXnB9LuwEH6 F0WKtxKNaWTtD7ZkxhOCW3XeAMdYlvaW0fdBK2NwP+T2qInEIRxB2+HgfEBgITTv 7S8Anm+uIANkV7qFzih9bObtJ1aIkjRGFEpZWSp3m4PmxN2zF/DM4LmMkvsz/Cc2 LoNo09Kzlbwrm2fvaz7O7yx2YCWepIonuIY3Ctw6mvXxMLw6PzIdqM6d6DDxiNtQ +gA7M9Xvqn5Ujk61QGoEz5cID7MRE2WbGIN0SwyZEeuIAvRoZ8+SMLvd5NKgjj7/ vY49Q3gOaBViTM0hMhSS7aHSicOWBwVuxwqrLTcjs09mOGlFH6WwDg==npOl -----END PGP SIGNATURE----- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.