Hey,
it was. Today i re-installed everything reading the howto from the puppet
developers.
Puppet with modules and stuff is working fine but the pluginsync still does
not work.
Here my whole (new) configs:
Puppet.conf:
---
[main]
# Where Puppet stores dynamic and growing data.
# The default value is '/var/puppet'.
vardir = /var/lib/puppet
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet
# Where SSL certificates are kept.
# The default value is '$confdir/ssl'.
ssldir = $vardir/ssl
pluginsync = true
factpath = $vardir/lib/facter
[puppetd]
# The file in which puppetd stores a list of the classes
# associated with the retrieved configuratiion. Can be loaded in
# the separate ``puppet`` executable using the ``--loadclasses``
# option.
# The default value is '$confdir/classes.txt'.
classfile = $vardir/classes.txt
# Where puppetd caches the local configuration. An
# extension indicating the cache format is added automatically.
# The default value is '$confdir/localconfig'.
localconfig = $vardir/localconfig
---
Puppetmasterd.conf:
---
[puppetmasterd]
vardir = /var/lib/puppet
modulepath = /etc/puppet/modules
---
Fileserver.conf:
---
[files]
path /etc/puppet/manifests
allow *.domain.local
allow 192.168.2.0/24
[modules]
allow *.domain.local
allow 192.168.2.0/24
---
Site.pp:
---
import "nodes"
filebucket { main: server => 'puppet.domain.local' }
File { backup => main }
Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" }
---
Here again the error with --debug --trace:
---
[r...@puppet ~]# puppetd --server puppet.domain.local --test --debug --trace
debug: Failed to load library 'selinux' for feature 'selinux'
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does
not exist
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not
exist
debug: Failed to load library 'ldap' for feature 'ldap'
debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring
File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/private]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/classes.txt]: Autorequiring
File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/public_keys/puppet.domain.local.pem]:
Autorequiring File[/var/lib/puppet/ssl/public_keys]
debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring
File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/ssl/private_keys/puppet.domain.local.pem]:
Autorequiring File[/var/lib/puppet/ssl/private_keys]
debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/clientbucket]: Autorequiring
File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state/graphs]: Autorequiring
File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/certs/puppet.domain.local.pem]:
Autorequiring File[/var/lib/puppet/ssl/certs]
debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet]
debug: /File[/var/run/puppet/puppetd.pid]: Autorequiring
File[/var/run/puppet]
debug: /File[/var/lib/puppet/client_yaml]: Autorequiring
File[/var/lib/puppet]
debug: Finishing transaction 23575442222240 with 0 changes
debug: Using cached certificate for ca, good until Mon Mar 09 12:26:05 UTC
2015
debug: Using cached certificate for puppet.domain.local, good until Mon Mar
09 12:26:05 UTC 2015
debug: Loaded state in 0.00 seconds
info: Retrieving plugin
debug: Using cached certificate for ca, good until Mon Mar 09 12:26:05 UTC
2015
debug: Using cached certificate for puppet.domain.local, good until Mon Mar
09 12:26:05 UTC 2015
debug: Using cached certificate_revocation_list for ca, good until
debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml;
using pson
debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml;
using pson
/usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:401:in `fail'
/usr/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:160:in
`init_metadata'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `cached_value'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:46:in `metadata'
/usr/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:111:in
`copy_source_values'
/usr/lib/ruby/site_ruby/1.8/puppet/type/file.rb:630:in `retrieve'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:726:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:62:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:251:in
`eval_children_and_apply_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:418:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:250:in
`eval_children_and_apply_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:207:in `eval_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:296:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:418:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:295:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:289:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:289:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:142:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer/downloader.rb:32:in `evaluate'
/usr/lib/ruby/1.8/timeout.rb:56:in `timeout'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer/downloader.rb:31:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer/plugin_handler.rb:12:in
`download_plugins'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:85:in `prepare'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:152:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/1.8/sync.rb:229:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:134:in `with_client'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:51:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application/puppetd.rb:103:in `onetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/sbin/puppetd:159
err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of
resource: Could not retrieve information from source(s)
puppet://puppet.domain.local/plugins
notice: /File[/var/lib/puppet/lib/facter]: Dependency
file[/var/lib/puppet/lib] has 1 failures
warning: /File[/var/lib/puppet/lib/facter]: Skipping because of failed
dependencies
debug: Finishing transaction 23575441830620 with 0 changes
debug: catalog supports formats: b64_zlib_yaml marshal pson raw yaml; using
pson
info: Caching catalog for puppet.domain.local
debug: Creating default schedules
debug: Loaded state in 0.00 seconds
info: Applying configuration version '1268328527'
debug: Finishing transaction 23575442291320 with 0 changes
debug: Storing state
debug: Stored state in 0.01 seconds
notice: Finished catalog run in 0.02 seconds
---
Best regards
Sebastian
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im
Auftrag von Nigel Kersten
Gesendet: Donnerstag, 11. März 2010 16:09
An: [email protected]
Betreff: Re: [Puppet Users] Re: Failed to retrieve current state of resource
a.o
Is that your entire config? ie no environments or anything?
On Wed, Mar 10, 2010 at 10:49 PM, skoesters <[email protected]> wrote:
> Hi and thanks for your answer,
>
> no, i do not have plugins in my fileserver config.
>
> my puppet.conf looks like this:
>
> ---
>
> [main]
> # Where Puppet stores dynamic and growing data.
> # The default value is '/var/puppet'.
> vardir = /var/lib/puppet
>
> # The Puppet log directory.
> # The default value is '$vardir/log'.
> logdir = /var/log/puppet
>
> # Where Puppet PID files are kept.
> # The default value is '$vardir/run'.
> rundir = /var/run/puppet
>
> # Where SSL certificates are kept.
> # The default value is '$confdir/ssl'.
> ssldir = $vardir/ssl
>
> pluginsync = false
> factpath = $vardir/lib/facter
>
>
> [puppetd]
> vardir = /var/lib/puppet
> # The file in which puppetd stores a list of the classes
> # associated with the retrieved configuratiion. Can be loaded in
> # the separate ``puppet`` executable using the ``--loadclasses``
> # option.
> # The default value is '$confdir/classes.txt'.
> classfile = $vardir/classes.txt
>
> # Where puppetd caches the local configuration. An
> # extension indicating the cache format is added automatically.
> # The default value is '$confdir/localconfig'.
> localconfig = $vardir/localconfig
> report = true
> splay = true
> splaylimit = 300
>
> [puppetmasterd]
> vardir = /var/lib/puppet
> user=puppet
> group=puppet
>
> ---
>
> with pluginsync = false everything looks ok:
>
> ---
>
> [r...@div ~]# puppetd --server puppet.domain.net --test
> info: Caching catalog for div.domain.net
> info: Applying configuration version '1268289896'
> warning: Value of 'preferred_serialization_format' (pson) is invalid
> for report, using default (marshal)
> notice: Finished catalog run in 0.09 seconds
>
> ---
>
> with pluginsync = true i get the error message:
>
> ---
>
> [r...@div ~]# puppetd --server puppet.domain.net --test
> info: Retrieving plugin
> err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of
> resource: Could not retrieve information from source(s)
> puppet://puppet.domain.net/plugins
> notice: /File[/var/lib/puppet/lib/facter]: Dependency file[/var/lib/
> puppet/lib] has 1 failures
> warning: /File[/var/lib/puppet/lib/facter]: Skipping because of failed
> dependencies
> info: Caching catalog for div.domain.net
> info: Applying configuration version '1268290128'
> warning: Value of 'preferred_serialization_format' (pson) is invalid
> for report, using default (marshal)
> notice: Finished catalog run in 0.09 seconds
>
> ---
>
> best regards
> Sebastian
>
> On Mar 11, 2:53 am, Ohad Levy <[email protected]> wrote:
>> On Wed, Mar 10, 2010 at 11:35 PM, skoesters <[email protected]> wrote:
>> > err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of
>> > resource: Could not retrieve information from source(s)
>> > puppet://puppet.domain.net/plugins
>>
>> > do you have plugins in your fileserv.conf? if you do, try to remove it.
>>
>> warning: Value of 'preferred_serialization_format' (pson) is invalid> for
report, using default (marshal)
>>
>> > Thats not a problem, basically its a warning message (which should have
>>
>> been a debug message IMHO) - saying that the report was serialized and
send
>> via marshal and not pson (as reports cant be serialized using pson at the
>> moment).
>
> --
> You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
[email protected].
> For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
>
>
--
nigel
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.