[Puppet Users] Re: client won't use remote file bucket
Oh my bad, I just realize that is is backuping by md5 so one backup to rule them all Stupid me, forget about that. It's working fine. On Dec 22, 12:41 pm, Nicolas Aizier wrote: > Hi all, > > this solve the issue for me also but now even if it still do backup > in /var/lib/puppet/bucketit doesn't mention it in the report ? > Before that "path => false" line it was mentionning it but not doing > it . > > Strange isn't it ? > > On Nov 23, 7:13 pm, Mikael Fridh wrote: > > > > > > > > > On Nov 19, 10:56 am, Felix Frank > > wrote: > > > > On 11/19/2010 10:15 AM, luke.bigum wrote: > > > > > Felix, > > > > > That fixes the problem, my remotefilebucketnow works. I'll raise a > > > > bug for this. > > > Fixes it for me as well, thanks! > > > -- > > Mikael -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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] Re: client won't use remote file bucket
Hi all, this solve the issue for me also but now even if it still do backup in /var/lib/puppet/bucket it doesn't mention it in the report ? Before that "path => false" line it was mentionning it but not doing it . Strange isn't it ? On Nov 23, 7:13 pm, Mikael Fridh wrote: > On Nov 19, 10:56 am, Felix Frank > wrote: > > > On 11/19/2010 10:15 AM, luke.bigum wrote: > > > > Felix, > > > > That fixes the problem, my remote file bucket now works. I'll raise a > > > bug for this. > > Fixes it for me as well, thanks! > > -- > Mikael -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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] Re: client won't use remote file bucket
On Nov 19, 10:56 am, Felix Frank wrote: > On 11/19/2010 10:15 AM, luke.bigum wrote: > > > Felix, > > > That fixes the problem, my remote file bucket now works. I'll raise a > > bug for this. Fixes it for me as well, thanks! -- Mikael -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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] Re: client won't use remote file bucket
On 11/19/2010 10:15 AM, luke.bigum wrote: > Felix, > > That fixes the problem, my remote file bucket now works. I'll raise a > bug for this. > > Thanks! > > -Luke Huh, interesting. This commit is what tipped me off about the likely fix: 266aafa6efa9dff5fb0b49ffdafc9372edcafdfe I'm not sure if it's the source of this problem, but it's probably as good a lead as any. Glad this helped! Cheers, 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-us...@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] Re: client won't use remote file bucket
Felix, That fixes the problem, my remote file bucket now works. I'll raise a bug for this. Thanks! -Luke On Nov 18, 11:23 pm, Felix Frank wrote: > On 09.11.2010 10:33, luke.bigum wrote: > > > > > Roman, > > > Not that I know of. I'm still aware it doesn't work in my site, but > > I'm content with local file bucketing until I have the time to look at > > this again. > > > -Luke > > > On Nov 9, 3:47 am, Roman wrote: > >> Hi James. > > >> Could you tell if you found a resolution to this problem? I seem to > >> experience it as well. > > >> Thanks in advance, > > >> Regards, > >> Roman > > >> On Oct 20, 2:31 am, "luke.bigum" wrote: > > >>> Hi all, > > >>> I'm having a stupid moment getting a remote file bucket working. My > >>> client only file buckets locally, not remotely. > > >>> I have this site.pp: > >>> * > >>> filebucket { "main": server => "puppet" } > >>> File { backup => "main" } > >>> node 'default' { > >>> include test} > > All this rings a faint bell. We had a similar problem after upgrading to > 0.25.5. > > For us, specifying "path => false" in the filebucket { } solved the issue. > > Let me know if it does anything for you. > > 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-us...@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] Re: client won't use remote file bucket
On 09.11.2010 10:33, luke.bigum wrote: Roman, Not that I know of. I'm still aware it doesn't work in my site, but I'm content with local file bucketing until I have the time to look at this again. -Luke On Nov 9, 3:47 am, Roman wrote: Hi James. Could you tell if you found a resolution to this problem? I seem to experience it as well. Thanks in advance, Regards, Roman On Oct 20, 2:31 am, "luke.bigum" wrote: Hi all, I'm having a stupid moment getting a remote file bucket working. My client only file buckets locally, not remotely. I have this site.pp: * filebucket { "main": server => "puppet" } File { backup => "main" } node 'default' { include test} All this rings a faint bell. We had a similar problem after upgrading to 0.25.5. For us, specifying "path => false" in the filebucket { } solved the issue. Let me know if it does anything for you. 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-us...@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] Re: client won't use remote file bucket
Roman, Not that I know of. I'm still aware it doesn't work in my site, but I'm content with local file bucketing until I have the time to look at this again. -Luke On Nov 9, 3:47 am, Roman wrote: > Hi James. > > Could you tell if you found a resolution to this problem? I seem to > experience it as well. > > Thanks in advance, > > Regards, > Roman > > On Oct 20, 2:31 am, "luke.bigum" wrote: > > > Hi all, > > > I'm having a stupid moment getting a remote file bucket working. My > > client only file buckets locally, not remotely. > > > I have this site.pp: > > * > > filebucket { "main": server => "puppet" } > > File { backup => "main" } > > node 'default' { > > include test} > > > * > > > and this test module: > > * > > class test { > > file { "/etc/sudoers": > > source => "puppet:///modules/test/sudoers", > > owner => "root", > > group => "root", > > mode => "0440", > > ensure => present, > > backup => "main", > > }} > > > * > > > $ puppetd --test --environment testing > > ... > > info: FileBucket adding /etc/sudoers as {md5} > > fee30f6b0672f6c174709249f37380d4 > > info: /Stage[main]/Test/File[/etc/sudoers]: Filebucketed /etc/sudoers > > to main with sum fee30f6b0672f6c174709249f37380d4 > > notice: Finished catalog run in 0.49 seconds > > > According to the Apache logs (I use Passenger) the only PUT request > > it's doing is for it's report: > > > 10.44.222.42 - - [19/Oct/2010:16:18:26 +0100] "GET /testing/ > > catalog/..." 200 1439 "-" "-" > > 10.44.222.42 - - [19/Oct/2010:16:18:26 +0100] "GET /testing/ > > file_metadata/modules/test/sudoers HTTP/1.1" 200 307 "-" "-" > > 10.44.222.42 - - [19/Oct/2010:16:18:26 +0100] "GET /testing/ > > file_content/modules/test/sudoers HTTP/1.1" 200 1421 "-" "-" > > 10.44.222.42 - - [19/Oct/2010:16:18:27 +0100] "GET /testing/ > > file_content/modules/test/sudoers HTTP/1.1" 200 1421 "-" "-" > > 10.44.222.42 - - [19/Oct/2010:16:18:27 +0100] "GET /testing/ > > file_metadata/modules/test/sudoers HTTP/1.1" 200 307 "-" "-" > > 10.44.222.42 - - [19/Oct/2010:16:18:27 +0100] "PUT /testing/report/ > > puppet-test.fasthosts.net.uk HTTP/1.1" 200 35 "-" "-" > > > I've also stopped Apache and started up the Webrick Puppet Master, > > same result, no file bucketed to the server. > > > Can someone point out what I've missed? > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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] Re: client won't use remote file bucket
Hi James. Could you tell if you found a resolution to this problem? I seem to experience it as well. Thanks in advance, Regards, Roman On Oct 20, 2:31 am, "luke.bigum" wrote: > Hi all, > > I'm having a stupid moment getting a remote file bucket working. My > client only file buckets locally, not remotely. > > I have this site.pp: > * > filebucket { "main": server => "puppet" } > File { backup => "main" } > node 'default' { > include test} > > * > > and this test module: > * > class test { > file { "/etc/sudoers": > source => "puppet:///modules/test/sudoers", > owner => "root", > group => "root", > mode => "0440", > ensure => present, > backup => "main", > }} > > * > > $ puppetd --test --environment testing > ... > info: FileBucket adding /etc/sudoers as {md5} > fee30f6b0672f6c174709249f37380d4 > info: /Stage[main]/Test/File[/etc/sudoers]: Filebucketed /etc/sudoers > to main with sum fee30f6b0672f6c174709249f37380d4 > notice: Finished catalog run in 0.49 seconds > > According to the Apache logs (I use Passenger) the only PUT request > it's doing is for it's report: > > 10.44.222.42 - - [19/Oct/2010:16:18:26 +0100] "GET /testing/ > catalog/..." 200 1439 "-" "-" > 10.44.222.42 - - [19/Oct/2010:16:18:26 +0100] "GET /testing/ > file_metadata/modules/test/sudoers HTTP/1.1" 200 307 "-" "-" > 10.44.222.42 - - [19/Oct/2010:16:18:26 +0100] "GET /testing/ > file_content/modules/test/sudoers HTTP/1.1" 200 1421 "-" "-" > 10.44.222.42 - - [19/Oct/2010:16:18:27 +0100] "GET /testing/ > file_content/modules/test/sudoers HTTP/1.1" 200 1421 "-" "-" > 10.44.222.42 - - [19/Oct/2010:16:18:27 +0100] "GET /testing/ > file_metadata/modules/test/sudoers HTTP/1.1" 200 307 "-" "-" > 10.44.222.42 - - [19/Oct/2010:16:18:27 +0100] "PUT /testing/report/ > puppet-test.fasthosts.net.uk HTTP/1.1" 200 35 "-" "-" > > I've also stopped Apache and started up the Webrick Puppet Master, > same result, no file bucketed to the server. > > Can someone point out what I've missed? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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] Re: client won't use remote file bucket
Not that I've been able to see, James, though I'd put money on that I've probably missed something so ridiculously simple that I can't see it. I've attached the client and Webrick master debug logs - the Master's Report http error at the end can be ignored, it's because Apache is shut down on the box (Puppet Master and Dashboard are the same server in this case). I've also pasted master and client configs in case it helps. As the logs show, the puppet clients *say* they are filebucketing to 'main', but it only ends up in the local /var/lib/puppet/clientbucket/ and not the master's /var/lib/puppet/bucket/. Even the Puppet Master, which is also a Puppet client, only filebuckets into the clientbucket directory. [r...@puppet-test ~]# grep -v '#' /etc/puppet/puppet.conf | egrep -v '^ $' [main] logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl [agent] environment = testing classfile = $vardir/classes.txt localconfig = $vardir/localconfig report = true reportserver = puppet splay = true runinterval = 1200 [r...@puppet-master-01 puppet]# grep -v '#' /etc/puppet/puppet.conf | egrep -v '^$' [main] logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl tagmap = /etc/puppet/tagmail.conf pluginsync = true factpath = $vardir/lib/facter [agent] environment = production classfile = $vardir/classes.txt localconfig = $vardir/localconfig report = true reportserver = puppet splay = true runinterval = 1200 [master] certname = puppet ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY modulepath = /var/lib/puppet/modules:/etc/puppet/modules reports = tagmail, http, store reporturl = http://localhost:3000/reports [production] manifest = /etc/puppet/conf/production/manifests/site.pp modulepath = /etc/puppet/conf/production/modules [development] manifest = /etc/puppet/conf/development/manifests/site.pp modulepath = /etc/puppet/conf/development/modules [testing] manifest = /etc/puppet/conf/testing/manifests/site.pp modulepath = /etc/puppet/conf/testing/modules [r...@puppet-test ~]# puppetd --test --debug --trace --verbose debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/ dscl does not exist debug: Puppet::Type::File::ProviderMicrosoft_windows: feature microsoft_windows is missing debug: Failed to load library 'ldap' for feature 'ldap' debug: /File[/var/lib/puppet/classes.txt]: Autorequiring File[/var/lib/ puppet] debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/ var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/public_keys/puppet- test.fasthosts.net.uk.pem]: Autorequiring File[/var/lib/puppet/ssl/ public_keys] debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/ puppet/ssl] debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/ lib/puppet/state] debug: /File[/var/lib/puppet/client_data]: Autorequiring File[/var/lib/ puppet] debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/ssl/private_keys/puppet- test.fasthosts.net.uk.pem]: Autorequiring File[/var/lib/puppet/ssl/ private_keys] debug: /File[/var/lib/puppet/ssl/certs/puppet- test.fasthosts.net.uk.pem]: Autorequiring File[/var/lib/puppet/ssl/ certs] debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/ puppet] debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/ puppet/ssl] debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring File[/ var/lib/puppet/state] debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/ lib/puppet] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/ puppet] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/ lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/ var/lib/puppet/ssl] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/ puppet] debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/ puppet/ssl] debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: Finishing transaction 23911437109040 debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/ puppet/ssl] debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/public_keys/puppet- test.fasthosts.net.uk.pem]: Autorequiring File[/var/lib/puppet/ssl/ public_keys] debug: /File[/var/lib/puppet/ssl/certs/puppet- test.fasthosts.net.uk.pem]: Autorequiring File[/va
Re: [Puppet Users] Re: client won't use remote file bucket
luke.bigum wrote: > Sorry should have said that. 2.6.2 client and server running on CentOS > 5. Stock CentOS ruby (1.8.5), server runs via Passenger and Ruby > Enterprise 1.8.7. > And no errors in the debug logs? Can you pastie some --debug --trace logs? Thanks James -- Puppet Labs - http://www.puppetlabs.com C: 503-734-8571 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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] Re: client won't use remote file bucket
That was meant to read "Clients run stock CentOS ruby (1.8.5), server runs via Passenger and Ruby Enterprise 1.8.7." On Oct 19, 5:02 pm, "luke.bigum" wrote: > Sorry should have said that. 2.6.2 client and server running on CentOS > 5. Stock CentOS ruby (1.8.5), server runs via Passenger and Ruby > Enterprise 1.8.7. > > On Oct 19, 4:58 pm, James Turnbull wrote: > > > luke.bigum wrote: > > > Hi all, > > > > I'm having a stupid moment getting a remote file bucket working. My > > > client only file buckets locally, not remotely. > > > > I have this site.pp: > > > * > > > filebucket { "main": server => "puppet" } > > > File { backup => "main" } > > > node 'default' { > > > include test > > > What Puppet version? > > > Regards > > > James Turnbull > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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] Re: client won't use remote file bucket
Sorry should have said that. 2.6.2 client and server running on CentOS 5. Stock CentOS ruby (1.8.5), server runs via Passenger and Ruby Enterprise 1.8.7. On Oct 19, 4:58 pm, James Turnbull wrote: > luke.bigum wrote: > > Hi all, > > > I'm having a stupid moment getting a remote file bucket working. My > > client only file buckets locally, not remotely. > > > I have this site.pp: > > * > > filebucket { "main": server => "puppet" } > > File { backup => "main" } > > node 'default' { > > include test > > What Puppet version? > > Regards > > James Turnbull -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.