Issue #22819 has been updated by Robin Powell.
In particular, I often want to use it to figure out why a puppet run is taking
a really long time, and it's been essentially totally useless for that for me.
Here's some bits I've added that seem to help; perhaps you want to grab them.
IMO, *every* class should *always* report all parameters if there's more than
one -d. I suspect the place I stuck the parameter dump is dumb, though. The
checksum bit is the part that really helped:
[rlpowell@shell01 ~]$ diff -u
/usr/local/rvm/gems/ruby-2.0.0-p247@puppet3/gems/puppet-3.3.0/lib/puppet/type/file.rb
/tmp/file.rb
---
/usr/local/rvm/gems/ruby-2.0.0-p247@puppet3/gems/puppet-3.3.0/lib/puppet/type/file.rb
2013-09-16 21:16:03.930373513 -0700
+++ /tmp/file.rb 2013-10-09 16:19:36.558333342 -0700
@@ -283,6 +283,8 @@
SOURCE_ONLY_CHECKSUMS = [:none, :ctime, :mtime]
validate do
+ debug "Parameters: " + @parameters.keys.map {|x| "#{x} =>
#{@parameters[x].value}"}.join(", ")
+
creator_count = 0
CREATORS.each do |param|
creator_count += 1 if self.should(param)
[rlpowell@shell01 ~]$ diff -u
/usr/local/rvm/gems/ruby-2.0.0-p247@puppet3/gems/puppet-3.3.0/lib/puppet/util/checksums.rb
/tmp/ch
check_tarsnap_general.sh.erb checksums.rb
[rlpowell@shell01 ~]$ diff -u
/usr/local/rvm/gems/ruby-2.0.0-p247@puppet3/gems/puppet-3.3.0/lib/puppet/util/checksums.rb
/tmp/checksums.rb
---
/usr/local/rvm/gems/ruby-2.0.0-p247@puppet3/gems/puppet-3.3.0/lib/puppet/util/checksums.rb
2013-09-16 21:16:03.521361323 -0700
+++ /tmp/checksums.rb 2013-10-09 16:19:36.559350465 -0700
@@ -130,6 +130,7 @@
# Perform an incremental checksum on a file.
def checksum_file(digest, filename, lite = false)
+ Puppet.debug "Checksumming #{filename} with type #{digest.class.name}"
buffer = lite ? 512 : 4096
File.open(filename, 'rb') do |file|
while content = file.read(buffer)
----------------------------------------
Feature #22819: Puppet's debug mode doesn't debug very much.
https://projects.puppetlabs.com/issues/22819#change-98675
* Author: Robin Powell
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Affected Puppet version:
* Keywords:
* Branch:
----------------------------------------
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.