Issue #4753 has been reported by Geoff Crompton. ---------------------------------------- Bug #4753: CLI puppet incorrectly tries remote puppet master service for file resource with empty servername component http://projects.puppetlabs.com/issues/4753
Author: Geoff Crompton Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected version: Keywords: Branch: Summary: Despite what the documentation at http://docs.puppetlabs.com/references/latest/type.html#source says, the command line /usr/bin/puppet wants to connect to the puppet master. The documentation says that if a servername is not specified then /usr/bin/puppet will only use the local modulepath setting. My testing shows this is not the case, in this case I'm using puppet on a laptop that isn't registered with the puppet master that is available on the work network. Steps to Reproduce: I'm doing this on an up-to-date debian unstable laptop, running the debian puppet package 2.6.0-3, and the debian ruby package 1.8.7.302-2 Create localfile.pp with: file { "/testfile": source => "puppet:///modules/testmod/testfile", } Create directory structure like: modules/ modules/testmod modules/testmod/files modules/testmod/files/testfile Plug puppet into a network that has a puppet master running and run puppet like: puppet --modulepath $PWD/modules localfile.pp Expected Results: See puppet create /testfile Actual Results: Here is a dump of what I see. geo...@svelt:~/tmp$ puppet --modulepath $PWD/modules --trace --debug --verbose localfile.pp debug: Failed to load library 'rubygems' for feature 'rubygems' debug: Failed to load library 'selinux' for feature 'selinux' debug: Puppet::Type::File::ProviderMicrosoft_windows: feature microsoft_windows is missing debug: Creating default schedules debug: Failed to load library 'ldap' for feature 'ldap' debug: /File[/home/geoffc/.puppet/var/state/graphs]: Autorequiring File[/home/geoffc/.puppet/var/state] debug: /File[/home/geoffc/.puppet/var/state/state.yaml]: Autorequiring File[/home/geoffc/.puppet/var/state] debug: /File[/home/geoffc/.puppet/ssl/certs]: Autorequiring File[/home/geoffc/.puppet/ssl] debug: /File[/home/geoffc/.puppet/var/state]: Autorequiring File[/home/geoffc/.puppet/var] debug: /File[/home/geoffc/.puppet/ssl]: Autorequiring File[/home/geoffc/.puppet] debug: /File[/home/geoffc/.puppet/var/client_yaml]: Autorequiring File[/home/geoffc/.puppet/var] debug: /File[/home/geoffc/.puppet/var/reports]: Autorequiring File[/home/geoffc/.puppet/var] debug: /File[/home/geoffc/.puppet/ssl/private]: Autorequiring File[/home/geoffc/.puppet/ssl] debug: /File[/home/geoffc/.puppet/var/client_data]: Autorequiring File[/home/geoffc/.puppet/var] debug: /File[/home/geoffc/.puppet/var/lib]: Autorequiring File[/home/geoffc/.puppet/var] debug: /File[/home/geoffc/.puppet/var]: Autorequiring File[/home/geoffc/.puppet] debug: /File[/home/geoffc/.puppet/var/run]: Autorequiring File[/home/geoffc/.puppet/var] debug: /File[/home/geoffc/.puppet/var/facts]: Autorequiring File[/home/geoffc/.puppet/var] debug: /File[/home/geoffc/.puppet/ssl/private_keys]: Autorequiring File[/home/geoffc/.puppet/ssl] debug: /File[/home/geoffc/.puppet/var/clientbucket]: Autorequiring File[/home/geoffc/.puppet/var] debug: /File[/home/geoffc/.puppet/var/log]: Autorequiring File[/home/geoffc/.puppet/var] debug: /File[/home/geoffc/.puppet/ssl/public_keys]: Autorequiring File[/home/geoffc/.puppet/ssl] debug: /File[/home/geoffc/.puppet/ssl/certificate_requests]: Autorequiring File[/home/geoffc/.puppet/ssl] debug: Finishing transaction -618639788 debug: Loaded state in 0.00 seconds info: Applying configuration version '1284101897' warning: peer certificate won't be verified in this SSL session /usr/lib/ruby/1.8/puppet/type/file/content.rb:196:in `chunk_file_from_source' /usr/lib/ruby/1.8/net/http.rb:1054:in `request' /usr/lib/ruby/1.8/net/http.rb:2144:in `reading_body' /usr/lib/ruby/1.8/net/http.rb:1053:in `request' /usr/lib/ruby/1.8/net/http.rb:1037:in `request' /usr/lib/ruby/1.8/net/http.rb:543:in `start' /usr/lib/ruby/1.8/net/http.rb:1035:in `request' /usr/lib/ruby/1.8/net/http.rb:948:in `request_get' /usr/lib/ruby/1.8/puppet/type/file/content.rb:189:in `chunk_file_from_source' /usr/lib/ruby/1.8/puppet/type/file/content.rb:172:in `each_chunk_from' /usr/lib/ruby/1.8/puppet/type/file/content.rb:157:in `write' /usr/lib/ruby/1.8/puppet/util/checksums.rb:46:in `md5_stream' /usr/lib/ruby/1.8/puppet/type/file/checksum.rb:30:in `send' /usr/lib/ruby/1.8/puppet/type/file/checksum.rb:30:in `sum_stream' /usr/lib/ruby/1.8/puppet/type/file/content.rb:156:in `write' /usr/lib/ruby/1.8/puppet/type/file.rb:761:in `write_content' /usr/lib/ruby/1.8/puppet/type/file.rb:722:in `write' /usr/lib/ruby/1.8/puppet/type/file.rb:722:in `open' /usr/lib/ruby/1.8/puppet/type/file.rb:722:in `write' /usr/lib/ruby/1.8/puppet/util.rb:144:in `withumask' /usr/lib/ruby/1.8/puppet/type/file.rb:722:in `write' /usr/lib/ruby/1.8/puppet/type/file/content.rb:137:in `sync' /usr/lib/ruby/1.8/puppet/type/file/ensure.rb:46:in `set_file' /usr/lib/ruby/1.8/puppet/property.rb:81:in `send' /usr/lib/ruby/1.8/puppet/property.rb:81:in `call_valuemethod' /usr/lib/ruby/1.8/puppet/property.rb:241:in `set' /usr/lib/ruby/1.8/puppet/property.rb:295:in `sync' /usr/lib/ruby/1.8/puppet/type/file/ensure.rb:164:in `sync' /usr/lib/ruby/1.8/puppet/transaction/change.rb:34:in `apply' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:21:in `apply_changes' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:20:in `each' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:20:in `apply_changes' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:90:in `evaluate' /usr/lib/ruby/1.8/puppet/transaction.rb:49:in `apply' /usr/lib/ruby/1.8/puppet/transaction.rb:114:in `eval_children_and_apply_resource' /usr/lib/ruby/1.8/puppet/transaction.rb:92:in `eval_resource' /usr/lib/ruby/1.8/puppet/transaction.rb:143:in `evaluate' /usr/lib/ruby/1.8/puppet/util.rb:414:in `thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/lib/ruby/1.8/puppet/util.rb:413:in `thinmark' /usr/lib/ruby/1.8/puppet/transaction.rb:142:in `evaluate' /usr/lib/ruby/1.8/puppet/transaction.rb:135:in `each' /usr/lib/ruby/1.8/puppet/transaction.rb:135:in `evaluate' /usr/lib/ruby/1.8/puppet/resource/catalog.rb:144:in `apply' /usr/lib/ruby/1.8/puppet/application/apply.rb:126:in `main' /usr/lib/ruby/1.8/puppet/application/apply.rb:35:in `run_command' /usr/lib/ruby/1.8/puppet/application.rb:301:in `run' /usr/lib/ruby/1.8/puppet/application.rb:398:in `exit_on_fail' /usr/lib/ruby/1.8/puppet/application.rb:301:in `run' /usr/lib/ruby/1.8/puppet/util/command_line.rb:55:in `execute' /usr/bin/puppet:4 /usr/lib/ruby/1.8/puppet/type/file/content.rb:196:in `chunk_file_from_source' /usr/lib/ruby/1.8/net/http.rb:1054:in `request' /usr/lib/ruby/1.8/net/http.rb:2144:in `reading_body' /usr/lib/ruby/1.8/net/http.rb:1053:in `request' /usr/lib/ruby/1.8/net/http.rb:1037:in `request' /usr/lib/ruby/1.8/net/http.rb:543:in `start' /usr/lib/ruby/1.8/net/http.rb:1035:in `request' /usr/lib/ruby/1.8/net/http.rb:948:in `request_get' /usr/lib/ruby/1.8/puppet/type/file/content.rb:189:in `chunk_file_from_source' /usr/lib/ruby/1.8/puppet/type/file/content.rb:172:in `each_chunk_from' /usr/lib/ruby/1.8/puppet/type/file/content.rb:157:in `write' /usr/lib/ruby/1.8/puppet/util/checksums.rb:46:in `md5_stream' /usr/lib/ruby/1.8/puppet/type/file/checksum.rb:30:in `send' /usr/lib/ruby/1.8/puppet/type/file/checksum.rb:30:in `sum_stream' /usr/lib/ruby/1.8/puppet/type/file/content.rb:156:in `write' /usr/lib/ruby/1.8/puppet/type/file.rb:761:in `write_content' /usr/lib/ruby/1.8/puppet/type/file.rb:722:in `write' /usr/lib/ruby/1.8/puppet/type/file.rb:722:in `open' /usr/lib/ruby/1.8/puppet/type/file.rb:722:in `write' /usr/lib/ruby/1.8/puppet/util.rb:144:in `withumask' /usr/lib/ruby/1.8/puppet/type/file.rb:722:in `write' /usr/lib/ruby/1.8/puppet/type/file/content.rb:137:in `sync' /usr/lib/ruby/1.8/puppet/type/file/ensure.rb:46:in `set_file' /usr/lib/ruby/1.8/puppet/property.rb:81:in `send' /usr/lib/ruby/1.8/puppet/property.rb:81:in `call_valuemethod' /usr/lib/ruby/1.8/puppet/property.rb:241:in `set' /usr/lib/ruby/1.8/puppet/property.rb:295:in `sync' /usr/lib/ruby/1.8/puppet/type/file/ensure.rb:164:in `sync' /usr/lib/ruby/1.8/puppet/transaction/change.rb:34:in `apply' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:21:in `apply_changes' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:20:in `each' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:20:in `apply_changes' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:90:in `evaluate' /usr/lib/ruby/1.8/puppet/transaction.rb:49:in `apply' /usr/lib/ruby/1.8/puppet/transaction.rb:114:in `eval_children_and_apply_resource' /usr/lib/ruby/1.8/puppet/transaction.rb:92:in `eval_resource' /usr/lib/ruby/1.8/puppet/transaction.rb:143:in `evaluate' /usr/lib/ruby/1.8/puppet/util.rb:414:in `thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/lib/ruby/1.8/puppet/util.rb:413:in `thinmark' /usr/lib/ruby/1.8/puppet/transaction.rb:142:in `evaluate' /usr/lib/ruby/1.8/puppet/transaction.rb:135:in `each' /usr/lib/ruby/1.8/puppet/transaction.rb:135:in `evaluate' /usr/lib/ruby/1.8/puppet/resource/catalog.rb:144:in `apply' /usr/lib/ruby/1.8/puppet/application/apply.rb:126:in `main' /usr/lib/ruby/1.8/puppet/application/apply.rb:35:in `run_command' /usr/lib/ruby/1.8/puppet/application.rb:301:in `run' /usr/lib/ruby/1.8/puppet/application.rb:398:in `exit_on_fail' /usr/lib/ruby/1.8/puppet/application.rb:301:in `run' /usr/lib/ruby/1.8/puppet/util/command_line.rb:55:in `execute' /usr/bin/puppet:4 err: /Stage[main]//File[/home/geoffc/tmp/testpuppetfile]/ensure: change from absent to file failed: Could not set 'file on ensure: Error 403 on SERVER: Forbidden request: 192.168.170.190(192.168.170.190) access to /file_content/modules/testmod/testfile [find] at line 93 at /home/geoffc/tmp/localfile.pp:6 debug: Finishing transaction -618979318 debug: Storing state debug: Stored state in 0.01 seconds Regression: Notes: -- 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://projects.puppetlabs.com/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.
