rdark
2011-Mar-05 15:40 UTC
[Puppet Users] err: Could not run Puppet configuration client: Parameter require failed: No title provided and "" is not a valid resource reference
Both the server and the client in this example are running 2.6.5: One class seems to be causing the error: debug: Value of ''preferred_serialization_format'' (pson) is invalid for report, using default (b64_zlib_yaml) debug: report supports formats: b64_zlib_yaml marshal raw yaml; using b64_zlib_yaml /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/resource.rb:396:in `extract_type_and_title'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/resource.rb:191:in `initialize'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/type.rb:1140:in `new'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/type.rb:1140:in `munge'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/type.rb:1136:in `collect'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/type.rb:1136:in `munge'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/parameter.rb:279:in `value='' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/type.rb:416:in `[]='' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/type.rb:1773:in `set_parameters'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/type.rb:1767:in `each'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/type.rb:1767:in `set_parameters'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/type.rb:1749:in `initialize'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/resource.rb:277:in `new'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/resource.rb:277:in `to_ral'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/resource/catalog.rb: 553:in `send'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/resource/catalog.rb: 553:in `to_catalog'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/resource/catalog.rb: 531:in `each'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/resource/catalog.rb: 531:in `to_catalog'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/resource/catalog.rb: 468:in `to_ral'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/configurer.rb:113:in `convert_catalog'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/configurer.rb:108:in `retrieve_catalog'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/configurer.rb:139:in `run'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/agent.rb:39:in `run'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/agent/locker.rb:21:in `lock'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/agent.rb:39:in `run'' /usr/lib/ruby/1.8/sync.rb:230:in `synchronize'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/agent.rb:39:in `run'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/agent.rb:103:in `with_client'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/agent.rb:37:in `run'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/application.rb:171:in `call'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/application.rb:171:in `controlled_run'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/agent.rb:35:in `run'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/agent.rb:78:in `start'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/external/event-loop/ signal-system.rb:95:in `call'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/external/event-loop/ signal-system.rb:95:in `__signal__'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/external/event-loop/ signal-system.rb:95:in `each'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/external/event-loop/ signal-system.rb:95:in `__signal__'' (eval):2:in `signal'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/external/event-loop/ event-loop.rb:317:in `sound_alarm'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/external/event-loop/ event-loop.rb:132:in `select'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/external/event-loop/ event-loop.rb:132:in `each'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/external/event-loop/ event-loop.rb:132:in `select'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/external/event-loop/ event-loop.rb:118:in `iterate'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/external/event-loop/ event-loop.rb:109:in `run'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/daemon.rb:127:in `start'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/application/agent.rb: 132:in `main'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/application/agent.rb: 89:in `run_command'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/application.rb:304:in `run'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/application.rb:410:in `exit_on_fail'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/application.rb:304:in `run'' /var/lib/gems/1.8/gems/puppet-2.6.5/lib/puppet/util/command_line.rb: 59:in `execute'' /var/lib/gems/1.8/gems/puppet-2.6.5/bin/puppet:4 /usr/bin/puppet:19:in `load'' /usr/bin/puppet:19 err: Could not run Puppet configuration client: Parameter require failed: No title provided and "" is not a valid resource reference The class looks like: class puppet::gembased inherits puppet { # manage puppet install from rubygems # force versions to latest stable include rubygems include user::puppet package { "puppet": name => "puppet", ensure => "2.6.5", provider => "gem", require => [ Package["facter"], User["puppet"] ], } # package package { "facter": name => "facter", ensure => "1.5.8", provider => "gem", #require => Package["rubygems"], } # package package { "libshadow": ensure => installed, name => $operatingsystem ? { /Debian|Ubuntu/ => "libshadow-ruby1.8", default => "ruby-shadow", }, require => $operatingsystem ? { /CentOS|RedHat/ => Yumrepo["epel"], default => "", }, } # package case $operatingsystem { Debian,Ubuntu : { package { "lsb-release": ensure => installed, } } } # Case File["/var/log/puppet"] { owner => "root", group => "root", } # File file { "/var/run/puppet": owner => "puppet", group => "puppet", before => Package["puppet"], require => User["puppet"], } # file File["puppet.conf"] { content => $my_puppet_server ? { # puppet master is always 2.6 $fqdn => template("puppet/master/puppet.conf.erb"), default => template("puppet/puppet_2.6.conf.erb"), }, require => Package["puppet"], } # File File["namespaceauth.conf"] { content => $my_puppet_server ?{ # puppet master is always 2.6 $fqdn => template("puppet/master/ namespaceauth.conf.erb"), default => template("puppet/ namespaceauth_2.6.conf.erb"), }, require => Package["puppet"], } # puppet cron { "puppet": ensure => present, command => "/usr/local/bin/launch-puppet", user => "root", minute => ip_to_cron(2), require => [ File["/var/log/puppet"], File["/usr/local/bin/ launch-puppet"], File["/etc/profile.d/puppet.sh"], File["/etc/ profile.d/facterlibs.sh"] ], } # cron # setup paths file { "/etc/profile.d/puppet.sh": owner => "root", group => "root", mode => "0755", content => template("puppet/profile.d/ puppet_gembased.sh.erb"), require => Package["puppet"], } # file # puppet --onetime wrapper file { "/usr/local/bin/launch-puppet": ensure => "present", owner => "root", group => "root", mode => "0755", content => template("puppet/launch-puppet.erb"), require => Package["puppet"], } # file File["/etc/profile.d/facterlibs.sh"] { owner => "root", group => "root", mode => "0755", content => template("puppet/profile.d/ facterlibs_gembased.sh.erb"), require => Package["puppet"], } # file } # class puppet::gembased I''ve tried removing all the require statements and still get the same error. I''m not sure whether there''s a syntax error buried in there that I havn''t seen, or if it''s a bug. -- 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.
Nan Liu
2011-Mar-05 17:42 UTC
Re: [Puppet Users] err: Could not run Puppet configuration client: Parameter require failed: No title provided and "" is not a valid resource reference
The problem is probably the "" default, try undef instead. Nan On Mar 5, 2011, at 9:18, rdark <noc@fohnet.co.uk> wrote:> require => $operatingsystem ? { > /CentOS|RedHat/ => Yumrepo["epel"], > default => "", > },-- 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.
Maybe Matching Threads
- troubles with require parametre
- Windows Puppet 2.7.12rc1-7-g281901e hands at end of run
- Using stored configs brakes on client update
- Error 400 on SERVER: Could not find class pentaho for server.test.com
- err: Could not run Puppet configuration client: execution expired