Issue #2511 has been updated by Sam Rowe.

Here's some more traces (run in succession on the same host) for your tracing 
enjoyment.

We'd previously mentioned a possible correlation with --ignoreschedules. None 
of these traces were run with --ignoreschedules.

<pre>
/usr/lib/site_ruby/1.8/puppet/util/errors.rb:51:in `fail'
/usr/lib/site_ruby/1.8/puppet/type.rb:441:in `[]='
/usr/lib/site_ruby/1.8/puppet/type.rb:1935:in `set_parameters'
/usr/lib/site_ruby/1.8/puppet/type.rb:1929:in `each'
/usr/lib/site_ruby/1.8/puppet/type.rb:1929:in `set_parameters'
/usr/lib/site_ruby/1.8/puppet/type.rb:1909:in `initialize'
/usr/lib/site_ruby/1.8/puppet/type/file.rb:400:in `initialize'
/usr/lib/site_ruby/1.8/puppet/resource.rb:177:in `new'
/usr/lib/site_ruby/1.8/puppet/resource.rb:177:in `to_ral'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:565:in `send'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:565:in `to_catalog'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:543:in `each'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:543:in `to_catalog'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:463:in `to_ral'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:120:in `convert_catalog'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:115:in `retrieve_catalog'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:135:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `lock'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `synchronize'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:51:in `with_client'
/usr/lib/site_ruby/1.8/puppet/agent.rb:58:in `run'
/usr/lib/site_ruby/1.8/puppet/application/puppetd.rb:103:in `onetime'
/usr/lib/site_ruby/1.8/puppet/application/puppetd.rb:94:in `onetime'
/usr/lib/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `exit_on_fail'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/sbin/puppetd:159
err: Could not run Puppet configuration client: Invalid parameter :ignore at 
/etc/puppet/modules/nagios/manifests/init.pp:79
</pre>

Note that /etc/puppet/modules/nagios/manifests/init.pp doesn't contain the word 
"ignore" at all. We do have a "global" ignore of .svn files in our site.pp 
File{ ignore => '.svn' }

Here's another run with --test --trace:

<pre>
/usr/lib/site_ruby/1.8/puppet/util/errors.rb:51:in `fail'
/usr/lib/site_ruby/1.8/puppet/type.rb:441:in `[]='
/usr/lib/site_ruby/1.8/puppet/type.rb:1935:in `set_parameters'
/usr/lib/site_ruby/1.8/puppet/type.rb:1929:in `each'
/usr/lib/site_ruby/1.8/puppet/type.rb:1929:in `set_parameters'
/usr/lib/site_ruby/1.8/puppet/type.rb:1909:in `initialize'
/usr/lib/site_ruby/1.8/puppet/resource.rb:177:in `new'
/usr/lib/site_ruby/1.8/puppet/resource.rb:177:in `to_ral'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:565:in `send'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:565:in `to_catalog'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:543:in `each'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:543:in `to_catalog'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:463:in `to_ral'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:120:in `convert_catalog'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:115:in `retrieve_catalog'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:135:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `lock'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `synchronize'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:51:in `with_client'
/usr/lib/site_ruby/1.8/puppet/agent.rb:58:in `run'
/usr/lib/site_ruby/1.8/puppet/application/puppetd.rb:103:in `onetime'
/usr/lib/site_ruby/1.8/puppet/application/puppetd.rb:94:in `onetime'
/usr/lib/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `exit_on_fail'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/sbin/puppetd:159
err: Could not run Puppet configuration client: Invalid parameter :ensure at 
/etc/puppet/modules/redhat/manifests/init.pp:199
</pre>

Note that this one is :ensure.

For what it's worth, here's some lines from 
/var/puppet/client_yaml/catalog/hostname.yaml with line numbers:

<pre>
184   - !ruby/object:Puppet::Relationship
185     source: *id003
186     target: !ruby/object:Puppet::Resource
187       catalog: *id001
188       exported:
189       file: "/etc/puppet/modules/allusers/manifests/bjones.pp"
190       line: 9
191       parameters:
192         ":gid": "4"
193         ":managehome": true
194         ":password": "$1$NFJDIlZP1.fw$2bCVCrrmfkvQRFskVzsoY."
195         ":shell": "/bin/bash"
196         ":uid": "116"
197         ":comment": Bob Jones
198         ":ensure": present
199         ":home": "/home/bjones"
200       reference: !ruby/object:Puppet::Resource::Reference
201         builtin_type:
202         title: bjones
203         type: User
</pre>

Again, "ensure" appears nowhere near line 199 of 
/etc/puppet/modules/redhat/manifests/init.pp, but it is there on 198 of 
hostname.yaml. However, it doesn't always work that way.

I'm also surprised to see the symbols quoted like that, but maybe that's 
expected.

Here's another:

<pre>
/usr/lib/site_ruby/1.8/puppet/type.rb:530:in `newattr'
/usr/lib/site_ruby/1.8/puppet/type.rb:455:in `[]='
/usr/lib/site_ruby/1.8/puppet/type.rb:1919:in `set_name'
/usr/lib/site_ruby/1.8/puppet/type.rb:1905:in `initialize'
/usr/lib/site_ruby/1.8/puppet/type/file.rb:400:in `initialize'
/usr/lib/site_ruby/1.8/puppet/resource.rb:177:in `new'
/usr/lib/site_ruby/1.8/puppet/resource.rb:177:in `to_ral'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:565:in `send'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:565:in `to_catalog'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:543:in `each'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:543:in `to_catalog'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:463:in `to_ral'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:120:in `convert_catalog'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:115:in `retrieve_catalog'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:135:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `lock'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `synchronize'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:51:in `with_client'
/usr/lib/site_ruby/1.8/puppet/agent.rb:58:in `run'
/usr/lib/site_ruby/1.8/puppet/application/puppetd.rb:103:in `onetime'
/usr/lib/site_ruby/1.8/puppet/application/puppetd.rb:94:in `onetime'
/usr/lib/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `exit_on_fail'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/sbin/puppetd:159
err: Could not run Puppet configuration client: Parameter path failed: File 
paths must be fully qualified, not 'usrlocalsbin'
</pre>

<pre>
puppetd --test --trace
err: State got corrupted
info: Loading facts in hardwareisa_overrides
info: Loading facts in hardwaremodel_overrides
info: Loading facts in tww_ssh_version
info: Loading facts in fc
info: Loading facts in serialnumber
info: Loading facts in hardwareisa_overrides
info: Loading facts in hardwaremodel_overrides
info: Loading facts in tww_ssh_version
info: Loading facts in fc
info: Loading facts in serialnumber
info: Caching catalog for ourhost.example.com
/usr/lib/site_ruby/1.8/puppet/type.rb:530:in `newattr'
/usr/lib/site_ruby/1.8/puppet/type.rb:455:in `[]='
/usr/lib/site_ruby/1.8/puppet/type.rb:1919:in `set_name'
/usr/lib/site_ruby/1.8/puppet/type.rb:1905:in `initialize'
/usr/lib/site_ruby/1.8/puppet/type/file.rb:400:in `initialize'
/usr/lib/site_ruby/1.8/puppet/resource.rb:177:in `new'
/usr/lib/site_ruby/1.8/puppet/resource.rb:177:in `to_ral'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:565:in `send'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:565:in `to_catalog'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:543:in `each'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:543:in `to_catalog'
/usr/lib/site_ruby/1.8/puppet/resource/catalog.rb:463:in `to_ral'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:120:in `convert_catalog'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:115:in `retrieve_catalog'
/usr/lib/site_ruby/1.8/puppet/configurer.rb:135:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `lock'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `synchronize'
/usr/lib/site_ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/site_ruby/1.8/puppet/agent.rb:51:in `with_client'
/usr/lib/site_ruby/1.8/puppet/agent.rb:58:in `run'
/usr/lib/site_ruby/1.8/puppet/application/puppetd.rb:103:in `onetime'
/usr/lib/site_ruby/1.8/puppet/application/puppetd.rb:94:in `onetime'
/usr/lib/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `exit_on_fail'
/usr/lib/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/sbin/puppetd:159
err: Could not run Puppet configuration client: Parameter path failed: File 
paths must be fully qualified, not 'exorcise'
</pre>

'exorcise' is the name of one of our scripts that we distribute via puppet.

We tried to get you one with :before, but couldn't make it do it. As I 
explained to Luke, we're happy to give you access if that will help.

----------------------------------------
Bug #2511: Sporadic and spurious "invalid parameter" errors
http://projects.reductivelabs.com/issues/2511

Author: Markus Roberts
Status: Accepted
Priority: High
Assigned to: Markus Roberts
Category: unknown
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0rc1
Keywords: 


Under certain orderings large numbers (>100) of tests will fail with messages 
similar to this:

<pre>
44)
Puppet::Error in 'Puppet::Resource::Catalog when compiling when creating a 
relationship graph should not write graph files if the catalog is not a host 
cata
log'
Invalid parameter source(:source)
./lib/puppet/util/errors.rb:51:in `fail'
./lib/puppet/type.rb:418:in `[]'
./spec/../lib/puppet/type/file.rb:278:in `validate'
./lib/puppet/type.rb:1908:in `initialize'
./spec/../lib/puppet/type/file.rb:400:in `initialize'
./spec/unit/resource/catalog.rb:713:in `new'
./spec/unit/resource/catalog.rb:713:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'
</pre>

The common factor in each case being the "Invalid parameter" messages and the 
first five lines of the stack trace.  

That this is order dependent has been confirmed by making the problem appear on 
a fresh, unmodified copy of 0.25.0rc1 by simply touching spec files to force 
test execution error and then making the problem go away by touching one of the 
spec files again to force a different ordering.




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to