Skip to content

Instantly share code, notes, and snippets.

@fatmcgav fatmcgav/output
Last active Aug 29, 2015

Embed
What would you like to do?
Yum Versionlock debugging...
puppet]$ sudo bundle exec puppet resource package bash ensure=held
#<Puppet::ResourceError: Parameter ensure failed on Package[bash]: Provider must have features 'holdable' to set 'ensure' to 'held' Provider must have features 'holdable' to set 'ensure' to 'held'>
/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `fail'
/home/vagrant/puppet/lib/puppet/parameter.rb:467:in `validate'
/home/vagrant/puppet/lib/puppet/property.rb:563:in `should='
/home/vagrant/puppet/lib/puppet/property.rb:563:in `each'
/home/vagrant/puppet/lib/puppet/property.rb:563:in `should='
/home/vagrant/puppet/lib/puppet/property.rb:615:in `value='
/home/vagrant/puppet/lib/puppet/type.rb:653:in `[]='
/home/vagrant/puppet/lib/puppet/type.rb:2242:in `set_parameters'
/home/vagrant/puppet/lib/puppet/type.rb:2236:in `each'
/home/vagrant/puppet/lib/puppet/type.rb:2236:in `set_parameters'
/home/vagrant/puppet/lib/puppet/type.rb:2192:in `initialize'
/home/vagrant/puppet/lib/puppet/resource.rb:307:in `new'
/home/vagrant/puppet/lib/puppet/resource.rb:307:in `to_ral'
/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:37:in `save'
/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'
/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'
/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'
/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'
/home/vagrant/puppet/lib/puppet.rb:224:in `override'
/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'
/home/vagrant/puppet/bin/puppet:4
/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'
/usr/lib/ruby/gems/1.8/bin/puppet:19
/home/vagrant/puppet/lib/puppet/util/logging.rb:34:in `format_exception': undefined method `message' for #<Array:0x7f2a032258d8> (NoMethodError)
from /home/vagrant/puppet/lib/puppet/util/logging.rb:46:in `format_exception'
from /home/vagrant/puppet/lib/puppet/util/logging.rb:27:in `log_exception'
from /home/vagrant/puppet/lib/puppet/util.rb:491:in `exit_on_fail'
from /home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
from /home/vagrant/puppet/lib/puppet/context.rb:51:in `override'
from /home/vagrant/puppet/lib/puppet.rb:224:in `override'
from /home/vagrant/puppet/lib/puppet/application.rb:357:in `run'
from /home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'
from /home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'
from /home/vagrant/puppet/bin/puppet:4
from /usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'
from /usr/lib/ruby/gems/1.8/bin/puppet:19
puppet]$ git diff
diff --git a/lib/puppet/type/package.rb b/lib/puppet/type/package.rb
index 9438716..09efbc8 100644
--- a/lib/puppet/type/package.rb
+++ b/lib/puppet/type/package.rb
@@ -44,8 +44,8 @@ module Puppet
such that they are not automatically upgraded as a result of
other package dependencies unless explicit action is taken by
a user or another package. Held is considered a superset of
- installed.",
- :methods => [:hold]
+ installed."#,
+ #:methods => [:hold]
feature :install_options, "The provider accepts options to be
passed to the installer command."
feature :uninstall_options, "The provider accepts options to be
@@ -81,7 +81,11 @@ module Puppet
end
newvalue(:held, :event => :package_held, :required_features => :holdable) do
- provider.hold
+ begin
+ provider.hold
+ rescue => detail
+ self.fail Puppet::Error, "Could not hold: #{detail}", detail.backtrace
+ end
end
# Alias the 'present' value.
diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb
index a8b78da..d8b254d 100644
--- a/lib/puppet/util.rb
+++ b/lib/puppet/util.rb
@@ -486,8 +486,8 @@ module Util
# code (e.g. webrick), and we have no idea what they might throw.
rescue Exception => err
## NOTE: when debugging spec failures, these two lines can be very useful
- #puts err.inspect
- #puts Puppet::Util.pretty_backtrace(err.backtrace)
+ puts err.inspect
+ puts Puppet::Util.pretty_backtrace(err.backtrace)
Puppet.log_exception(err, "Could not #{message}: #{err}")
Puppet::Util::Log.force_flushqueue()
exit(code)
Debug: Executing '/usr/bin/yum versionlock bash'
[84, 93] in /home/vagrant/puppet/lib/puppet/type/package.rb
84 newvalue(:held, :event => :package_held, :required_features => :holdable) do
85 debugger
86 begin
87 provider.hold
88 rescue => detail
=> 89 self.fail Puppet::Error, "Could not hold: #{detail}", detail.backtrace
90 end
91 end
92
93 # Alias the 'present' value.
/home/vagrant/puppet/lib/puppet/type/package.rb:89
self.fail Puppet::Error, "Could not hold: #{detail}", detail.backtrace
(rdb:1) p self.fail
Puppet::Error Exception:
(rdb:1) putl detail
#<Puppet::ExecutionFailure: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help>
(rdb:1) putl detail.backtrace
/home/vagrant/puppet/lib/puppet/util/execution.rb:195:in `execute'
/home/vagrant/puppet/lib/puppet/provider/command.rb:23:in `execute'
/home/vagrant/puppet/lib/puppet/provider.rb:237:in `yum'
/home/vagrant/puppet/lib/puppet/provider.rb:444:in `send'
/home/vagrant/puppet/lib/puppet/provider.rb:444:in `yum'
/home/vagrant/puppet/lib/puppet/provider/package/yum.rb:132:in `hold'
/home/vagrant/puppet/lib/puppet/type/package.rb:87:in `set_held'
/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'
/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'
/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'
/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'
/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'
/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'
/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'
/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'
/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'
/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'
/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'
/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'
/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'
/home/vagrant/puppet/lib/puppet.rb:224:in `override'
/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'
/home/vagrant/puppet/bin/puppet:4
/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'
/usr/lib/ruby/gems/1.8/bin/puppet:19
(rdb:1) p self.fail Puppet::Error, "Could not hold: #{detail}", detail.backtrace
Puppet::Error Exception: Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help
(rdb:1) s
[90, 99] in /home/vagrant/puppet/lib/puppet/util/errors.rb
90 # the given arguments.
91 # @param [Class] type of error
92 # @param [String] message error message(s)
93 # @param [Exception] original exception, source of backtrace info
94 def fail(*args)
=> 95 if args[0].is_a?(Class)
96 type = args.shift
97 else
98 type = Puppet::Error
99 end
/home/vagrant/puppet/lib/puppet/util/errors.rb:95
if args[0].is_a?(Class)
(rdb:1) p args[0].is_a?(Class)
true
(rdb:1) s
[90, 99] in /home/vagrant/puppet/lib/puppet/util/errors.rb
90 # the given arguments.
91 # @param [Class] type of error
92 # @param [String] message error message(s)
93 # @param [Exception] original exception, source of backtrace info
94 def fail(*args)
=> 95 if args[0].is_a?(Class)
96 type = args.shift
97 else
98 type = Puppet::Error
99 end
/home/vagrant/puppet/lib/puppet/util/errors.rb:95
if args[0].is_a?(Class)
(rdb:1) s
[91, 100] in /home/vagrant/puppet/lib/puppet/util/errors.rb
91 # @param [Class] type of error
92 # @param [String] message error message(s)
93 # @param [Exception] original exception, source of backtrace info
94 def fail(*args)
95 if args[0].is_a?(Class)
=> 96 type = args.shift
97 else
98 type = Puppet::Error
99 end
100
/home/vagrant/puppet/lib/puppet/util/errors.rb:96
type = args.shift
(rdb:1) putl args
Puppet::Error
Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help
/home/vagrant/puppet/lib/puppet/util/execution.rb:195:in `execute'/home/vagrant/puppet/lib/puppet/provider/command.rb:23:in `execute'/home/vagrant/puppet/lib/puppet/provider.rb:237:in `yum'/home/vagrant/puppet/lib/puppet/provider.rb:444:in `send'/home/vagrant/puppet/lib/puppet/provider.rb:444:in `yum'/home/vagrant/puppet/lib/puppet/provider/package/yum.rb:132:in `hold'/home/vagrant/puppet/lib/puppet/type/package.rb:87:in `set_held'/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'/home/vagrant/puppet/lib/puppet.rb:224:in `override'/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'/home/vagrant/puppet/bin/puppet:4/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'/usr/lib/ruby/gems/1.8/bin/puppet:19
(rdb:1) s
[96, 105] in /home/vagrant/puppet/lib/puppet/util/errors.rb
96 type = args.shift
97 else
98 type = Puppet::Error
99 end
100
=> 101 other = args.count > 1 ? args.pop : nil
102 error = adderrorcontext(type.new(args.join(" ")), other)
103
104 raise error
105 end
/home/vagrant/puppet/lib/puppet/util/errors.rb:101
other = args.count > 1 ? args.pop : nil
(rdb:1) putl args
Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help
/home/vagrant/puppet/lib/puppet/util/execution.rb:195:in `execute'/home/vagrant/puppet/lib/puppet/provider/command.rb:23:in `execute'/home/vagrant/puppet/lib/puppet/provider.rb:237:in `yum'/home/vagrant/puppet/lib/puppet/provider.rb:444:in `send'/home/vagrant/puppet/lib/puppet/provider.rb:444:in `yum'/home/vagrant/puppet/lib/puppet/provider/package/yum.rb:132:in `hold'/home/vagrant/puppet/lib/puppet/type/package.rb:87:in `set_held'/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'/home/vagrant/puppet/lib/puppet.rb:224:in `override'/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'/home/vagrant/puppet/bin/puppet:4/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'/usr/lib/ruby/gems/1.8/bin/puppet:19
(rdb:1) p args.count
2
(rdb:1) p args.pop
["/home/vagrant/puppet/lib/puppet/util/execution.rb:195:in `execute'", "/home/vagrant/puppet/lib/puppet/provider/command.rb:23:in `execute'", "/home/vagrant/puppet/lib/puppet/provider.rb:237:in `yum'", "/home/vagrant/puppet/lib/puppet/provider.rb:444:in `send'", "/home/vagrant/puppet/lib/puppet/provider.rb:444:in `yum'", "/home/vagrant/puppet/lib/puppet/provider/package/yum.rb:132:in `hold'", "/home/vagrant/puppet/lib/puppet/type/package.rb:87:in `set_held'", "/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'", "/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'", "/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'", "/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'", "/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'", "/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'", "/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'", "/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'", "/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'", "/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'", "/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'", "/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'", "/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'", "/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'", "/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'", "/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'", "/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'", "/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'", "/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'", "/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'", "/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'", "/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'", "/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'", "/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'", "/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'", "/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'", "/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'", "/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'", "/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'", "/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'", "/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'", "/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'", "/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'", "/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'", "/home/vagrant/puppet/lib/puppet.rb:224:in `override'", "/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'", "/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'", "/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'", "/home/vagrant/puppet/bin/puppet:4", "/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'", "/usr/lib/ruby/gems/1.8/bin/puppet:19"]
(rdb:1) s
[96, 105] in /home/vagrant/puppet/lib/puppet/util/errors.rb
96 type = args.shift
97 else
98 type = Puppet::Error
99 end
100
=> 101 other = args.count > 1 ? args.pop : nil
102 error = adderrorcontext(type.new(args.join(" ")), other)
103
104 raise error
105 end
/home/vagrant/puppet/lib/puppet/util/errors.rb:101
other = args.count > 1 ? args.pop : nil
(rdb:1) s
[97, 106] in /home/vagrant/puppet/lib/puppet/util/errors.rb
97 else
98 type = Puppet::Error
99 end
100
101 other = args.count > 1 ? args.pop : nil
=> 102 error = adderrorcontext(type.new(args.join(" ")), other)
103
104 raise error
105 end
106 end
/home/vagrant/puppet/lib/puppet/util/errors.rb:102
error = adderrorcontext(type.new(args.join(" ")), other)
(rdb:1) p error
nil
(rdb:1) p adderrorcontext(type.new(args.join(" ")), other)
#<Puppet::Error: Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help>
(rdb:1) s
[1, 10] in /home/vagrant/puppet/lib/puppet/error.rb
1 module Puppet
2 # The base class for all Puppet errors. It can wrap another exception
3 class Error < RuntimeError
4 attr_accessor :original
5 def initialize(message, original=nil)
=> 6 super(message)
7 @original = original
8 end
9 end
10
/home/vagrant/puppet/lib/puppet/error.rb:6
super(message)
(rdb:1) s
[2, 11] in /home/vagrant/puppet/lib/puppet/error.rb
2 # The base class for all Puppet errors. It can wrap another exception
3 class Error < RuntimeError
4 attr_accessor :original
5 def initialize(message, original=nil)
6 super(message)
=> 7 @original = original
8 end
9 end
10
11 module ExternalFileError
/home/vagrant/puppet/lib/puppet/error.rb:7
@original = original
(rdb:1) p original
nil
(rdb:1) s
[18, 27] in /home/vagrant/puppet/lib/puppet/util/errors.rb
18 #
19 # @param error [Exception] exception that is populated with info
20 # @param other [Exception] original exception, source of backtrace info
21 # @return [Exception] error parameter
22 def adderrorcontext(error, other = nil)
=> 23 error.line ||= self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
24 error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
25 error.original ||= other if error.respond_to?(:original=)
26
27 error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
/home/vagrant/puppet/lib/puppet/util/errors.rb:23
error.line ||= self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
(rdb:1) p self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
nil
(rdb:1) p error.respond_to?(:line=)
false
(rdb:1) p self.respond_to?(:line)
true
(rdb:1) p self.line
nil
(rdb:1) s
[18, 27] in /home/vagrant/puppet/lib/puppet/util/errors.rb
18 #
19 # @param error [Exception] exception that is populated with info
20 # @param other [Exception] original exception, source of backtrace info
21 # @return [Exception] error parameter
22 def adderrorcontext(error, other = nil)
=> 23 error.line ||= self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
24 error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
25 error.original ||= other if error.respond_to?(:original=)
26
27 error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
/home/vagrant/puppet/lib/puppet/util/errors.rb:23
error.line ||= self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
(rdb:1) s
[19, 28] in /home/vagrant/puppet/lib/puppet/util/errors.rb
19 # @param error [Exception] exception that is populated with info
20 # @param other [Exception] original exception, source of backtrace info
21 # @return [Exception] error parameter
22 def adderrorcontext(error, other = nil)
23 error.line ||= self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
=> 24 error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
25 error.original ||= other if error.respond_to?(:original=)
26
27 error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
28
/home/vagrant/puppet/lib/puppet/util/errors.rb:24
error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
(rdb:1) p self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
nil
(rdb:1) p error.respond_to?(:file=)
false
(rdb:1) p self.respond_to?(:file)
true
(rdb:1) p self.file
nil
(rdb:1) s
[19, 28] in /home/vagrant/puppet/lib/puppet/util/errors.rb
19 # @param error [Exception] exception that is populated with info
20 # @param other [Exception] original exception, source of backtrace info
21 # @return [Exception] error parameter
22 def adderrorcontext(error, other = nil)
23 error.line ||= self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
=> 24 error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
25 error.original ||= other if error.respond_to?(:original=)
26
27 error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
28
/home/vagrant/puppet/lib/puppet/util/errors.rb:24
error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
(rdb:1) s
[20, 29] in /home/vagrant/puppet/lib/puppet/util/errors.rb
20 # @param other [Exception] original exception, source of backtrace info
21 # @return [Exception] error parameter
22 def adderrorcontext(error, other = nil)
23 error.line ||= self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
24 error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
=> 25 error.original ||= other if error.respond_to?(:original=)
26
27 error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
28
29 error
/home/vagrant/puppet/lib/puppet/util/errors.rb:25
error.original ||= other if error.respond_to?(:original=)
(rdb:1) p error.respond_to?(:original=)
true
(rdb:1) s
[20, 29] in /home/vagrant/puppet/lib/puppet/util/errors.rb
20 # @param other [Exception] original exception, source of backtrace info
21 # @return [Exception] error parameter
22 def adderrorcontext(error, other = nil)
23 error.line ||= self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
24 error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
=> 25 error.original ||= other if error.respond_to?(:original=)
26
27 error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
28
29 error
/home/vagrant/puppet/lib/puppet/util/errors.rb:25
error.original ||= other if error.respond_to?(:original=)
(rdb:1) s
[22, 31] in /home/vagrant/puppet/lib/puppet/util/errors.rb
22 def adderrorcontext(error, other = nil)
23 error.line ||= self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
24 error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
25 error.original ||= other if error.respond_to?(:original=)
26
=> 27 error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
28
29 error
30 end
31
/home/vagrant/puppet/lib/puppet/util/errors.rb:27
error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
(rdb:1) p other
nil
(rdb:1) p other.respond_to?(:backtrace)
false
(rdb:1) putl other
nil
(rdb:1) s
[22, 31] in /home/vagrant/puppet/lib/puppet/util/errors.rb
22 def adderrorcontext(error, other = nil)
23 error.line ||= self.line if error.respond_to?(:line=) and self.respond_to?(:line) and self.line
24 error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
25 error.original ||= other if error.respond_to?(:original=)
26
=> 27 error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
28
29 error
30 end
31
/home/vagrant/puppet/lib/puppet/util/errors.rb:27
error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
(rdb:1) s
[24, 33] in /home/vagrant/puppet/lib/puppet/util/errors.rb
24 error.file ||= self.file if error.respond_to?(:file=) and self.respond_to?(:file) and self.file
25 error.original ||= other if error.respond_to?(:original=)
26
27 error.set_backtrace(other.backtrace) if other and other.respond_to?(:backtrace)
28
=> 29 error
30 end
31
32 # Return a human-readable string of this object's file and line attributes,
33 # if set.
/home/vagrant/puppet/lib/puppet/util/errors.rb:29
error
(rdb:1) putl errro
NameError Exception: undefined local variable or method `errro' for #<Puppet::Type::Package::Ensure:0x7fa3df842198>
(rdb:1) putl error
#<Puppet::Error: Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help>
(rdb:1) s
[99, 106] in /home/vagrant/puppet/lib/puppet/util/errors.rb
99 end
100
101 other = args.count > 1 ? args.pop : nil
102 error = adderrorcontext(type.new(args.join(" ")), other)
103
=> 104 raise error
105 end
106 end
/home/vagrant/puppet/lib/puppet/util/errors.rb:104
raise error
(rdb:1) putl error
#<Puppet::Error: Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help>
(rdb:1) p raise error
Puppet::Error Exception: Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help
(rdb:1) s
[194, 203] in /home/vagrant/puppet/lib/puppet/property.rb
194 def call_valuemethod(name, value)
195 if method = self.class.value_option(name, :method) and self.respond_to?(method)
196 begin
197 self.send(method)
198 rescue Puppet::Error
=> 199 raise
200 rescue => detail
201 error = Puppet::ResourceError.new("Could not set '#{value}' on #{self.class.name}: #{detail}", @resource.line, @resource.file, detail)
202 error.set_backtrace detail.backtrace
203 Puppet.log_exception(detail, error.message)
/home/vagrant/puppet/lib/puppet/property.rb:199
raise
(rdb:1) p raise
Puppet::Error Exception: Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help
(rdb:1) s
[134, 143] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
134 else
135 false
136 end
137 rescue => detail
138 # Execution will continue on StandardErrors, just store the event
=> 139 Puppet.log_exception(detail)
140
141 event = create_change_event(param, current_value, historical_value)
142 event.status = "failure"
143 event.message = "change from #{param.is_to_s(current_value)} to #{param.should_to_s(param.should)} failed: #{detail}"
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:139
Puppet.log_exception(detail)
(rdb:1) putl detail
#<Puppet::Error: Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help>
(rdb:1) s
[22, 31] in /home/vagrant/puppet/lib/puppet/util/logging.rb
22 # [message] an optional String overriding the message to be logged; by default, we log Exception.message.
23 # If you pass a String here, your string will be logged instead. You may also pass nil if you don't
24 # wish to log a message at all; in this case it is likely that you are only calling this method in order
25 # to take advantage of the backtrace logging.
26 def log_exception(exception, message = :default, options = {})
=> 27 err(format_exception(exception, message, Puppet[:trace] || options[:trace]))
28 end
29
30 def format_exception(exception, message = :default, trace = true)
31 arr = []
/home/vagrant/puppet/lib/puppet/util/logging.rb:27
err(format_exception(exception, message, Puppet[:trace] || options[:trace]))
(rdb:1) putl options[:trace]
nil
(rdb:1) putl exception
#<Puppet::Error: Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help>
(rdb:1) putl message
:default
(rdb:1) putl Puppet[:trace]
true
(rdb:1) s
[62, 71] in /home/vagrant/puppet/lib/puppet.rb
62 #
63 # @param [Symbol] param the setting to retrieve
64 #
65 # @api public
66 def self.[](param)
=> 67 if param == :debug
68 return Puppet::Util::Log.level == :debug
69 else
70 return @@settings[param]
71 end
/home/vagrant/puppet/lib/puppet.rb:67
if param == :debug
(rdb:1) s
[62, 71] in /home/vagrant/puppet/lib/puppet.rb
62 #
63 # @param [Symbol] param the setting to retrieve
64 #
65 # @api public
66 def self.[](param)
=> 67 if param == :debug
68 return Puppet::Util::Log.level == :debug
69 else
70 return @@settings[param]
71 end
/home/vagrant/puppet/lib/puppet.rb:67
if param == :debug
(rdb:1) s
[65, 74] in /home/vagrant/puppet/lib/puppet.rb
65 # @api public
66 def self.[](param)
67 if param == :debug
68 return Puppet::Util::Log.level == :debug
69 else
=> 70 return @@settings[param]
71 end
72 end
73
74 # configuration parameter access and stuff
/home/vagrant/puppet/lib/puppet.rb:70
return @@settings[param]
(rdb:1) putl @@settings[param]
true
(rdb:1) s
[100, 109] in /home/vagrant/puppet/lib/puppet/settings.rb
100 @config[name]
101 end
102
103 # Retrieve a config value
104 def [](param)
=> 105 value(param)
106 end
107
108 # Set a config value. This doesn't set the defaults, it sets the value itself.
109 def []=(param, value)
/home/vagrant/puppet/lib/puppet/settings.rb:105
value(param)
(rdb:1) putl value(param)
true
(rdb:1) s
[965, 974] in /home/vagrant/puppet/lib/puppet/settings.rb
965 #
966 # @return [Object] The looked up value
967 #
968 # @raise [InterpolationError]
969 def value(param, environment = nil, bypass_interpolation = false)
=> 970 param = param.to_sym
971 environment &&= environment.to_sym
972
973 setting = @config[param]
974
/home/vagrant/puppet/lib/puppet/settings.rb:970
param = param.to_sym
(rdb:1) p param.to_sym
:trace
(rdb:1) s
[966, 975] in /home/vagrant/puppet/lib/puppet/settings.rb
966 # @return [Object] The looked up value
967 #
968 # @raise [InterpolationError]
969 def value(param, environment = nil, bypass_interpolation = false)
970 param = param.to_sym
=> 971 environment &&= environment.to_sym
972
973 setting = @config[param]
974
975 # Short circuit to nil for undefined parameters.
/home/vagrant/puppet/lib/puppet/settings.rb:971
environment &&= environment.to_sym
(rdb:1) p environment.to_sym
NoMethodError Exception: undefined method `to_sym' for nil:NilClass
(rdb:1) p environment &&= environment.to_sym
nil
(rdb:1) s
[968, 977] in /home/vagrant/puppet/lib/puppet/settings.rb
968 # @raise [InterpolationError]
969 def value(param, environment = nil, bypass_interpolation = false)
970 param = param.to_sym
971 environment &&= environment.to_sym
972
=> 973 setting = @config[param]
974
975 # Short circuit to nil for undefined parameters.
976 return nil if setting.nil?
977
/home/vagrant/puppet/lib/puppet/settings.rb:973
setting = @config[param]
(rdb:1) putl @config[param]
(rdb:1) s
[971, 980] in /home/vagrant/puppet/lib/puppet/settings.rb
971 environment &&= environment.to_sym
972
973 setting = @config[param]
974
975 # Short circuit to nil for undefined parameters.
=> 976 return nil if setting.nil?
977
978 # Check the cache first. It needs to be a per-environment
979 # cache so that we don't spread values from one env
980 # to another.
/home/vagrant/puppet/lib/puppet/settings.rb:976
return nil if setting.nil?
(rdb:1) p return nil if setting.nil?
nil
(rdb:1) s
[971, 980] in /home/vagrant/puppet/lib/puppet/settings.rb
971 environment &&= environment.to_sym
972
973 setting = @config[param]
974
975 # Short circuit to nil for undefined parameters.
=> 976 return nil if setting.nil?
977
978 # Check the cache first. It needs to be a per-environment
979 # cache so that we don't spread values from one env
980 # to another.
/home/vagrant/puppet/lib/puppet/settings.rb:976
return nil if setting.nil?
(rdb:1) p return nil if setting.nil?
nil
(rdb:1) s
[971, 980] in /home/vagrant/puppet/lib/puppet/settings.rb
971 environment &&= environment.to_sym
972
973 setting = @config[param]
974
975 # Short circuit to nil for undefined parameters.
=> 976 return nil if setting.nil?
977
978 # Check the cache first. It needs to be a per-environment
979 # cache so that we don't spread values from one env
980 # to another.
/home/vagrant/puppet/lib/puppet/settings.rb:976
return nil if setting.nil?
(rdb:1) s
[976, 985] in /home/vagrant/puppet/lib/puppet/settings.rb
976 return nil if setting.nil?
977
978 # Check the cache first. It needs to be a per-environment
979 # cache so that we don't spread values from one env
980 # to another.
=> 981 if @cache[environment||"none"].has_key?(param)
982 return @cache[environment||"none"][param]
983 elsif bypass_interpolation
984 val = values(environment, self.preferred_run_mode).lookup(param)
985 else
/home/vagrant/puppet/lib/puppet/settings.rb:981
if @cache[environment||"none"].has_key?(param)
(rdb:1) s
[976, 985] in /home/vagrant/puppet/lib/puppet/settings.rb
976 return nil if setting.nil?
977
978 # Check the cache first. It needs to be a per-environment
979 # cache so that we don't spread values from one env
980 # to another.
=> 981 if @cache[environment||"none"].has_key?(param)
982 return @cache[environment||"none"][param]
983 elsif bypass_interpolation
984 val = values(environment, self.preferred_run_mode).lookup(param)
985 else
/home/vagrant/puppet/lib/puppet/settings.rb:981
if @cache[environment||"none"].has_key?(param)
(rdb:1) p @cache[environment||"none"].has_key?(param)
true
(rdb:1) s
[977, 986] in /home/vagrant/puppet/lib/puppet/settings.rb
977
978 # Check the cache first. It needs to be a per-environment
979 # cache so that we don't spread values from one env
980 # to another.
981 if @cache[environment||"none"].has_key?(param)
=> 982 return @cache[environment||"none"][param]
983 elsif bypass_interpolation
984 val = values(environment, self.preferred_run_mode).lookup(param)
985 else
986 val = values(environment, self.preferred_run_mode).interpolate(param)
/home/vagrant/puppet/lib/puppet/settings.rb:982
return @cache[environment||"none"][param]
(rdb:1) p @cache[environment||"none"][param]
true
(rdb:1) s
[26, 35] in /home/vagrant/puppet/lib/puppet/util/logging.rb
26 def log_exception(exception, message = :default, options = {})
27 err(format_exception(exception, message, Puppet[:trace] || options[:trace]))
28 end
29
30 def format_exception(exception, message = :default, trace = true)
=> 31 arr = []
32 case message
33 when :default
34 arr << exception.message
35 when nil
/home/vagrant/puppet/lib/puppet/util/logging.rb:31
arr = []
(rdb:1) s
[27, 36] in /home/vagrant/puppet/lib/puppet/util/logging.rb
27 err(format_exception(exception, message, Puppet[:trace] || options[:trace]))
28 end
29
30 def format_exception(exception, message = :default, trace = true)
31 arr = []
=> 32 case message
33 when :default
34 arr << exception.message
35 when nil
36 # don't log anything if they passed a nil; they are just calling for the optional backtrace logging
/home/vagrant/puppet/lib/puppet/util/logging.rb:32
case message
(rdb:1) p message
:default
(rdb:1) putl message
:default
(rdb:1) s
[28, 37] in /home/vagrant/puppet/lib/puppet/util/logging.rb
28 end
29
30 def format_exception(exception, message = :default, trace = true)
31 arr = []
32 case message
=> 33 when :default
34 arr << exception.message
35 when nil
36 # don't log anything if they passed a nil; they are just calling for the optional backtrace logging
37 else
/home/vagrant/puppet/lib/puppet/util/logging.rb:33
when :default
(rdb:1) s
[29, 38] in /home/vagrant/puppet/lib/puppet/util/logging.rb
29
30 def format_exception(exception, message = :default, trace = true)
31 arr = []
32 case message
33 when :default
=> 34 arr << exception.message
35 when nil
36 # don't log anything if they passed a nil; they are just calling for the optional backtrace logging
37 else
38 arr << message
/home/vagrant/puppet/lib/puppet/util/logging.rb:34
arr << exception.message
(rdb:1) putl exception.message
"Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror\nNo such command: versionlock. Please use /usr/bin/yum --help"
(rdb:1) putl arr
<empty>
(rdb:1) s
[36, 45] in /home/vagrant/puppet/lib/puppet/util/logging.rb
36 # don't log anything if they passed a nil; they are just calling for the optional backtrace logging
37 else
38 arr << message
39 end
40
=> 41 if trace and exception.backtrace
42 arr << Puppet::Util.pretty_backtrace(exception.backtrace)
43 end
44 if exception.respond_to?(:original) and exception.original
45 arr << "Wrapped exception:"
/home/vagrant/puppet/lib/puppet/util/logging.rb:41
if trace and exception.backtrace
(rdb:1) putl arr
Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help
(rdb:1) p trace and exception.backtrace
["/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'", "/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'", "/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'", "/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'", "/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'", "/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'", "/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'", "/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'", "/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'", "/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'", "/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'", "/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'", "/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'", "/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'", "/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'", "/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'", "/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'", "/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'", "/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'", "/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'", "/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'", "/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'", "/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'", "/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'", "/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'", "/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'", "/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'", "/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'", "/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'", "/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'", "/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'", "/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'", "/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'", "/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'", "/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'", "/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'", "/home/vagrant/puppet/lib/puppet.rb:224:in `override'", "/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'", "/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'", "/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'", "/home/vagrant/puppet/bin/puppet:4", "/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'", "/usr/lib/ruby/gems/1.8/bin/puppet:19"]
(rdb:1) putl trace
true
(rdb:1) putl exception.backtrace
/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'
/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'
/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'
/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'
/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'
/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'
/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'
/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'
/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'
/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'
/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'
/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'
/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'
/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'
/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'
/home/vagrant/puppet/lib/puppet.rb:224:in `override'
/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'
/home/vagrant/puppet/bin/puppet:4
/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'
/usr/lib/ruby/gems/1.8/bin/puppet:19
(rdb:1) s
[36, 45] in /home/vagrant/puppet/lib/puppet/util/logging.rb
36 # don't log anything if they passed a nil; they are just calling for the optional backtrace logging
37 else
38 arr << message
39 end
40
=> 41 if trace and exception.backtrace
42 arr << Puppet::Util.pretty_backtrace(exception.backtrace)
43 end
44 if exception.respond_to?(:original) and exception.original
45 arr << "Wrapped exception:"
/home/vagrant/puppet/lib/puppet/util/logging.rb:41
if trace and exception.backtrace
(rdb:1) s
[37, 46] in /home/vagrant/puppet/lib/puppet/util/logging.rb
37 else
38 arr << message
39 end
40
41 if trace and exception.backtrace
=> 42 arr << Puppet::Util.pretty_backtrace(exception.backtrace)
43 end
44 if exception.respond_to?(:original) and exception.original
45 arr << "Wrapped exception:"
46 arr << format_exception(exception.original, :default, trace)
/home/vagrant/puppet/lib/puppet/util/logging.rb:42
arr << Puppet::Util.pretty_backtrace(exception.backtrace)
(rdb:1) putl Puppet::Util.pretty_backtrace(exception.backtrace)
"/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'\n/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'\n/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'\n/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'\n/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'\n/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'\n/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'\n/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'\n/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'\n/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'\n/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'\n/home/vagrant/puppet/lib/puppet.rb:224:in `override'\n/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'\n/home/vagrant/puppet/bin/puppet:4\n/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'\n/usr/lib/ruby/gems/1.8/bin/puppet:19"
(rdb:1) putl arr
Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help
(rdb:1) s
[340, 349] in /home/vagrant/puppet/lib/puppet/util.rb
340 module_function :binread
341
342 # utility method to get the current call stack and format it to a human-readable string (which some IDEs/editors
343 # will recognize as links to the line numbers in the trace)
344 def self.pretty_backtrace(backtrace = caller(1))
=> 345 backtrace.collect do |line|
346 _, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
/home/vagrant/puppet/lib/puppet/util.rb:345
backtrace.collect do |line|
(rdb:1) s
[341, 350] in /home/vagrant/puppet/lib/puppet/util.rb
341
342 # utility method to get the current call stack and format it to a human-readable string (which some IDEs/editors
343 # will recognize as links to the line numbers in the trace)
344 def self.pretty_backtrace(backtrace = caller(1))
345 backtrace.collect do |line|
=> 346 _, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
350 if path
/home/vagrant/puppet/lib/puppet/util.rb:346
_, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
(rdb:1) s
[345, 354] in /home/vagrant/puppet/lib/puppet/util.rb
345 backtrace.collect do |line|
346 _, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
=> 350 if path
351 path = Pathname(path).realpath rescue path
352 "#{path}:#{rest}"
353 else
354 line
/home/vagrant/puppet/lib/puppet/util.rb:350
if path
(rdb:1) p path
"/home/vagrant/puppet/lib/puppet/util/errors.rb"
(rdb:1) s
[345, 354] in /home/vagrant/puppet/lib/puppet/util.rb
345 backtrace.collect do |line|
346 _, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
=> 350 if path
351 path = Pathname(path).realpath rescue path
352 "#{path}:#{rest}"
353 else
354 line
/home/vagrant/puppet/lib/puppet/util.rb:350
if path
(rdb:1) s
[346, 355] in /home/vagrant/puppet/lib/puppet/util.rb
346 _, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
350 if path
=> 351 path = Pathname(path).realpath rescue path
352 "#{path}:#{rest}"
353 else
354 line
355 end
/home/vagrant/puppet/lib/puppet/util.rb:351
path = Pathname(path).realpath rescue path
(rdb:1) s
[1075, 1083] in /usr/lib/ruby/1.8/pathname.rb
1075 module Kernel
1076 # create a pathname object.
1077 #
1078 # This method is available since 1.8.5.
1079 def Pathname(path) # :doc:
=> 1080 Pathname.new(path)
1081 end
1082 private :Pathname
1083 end
/usr/lib/ruby/1.8/pathname.rb:1080
Pathname.new(path)
(rdb:1) fin
[347, 356] in /home/vagrant/puppet/lib/puppet/util.rb
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
350 if path
351 path = Pathname(path).realpath rescue path
=> 352 "#{path}:#{rest}"
353 else
354 line
355 end
356 end.join("\n")
/home/vagrant/puppet/lib/puppet/util.rb:352
"#{path}:#{rest}"
(rdb:1) p "#{path}:#{rest}"
"/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'"
(rdb:1) s
[244, 253] in /usr/lib/ruby/1.8/pathname.rb
244 @path.hash
245 end
246
247 # Return the path as a String.
248 def to_s
=> 249 @path.dup
250 end
251
252 # to_path is implemented so Pathname objects are usable with File.open, etc.
253 alias_method TO_PATH, :to_s
/usr/lib/ruby/1.8/pathname.rb:249
@path.dup
(rdb:1)
[341, 350] in /home/vagrant/puppet/lib/puppet/util.rb
341
342 # utility method to get the current call stack and format it to a human-readable string (which some IDEs/editors
343 # will recognize as links to the line numbers in the trace)
344 def self.pretty_backtrace(backtrace = caller(1))
345 backtrace.collect do |line|
=> 346 _, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
350 if path
/home/vagrant/puppet/lib/puppet/util.rb:346
_, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
(rdb:1) putl backtrace.collect
/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'
/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'
/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'
/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'
/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'
/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'
/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'
/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'
/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'
/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'
/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'
/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'
/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'
/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'
/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'
/home/vagrant/puppet/lib/puppet.rb:224:in `override'
/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'
/home/vagrant/puppet/bin/puppet:4
/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'
/usr/lib/ruby/gems/1.8/bin/puppet:19
(rdb:1) n
[345, 354] in /home/vagrant/puppet/lib/puppet/util.rb
345 backtrace.collect do |line|
346 _, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
=> 350 if path
351 path = Pathname(path).realpath rescue path
352 "#{path}:#{rest}"
353 else
354 line
/home/vagrant/puppet/lib/puppet/util.rb:350
if path
(rdb:1) n
[346, 355] in /home/vagrant/puppet/lib/puppet/util.rb
346 _, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
350 if path
=> 351 path = Pathname(path).realpath rescue path
352 "#{path}:#{rest}"
353 else
354 line
355 end
/home/vagrant/puppet/lib/puppet/util.rb:351
path = Pathname(path).realpath rescue path
(rdb:1) n
[347, 356] in /home/vagrant/puppet/lib/puppet/util.rb
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
350 if path
351 path = Pathname(path).realpath rescue path
=> 352 "#{path}:#{rest}"
353 else
354 line
355 end
356 end.join("\n")
/home/vagrant/puppet/lib/puppet/util.rb:352
"#{path}:#{rest}"
(rdb:1) n
[341, 350] in /home/vagrant/puppet/lib/puppet/util.rb
341
342 # utility method to get the current call stack and format it to a human-readable string (which some IDEs/editors
343 # will recognize as links to the line numbers in the trace)
344 def self.pretty_backtrace(backtrace = caller(1))
345 backtrace.collect do |line|
=> 346 _, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
347 # If the path doesn't exist - like in one test, and like could happen in
348 # the world - we should just tolerate it and carry on. --daniel 2012-09-05
349 # Also, if we don't match, just include the whole line.
350 if path
/home/vagrant/puppet/lib/puppet/util.rb:346
_, path, rest = /^(.*):(\d+.*)$/.match(line).to_a
(rdb:1) fin
[39, 48] in /home/vagrant/puppet/lib/puppet/util/logging.rb
39 end
40
41 if trace and exception.backtrace
42 arr << Puppet::Util.pretty_backtrace(exception.backtrace)
43 end
=> 44 if exception.respond_to?(:original) and exception.original
45 arr << "Wrapped exception:"
46 arr << format_exception(exception.original, :default, trace)
47 end
48 arr.flatten.join("\n")
/home/vagrant/puppet/lib/puppet/util/logging.rb:44
if exception.respond_to?(:original) and exception.original
(rdb:1) p exception.respond_to?(:original) and exception.original
nil
(rdb:1) putl exception.respond_to?(:original)
true
(rdb:1) putl exception.original
nil
(rdb:1) s
[39, 48] in /home/vagrant/puppet/lib/puppet/util/logging.rb
39 end
40
41 if trace and exception.backtrace
42 arr << Puppet::Util.pretty_backtrace(exception.backtrace)
43 end
=> 44 if exception.respond_to?(:original) and exception.original
45 arr << "Wrapped exception:"
46 arr << format_exception(exception.original, :default, trace)
47 end
48 arr.flatten.join("\n")
/home/vagrant/puppet/lib/puppet/util/logging.rb:44
if exception.respond_to?(:original) and exception.original
(rdb:1) s
[43, 52] in /home/vagrant/puppet/lib/puppet/util/logging.rb
43 end
44 if exception.respond_to?(:original) and exception.original
45 arr << "Wrapped exception:"
46 arr << format_exception(exception.original, :default, trace)
47 end
=> 48 arr.flatten.join("\n")
49 end
50
51 def log_and_raise(exception, message)
52 log_exception(exception, message)
/home/vagrant/puppet/lib/puppet/util/logging.rb:48
arr.flatten.join("\n")
(rdb:1) p arr.flatten.join("\n")
"Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror\nNo such command: versionlock. Please use /usr/bin/yum --help\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'\n/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'\n/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'\n/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'\n/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'\n/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'\n/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'\n/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'\n/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'\n/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'\n/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'\n/home/vagrant/puppet/lib/puppet.rb:224:in `override'\n/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'\n/home/vagrant/puppet/bin/puppet:4\n/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'\n/usr/lib/ruby/gems/1.8/bin/puppet:19"
(rdb:1) p args.is_a?(Array)
false
(rdb:1) s
[9, 18] in /home/vagrant/puppet/lib/puppet/util/logging.rb
9 end
10
11 # Create a method for each log level.
12 Puppet::Util::Log.eachlevel do |level|
13 define_method(level) do |args|
=> 14 args = args.join(" ") if args.is_a?(Array)
15 send_log(level, args)
16 end
17 end
18
/home/vagrant/puppet/lib/puppet/util/logging.rb:14
args = args.join(" ") if args.is_a?(Array)
(rdb:1) s
[10, 19] in /home/vagrant/puppet/lib/puppet/util/logging.rb
10
11 # Create a method for each log level.
12 Puppet::Util::Log.eachlevel do |level|
13 define_method(level) do |args|
14 args = args.join(" ") if args.is_a?(Array)
=> 15 send_log(level, args)
16 end
17 end
18
19 # Log an exception via Puppet.err. Will also log the backtrace if Puppet[:trace] is set.
/home/vagrant/puppet/lib/puppet/util/logging.rb:15
send_log(level, args)
(rdb:1) putl level
:err
(rdb:1) putl args
"Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror\nNo such command: versionlock. Please use /usr/bin/yum --help\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'\n/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'\n/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'\n/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'\n/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'\n/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'\n/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'\n/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'\n/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'\n/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'\n/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'\n/home/vagrant/puppet/lib/puppet.rb:224:in `override'\n/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'\n/home/vagrant/puppet/bin/puppet:4\n/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'\n/usr/lib/ruby/gems/1.8/bin/puppet:19"
(rdb:1) s
[3, 12] in /home/vagrant/puppet/lib/puppet/util/logging.rb
3 require 'puppet/error'
4
5 module Puppet::Util::Logging
6
7 def send_log(level, message)
=> 8 Puppet::Util::Log.create({:level => level, :source => log_source, :message => message}.merge(log_metadata))
9 end
10
11 # Create a method for each log level.
12 Puppet::Util::Log.eachlevel do |level|
/home/vagrant/puppet/lib/puppet/util/logging.rb:8
Puppet::Util::Log.create({:level => level, :source => log_source, :message => message}.merge(log_metadata))
(rdb:1) s
[135, 143] in /home/vagrant/puppet/lib/puppet/util/logging.rb
135 end
136 end
137
138 def log_source
139 # We need to guard the existence of the constants, since this module is used by the base Puppet module.
=> 140 (is_resource? or is_resource_parameter?) and respond_to?(:path) and return path.to_s
141 to_s
142 end
143 end
/home/vagrant/puppet/lib/puppet/util/logging.rb:140
(is_resource? or is_resource_parameter?) and respond_to?(:path) and return path.to_s
(rdb:1) p is_resource?
false
(rdb:1) p is_resource_parameter?
false
(rdb:1) p respond_to?(:path)
false
(rdb:1) p (is_resource? or is_resource_parameter?) and respond_to?(:path) and return path.to_s
false
(rdb:1) s
[135, 143] in /home/vagrant/puppet/lib/puppet/util/logging.rb
135 end
136 end
137
138 def log_source
139 # We need to guard the existence of the constants, since this module is used by the base Puppet module.
=> 140 (is_resource? or is_resource_parameter?) and respond_to?(:path) and return path.to_s
141 to_s
142 end
143 end
/home/vagrant/puppet/lib/puppet/util/logging.rb:140
(is_resource? or is_resource_parameter?) and respond_to?(:path) and return path.to_s
(rdb:1) s
[119, 128] in /home/vagrant/puppet/lib/puppet/util/logging.rb
119 end
120
121 private
122
123 def is_resource?
=> 124 defined?(Puppet::Type) && is_a?(Puppet::Type)
125 end
126
127 def is_resource_parameter?
128 defined?(Puppet::Parameter) && is_a?(Puppet::Parameter)
/home/vagrant/puppet/lib/puppet/util/logging.rb:124
defined?(Puppet::Type) && is_a?(Puppet::Type)
(rdb:1) p defined?(Puppet::Type)
"constant"
(rdb:1) p is_a?(Puppet::Type)
false
(rdb:1) n
[123, 132] in /home/vagrant/puppet/lib/puppet/util/logging.rb
123 def is_resource?
124 defined?(Puppet::Type) && is_a?(Puppet::Type)
125 end
126
127 def is_resource_parameter?
=> 128 defined?(Puppet::Parameter) && is_a?(Puppet::Parameter)
129 end
130
131 def log_metadata
132 [:file, :line, :tags].inject({}) do |result, attr|
/home/vagrant/puppet/lib/puppet/util/logging.rb:128
defined?(Puppet::Parameter) && is_a?(Puppet::Parameter)
(rdb:1) n
[136, 143] in /home/vagrant/puppet/lib/puppet/util/logging.rb
136 end
137
138 def log_source
139 # We need to guard the existence of the constants, since this module is used by the base Puppet module.
140 (is_resource? or is_resource_parameter?) and respond_to?(:path) and return path.to_s
=> 141 to_s
142 end
143 end
/home/vagrant/puppet/lib/puppet/util/logging.rb:141
to_s
(rdb:1) p to_s
"Puppet"
(rdb:1) s
[127, 136] in /home/vagrant/puppet/lib/puppet/util/logging.rb
127 def is_resource_parameter?
128 defined?(Puppet::Parameter) && is_a?(Puppet::Parameter)
129 end
130
131 def log_metadata
=> 132 [:file, :line, :tags].inject({}) do |result, attr|
133 result[attr] = send(attr) if respond_to?(attr)
134 result
135 end
136 end
/home/vagrant/puppet/lib/puppet/util/logging.rb:132
[:file, :line, :tags].inject({}) do |result, attr|
(rdb:1) s
[128, 137] in /home/vagrant/puppet/lib/puppet/util/logging.rb
128 defined?(Puppet::Parameter) && is_a?(Puppet::Parameter)
129 end
130
131 def log_metadata
132 [:file, :line, :tags].inject({}) do |result, attr|
=> 133 result[attr] = send(attr) if respond_to?(attr)
134 result
135 end
136 end
137
/home/vagrant/puppet/lib/puppet/util/logging.rb:133
result[attr] = send(attr) if respond_to?(attr)
(rdb:1) p send(attr) if respond_to?(attr)
nil
(rdb:1) s
[128, 137] in /home/vagrant/puppet/lib/puppet/util/logging.rb
128 defined?(Puppet::Parameter) && is_a?(Puppet::Parameter)
129 end
130
131 def log_metadata
132 [:file, :line, :tags].inject({}) do |result, attr|
=> 133 result[attr] = send(attr) if respond_to?(attr)
134 result
135 end
136 end
137
/home/vagrant/puppet/lib/puppet/util/logging.rb:133
result[attr] = send(attr) if respond_to?(attr)
(rdb:1) s
[129, 138] in /home/vagrant/puppet/lib/puppet/util/logging.rb
129 end
130
131 def log_metadata
132 [:file, :line, :tags].inject({}) do |result, attr|
133 result[attr] = send(attr) if respond_to?(attr)
=> 134 result
135 end
136 end
137
138 def log_source
/home/vagrant/puppet/lib/puppet/util/logging.rb:134
result
(rdb:1) p result
{}
(rdb:1) putl result
{}
(rdb:1) s
[128, 137] in /home/vagrant/puppet/lib/puppet/util/logging.rb
128 defined?(Puppet::Parameter) && is_a?(Puppet::Parameter)
129 end
130
131 def log_metadata
132 [:file, :line, :tags].inject({}) do |result, attr|
=> 133 result[attr] = send(attr) if respond_to?(attr)
134 result
135 end
136 end
137
/home/vagrant/puppet/lib/puppet/util/logging.rb:133
result[attr] = send(attr) if respond_to?(attr)
(rdb:1) s
[128, 137] in /home/vagrant/puppet/lib/puppet/util/logging.rb
128 defined?(Puppet::Parameter) && is_a?(Puppet::Parameter)
129 end
130
131 def log_metadata
132 [:file, :line, :tags].inject({}) do |result, attr|
=> 133 result[attr] = send(attr) if respond_to?(attr)
134 result
135 end
136 end
137
/home/vagrant/puppet/lib/puppet/util/logging.rb:133
result[attr] = send(attr) if respond_to?(attr)
(rdb:1) s
[129, 138] in /home/vagrant/puppet/lib/puppet/util/logging.rb
129 end
130
131 def log_metadata
132 [:file, :line, :tags].inject({}) do |result, attr|
133 result[attr] = send(attr) if respond_to?(attr)
=> 134 result
135 end
136 end
137
138 def log_source
/home/vagrant/puppet/lib/puppet/util/logging.rb:134
result
(rdb:1) p result
{}
(rdb:1) s
[128, 137] in /home/vagrant/puppet/lib/puppet/util/logging.rb
128 defined?(Puppet::Parameter) && is_a?(Puppet::Parameter)
129 end
130
131 def log_metadata
132 [:file, :line, :tags].inject({}) do |result, attr|
=> 133 result[attr] = send(attr) if respond_to?(attr)
134 result
135 end
136 end
137
/home/vagrant/puppet/lib/puppet/util/logging.rb:133
result[attr] = send(attr) if respond_to?(attr)
(rdb:1) s
[128, 137] in /home/vagrant/puppet/lib/puppet/util/logging.rb
128 defined?(Puppet::Parameter) && is_a?(Puppet::Parameter)
129 end
130
131 def log_metadata
132 [:file, :line, :tags].inject({}) do |result, attr|
=> 133 result[attr] = send(attr) if respond_to?(attr)
134 result
135 end
136 end
137
/home/vagrant/puppet/lib/puppet/util/logging.rb:133
result[attr] = send(attr) if respond_to?(attr)
(rdb:1) s
[129, 138] in /home/vagrant/puppet/lib/puppet/util/logging.rb
129 end
130
131 def log_metadata
132 [:file, :line, :tags].inject({}) do |result, attr|
133 result[attr] = send(attr) if respond_to?(attr)
=> 134 result
135 end
136 end
137
138 def log_source
/home/vagrant/puppet/lib/puppet/util/logging.rb:134
result
(rdb:1) putl result
{}
(rdb:1) s
[77, 86] in /home/vagrant/puppet/lib/puppet/util/log.rb
77 end
78
79 # Create a new log message. The primary role of this method is to
80 # avoid creating log messages below the loglevel.
81 def Log.create(hash)
=> 82 raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
83 raise Puppet::DevError, "Invalid log level #{hash[:level]}" unless @levels.index(hash[:level])
84 @levels.index(hash[:level]) >= @loglevel ? Puppet::Util::Log.new(hash) : nil
85 end
86
/home/vagrant/puppet/lib/puppet/util/log.rb:82
raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
(rdb:1) s
[77, 86] in /home/vagrant/puppet/lib/puppet/util/log.rb
77 end
78
79 # Create a new log message. The primary role of this method is to
80 # avoid creating log messages below the loglevel.
81 def Log.create(hash)
=> 82 raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
83 raise Puppet::DevError, "Invalid log level #{hash[:level]}" unless @levels.index(hash[:level])
84 @levels.index(hash[:level]) >= @loglevel ? Puppet::Util::Log.new(hash) : nil
85 end
86
/home/vagrant/puppet/lib/puppet/util/log.rb:82
raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
(rdb:1) p hash.include?(:level)
true
(rdb:1) p raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
nil
(rdb:1) s
[77, 86] in /home/vagrant/puppet/lib/puppet/util/log.rb
77 end
78
79 # Create a new log message. The primary role of this method is to
80 # avoid creating log messages below the loglevel.
81 def Log.create(hash)
=> 82 raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
83 raise Puppet::DevError, "Invalid log level #{hash[:level]}" unless @levels.index(hash[:level])
84 @levels.index(hash[:level]) >= @loglevel ? Puppet::Util::Log.new(hash) : nil
85 end
86
/home/vagrant/puppet/lib/puppet/util/log.rb:82
raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
(rdb:1) s
[78, 87] in /home/vagrant/puppet/lib/puppet/util/log.rb
78
79 # Create a new log message. The primary role of this method is to
80 # avoid creating log messages below the loglevel.
81 def Log.create(hash)
82 raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
=> 83 raise Puppet::DevError, "Invalid log level #{hash[:level]}" unless @levels.index(hash[:level])
84 @levels.index(hash[:level]) >= @loglevel ? Puppet::Util::Log.new(hash) : nil
85 end
86
87 def Log.destinations
/home/vagrant/puppet/lib/puppet/util/log.rb:83
raise Puppet::DevError, "Invalid log level #{hash[:level]}" unless @levels.index(hash[:level])
(rdb:1) p @levels.index(hash[:level])
4
(rdb:1) p raise Puppet::DevError, "Invalid log level #{hash[:level]}" unless @levels.index(hash[:level])
nil
(rdb:1) s
[78, 87] in /home/vagrant/puppet/lib/puppet/util/log.rb
78
79 # Create a new log message. The primary role of this method is to
80 # avoid creating log messages below the loglevel.
81 def Log.create(hash)
82 raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
=> 83 raise Puppet::DevError, "Invalid log level #{hash[:level]}" unless @levels.index(hash[:level])
84 @levels.index(hash[:level]) >= @loglevel ? Puppet::Util::Log.new(hash) : nil
85 end
86
87 def Log.destinations
/home/vagrant/puppet/lib/puppet/util/log.rb:83
raise Puppet::DevError, "Invalid log level #{hash[:level]}" unless @levels.index(hash[:level])
(rdb:1) s
[79, 88] in /home/vagrant/puppet/lib/puppet/util/log.rb
79 # Create a new log message. The primary role of this method is to
80 # avoid creating log messages below the loglevel.
81 def Log.create(hash)
82 raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
83 raise Puppet::DevError, "Invalid log level #{hash[:level]}" unless @levels.index(hash[:level])
=> 84 @levels.index(hash[:level]) >= @loglevel ? Puppet::Util::Log.new(hash) : nil
85 end
86
87 def Log.destinations
88 @destinations
/home/vagrant/puppet/lib/puppet/util/log.rb:84
@levels.index(hash[:level]) >= @loglevel ? Puppet::Util::Log.new(hash) : nil
(rdb:1) s
[79, 88] in /home/vagrant/puppet/lib/puppet/util/log.rb
79 # Create a new log message. The primary role of this method is to
80 # avoid creating log messages below the loglevel.
81 def Log.create(hash)
82 raise Puppet::DevError, "Logs require a level" unless hash.include?(:level)
83 raise Puppet::DevError, "Invalid log level #{hash[:level]}" unless @levels.index(hash[:level])
=> 84 @levels.index(hash[:level]) >= @loglevel ? Puppet::Util::Log.new(hash) : nil
85 end
86
87 def Log.destinations
88 @destinations
/home/vagrant/puppet/lib/puppet/util/log.rb:84
@levels.index(hash[:level]) >= @loglevel ? Puppet::Util::Log.new(hash) : nil
(rdb:1) s
[241, 250] in /home/vagrant/puppet/lib/puppet/util/log.rb
241
242 attr_accessor :time, :remote, :file, :line, :source
243 attr_reader :level, :message
244
245 def initialize(args)
=> 246 self.level = args[:level]
247 self.message = args[:message]
248 self.source = args[:source] || "Puppet"
249
250 @time = Time.now
/home/vagrant/puppet/lib/puppet/util/log.rb:246
self.level = args[:level]
(rdb:1) putl args
{:source=>"Puppet",
:message=>
"Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror\nNo such command: versionlock. Please use /usr/bin/yum --help\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'\n/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'\n/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'\n/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'\n/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'\n/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'\n/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'\n/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'\n/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'\n/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'\n/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'\n/home/vagrant/puppet/lib/puppet.rb:224:in `override'\n/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'\n/home/vagrant/puppet/bin/puppet:4\n/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'\n/usr/lib/ruby/gems/1.8/bin/puppet:19",
:level=>:err}
(rdb:1) s
[298, 307] in /home/vagrant/puppet/lib/puppet/util/log.rb
298 raise ArgumentError, "Puppet::Util::Log requires a message" unless msg
299 @message = msg.to_s
300 end
301
302 def level=(level)
=> 303 raise ArgumentError, "Puppet::Util::Log requires a log level" unless level
304 raise ArgumentError, "Puppet::Util::Log requires a symbol or string" unless level.respond_to? "to_sym"
305 @level = level.to_sym
306 raise ArgumentError, "Invalid log level #{@level}" unless self.class.validlevel?(@level)
307
/home/vagrant/puppet/lib/puppet/util/log.rb:303
raise ArgumentError, "Puppet::Util::Log requires a log level" unless level
(rdb:1) s
[298, 307] in /home/vagrant/puppet/lib/puppet/util/log.rb
298 raise ArgumentError, "Puppet::Util::Log requires a message" unless msg
299 @message = msg.to_s
300 end
301
302 def level=(level)
=> 303 raise ArgumentError, "Puppet::Util::Log requires a log level" unless level
304 raise ArgumentError, "Puppet::Util::Log requires a symbol or string" unless level.respond_to? "to_sym"
305 @level = level.to_sym
306 raise ArgumentError, "Invalid log level #{@level}" unless self.class.validlevel?(@level)
307
/home/vagrant/puppet/lib/puppet/util/log.rb:303
raise ArgumentError, "Puppet::Util::Log requires a log level" unless level
(rdb:1) s
[299, 308] in /home/vagrant/puppet/lib/puppet/util/log.rb
299 @message = msg.to_s
300 end
301
302 def level=(level)
303 raise ArgumentError, "Puppet::Util::Log requires a log level" unless level
=> 304 raise ArgumentError, "Puppet::Util::Log requires a symbol or string" unless level.respond_to? "to_sym"
305 @level = level.to_sym
306 raise ArgumentError, "Invalid log level #{@level}" unless self.class.validlevel?(@level)
307
308 # Tag myself with my log level
/home/vagrant/puppet/lib/puppet/util/log.rb:304
raise ArgumentError, "Puppet::Util::Log requires a symbol or string" unless level.respond_to? "to_sym"
(rdb:1) s
[299, 308] in /home/vagrant/puppet/lib/puppet/util/log.rb
299 @message = msg.to_s
300 end
301
302 def level=(level)
303 raise ArgumentError, "Puppet::Util::Log requires a log level" unless level
=> 304 raise ArgumentError, "Puppet::Util::Log requires a symbol or string" unless level.respond_to? "to_sym"
305 @level = level.to_sym
306 raise ArgumentError, "Invalid log level #{@level}" unless self.class.validlevel?(@level)
307
308 # Tag myself with my log level
/home/vagrant/puppet/lib/puppet/util/log.rb:304
raise ArgumentError, "Puppet::Util::Log requires a symbol or string" unless level.respond_to? "to_sym"
(rdb:1) s
[300, 309] in /home/vagrant/puppet/lib/puppet/util/log.rb
300 end
301
302 def level=(level)
303 raise ArgumentError, "Puppet::Util::Log requires a log level" unless level
304 raise ArgumentError, "Puppet::Util::Log requires a symbol or string" unless level.respond_to? "to_sym"
=> 305 @level = level.to_sym
306 raise ArgumentError, "Invalid log level #{@level}" unless self.class.validlevel?(@level)
307
308 # Tag myself with my log level
309 tag(level)
/home/vagrant/puppet/lib/puppet/util/log.rb:305
@level = level.to_sym
(rdb:1) s
[301, 310] in /home/vagrant/puppet/lib/puppet/util/log.rb
301
302 def level=(level)
303 raise ArgumentError, "Puppet::Util::Log requires a log level" unless level
304 raise ArgumentError, "Puppet::Util::Log requires a symbol or string" unless level.respond_to? "to_sym"
305 @level = level.to_sym
=> 306 raise ArgumentError, "Invalid log level #{@level}" unless self.class.validlevel?(@level)
307
308 # Tag myself with my log level
309 tag(level)
310 end
/home/vagrant/puppet/lib/puppet/util/log.rb:306
raise ArgumentError, "Invalid log level #{@level}" unless self.class.validlevel?(@level)
(rdb:1) s
[228, 237] in /home/vagrant/puppet/lib/puppet/util/log.rb
228 (Puppet.features.eventlog? ? :eventlog : Puppet[:puppetdlog])))
229 end
230
231 # Is the passed level a valid log level?
232 def self.validlevel?(level)
=> 233 @levels.include?(level)
234 end
235
236 def self.from_pson(data)
237 obj = allocate
/home/vagrant/puppet/lib/puppet/util/log.rb:233
@levels.include?(level)
(rdb:1) s
[301, 310] in /home/vagrant/puppet/lib/puppet/util/log.rb
301
302 def level=(level)
303 raise ArgumentError, "Puppet::Util::Log requires a log level" unless level
304 raise ArgumentError, "Puppet::Util::Log requires a symbol or string" unless level.respond_to? "to_sym"
305 @level = level.to_sym
=> 306 raise ArgumentError, "Invalid log level #{@level}" unless self.class.validlevel?(@level)
307
308 # Tag myself with my log level
309 tag(level)
310 end
/home/vagrant/puppet/lib/puppet/util/log.rb:306
raise ArgumentError, "Invalid log level #{@level}" unless self.class.validlevel?(@level)
(rdb:1) n
[304, 313] in /home/vagrant/puppet/lib/puppet/util/log.rb
304 raise ArgumentError, "Puppet::Util::Log requires a symbol or string" unless level.respond_to? "to_sym"
305 @level = level.to_sym
306 raise ArgumentError, "Invalid log level #{@level}" unless self.class.validlevel?(@level)
307
308 # Tag myself with my log level
=> 309 tag(level)
310 end
311
312 # If they pass a source in to us, we make sure it is a string, and
313 # we retrieve any tags we can.
/home/vagrant/puppet/lib/puppet/util/log.rb:309
tag(level)
(rdb:1) n
[242, 251] in /home/vagrant/puppet/lib/puppet/util/log.rb
242 attr_accessor :time, :remote, :file, :line, :source
243 attr_reader :level, :message
244
245 def initialize(args)
246 self.level = args[:level]
=> 247 self.message = args[:message]
248 self.source = args[:source] || "Puppet"
249
250 @time = Time.now
251
/home/vagrant/puppet/lib/puppet/util/log.rb:247
self.message = args[:message]
(rdb:1) p self.message
nil
(rdb:1) p args[:message]
"Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror\nNo such command: versionlock. Please use /usr/bin/yum --help\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'\n/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'\n/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'\n/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'\n/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'\n/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'\n/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'\n/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'\n/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'\n/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'\n/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'\n/home/vagrant/puppet/lib/puppet.rb:224:in `override'\n/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'\n/home/vagrant/puppet/bin/puppet:4\n/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'\n/usr/lib/ruby/gems/1.8/bin/puppet:19"
(rdb:1) s
[293, 302] in /home/vagrant/puppet/lib/puppet/util/log.rb
293 def to_pson(*args)
294 to_data_hash.to_pson(*args)
295 end
296
297 def message=(msg)
=> 298 raise ArgumentError, "Puppet::Util::Log requires a message" unless msg
299 @message = msg.to_s
300 end
301
302 def level=(level)
/home/vagrant/puppet/lib/puppet/util/log.rb:298
raise ArgumentError, "Puppet::Util::Log requires a message" unless msg
(rdb:1) p msg
"Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror\nNo such command: versionlock. Please use /usr/bin/yum --help\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'\n/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'\n/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'\n/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'\n/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'\n/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'\n/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'\n/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'\n/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'\n/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'\n/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'\n/home/vagrant/puppet/lib/puppet.rb:224:in `override'\n/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'\n/home/vagrant/puppet/bin/puppet:4\n/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'\n/usr/lib/ruby/gems/1.8/bin/puppet:19"
(rdb:1) p raise ArgumentError, "Puppet::Util::Log requires a message" unless msg
nil
(rdb:1) s
[293, 302] in /home/vagrant/puppet/lib/puppet/util/log.rb
293 def to_pson(*args)
294 to_data_hash.to_pson(*args)
295 end
296
297 def message=(msg)
=> 298 raise ArgumentError, "Puppet::Util::Log requires a message" unless msg
299 @message = msg.to_s
300 end
301
302 def level=(level)
/home/vagrant/puppet/lib/puppet/util/log.rb:298
raise ArgumentError, "Puppet::Util::Log requires a message" unless msg
(rdb:1) s
[294, 303] in /home/vagrant/puppet/lib/puppet/util/log.rb
294 to_data_hash.to_pson(*args)
295 end
296
297 def message=(msg)
298 raise ArgumentError, "Puppet::Util::Log requires a message" unless msg
=> 299 @message = msg.to_s
300 end
301
302 def level=(level)
303 raise ArgumentError, "Puppet::Util::Log requires a log level" unless level
/home/vagrant/puppet/lib/puppet/util/log.rb:299
@message = msg.to_s
(rdb:1) p msg.to_s
"Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror\nNo such command: versionlock. Please use /usr/bin/yum --help\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'\n/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'\n/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'\n/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'\n/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'\n/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'\n/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'\n/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'\n/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'\n/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'\n/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'\n/home/vagrant/puppet/lib/puppet.rb:224:in `override'\n/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'\n/home/vagrant/puppet/bin/puppet:4\n/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'\n/usr/lib/ruby/gems/1.8/bin/puppet:19"
(rdb:1) p @message
nil
(rdb:1) p @message = msg.to_s
"Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror\nNo such command: versionlock. Please use /usr/bin/yum --help\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'\n/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'\n/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'\n/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'\n/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'\n/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'\n/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'\n/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'\n/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'\n/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'\n/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'\n/home/vagrant/puppet/lib/puppet.rb:224:in `override'\n/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'\n/home/vagrant/puppet/bin/puppet:4\n/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'\n/usr/lib/ruby/gems/1.8/bin/puppet:19"
(rdb:1) s
[243, 252] in /home/vagrant/puppet/lib/puppet/util/log.rb
243 attr_reader :level, :message
244
245 def initialize(args)
246 self.level = args[:level]
247 self.message = args[:message]
=> 248 self.source = args[:source] || "Puppet"
249
250 @time = Time.now
251
252 if tags = args[:tags]
/home/vagrant/puppet/lib/puppet/util/log.rb:248
self.source = args[:source] || "Puppet"
(rdb:1) p self.source = args[:source] || "Puppet"
"Puppet"
(rdb:1) n
[245, 254] in /home/vagrant/puppet/lib/puppet/util/log.rb
245 def initialize(args)
246 self.level = args[:level]
247 self.message = args[:message]
248 self.source = args[:source] || "Puppet"
249
=> 250 @time = Time.now
251
252 if tags = args[:tags]
253 tags.each { |t| self.tag(t) }
254 end
/home/vagrant/puppet/lib/puppet/util/log.rb:250
@time = Time.now
(rdb:1) n
[247, 256] in /home/vagrant/puppet/lib/puppet/util/log.rb
247 self.message = args[:message]
248 self.source = args[:source] || "Puppet"
249
250 @time = Time.now
251
=> 252 if tags = args[:tags]
253 tags.each { |t| self.tag(t) }
254 end
255
256 [:file, :line].each do |attr|
/home/vagrant/puppet/lib/puppet/util/log.rb:252
if tags = args[:tags]
(rdb:1) p args[:tags]
nil
(rdb:1) n
[247, 256] in /home/vagrant/puppet/lib/puppet/util/log.rb
247 self.message = args[:message]
248 self.source = args[:source] || "Puppet"
249
250 @time = Time.now
251
=> 252 if tags = args[:tags]
253 tags.each { |t| self.tag(t) }
254 end
255
256 [:file, :line].each do |attr|
/home/vagrant/puppet/lib/puppet/util/log.rb:252
if tags = args[:tags]
(rdb:1) n
[251, 260] in /home/vagrant/puppet/lib/puppet/util/log.rb
251
252 if tags = args[:tags]
253 tags.each { |t| self.tag(t) }
254 end
255
=> 256 [:file, :line].each do |attr|
257 next unless value = args[attr]
258 send(attr.to_s + "=", value)
259 end
260
/home/vagrant/puppet/lib/puppet/util/log.rb:256
[:file, :line].each do |attr|
(rdb:1) n
[256, 265] in /home/vagrant/puppet/lib/puppet/util/log.rb
256 [:file, :line].each do |attr|
257 next unless value = args[attr]
258 send(attr.to_s + "=", value)
259 end
260
=> 261 Log.newmessage(self)
262 end
263
264 def initialize_from_hash(data)
265 @level = data['level'].intern
/home/vagrant/puppet/lib/puppet/util/log.rb:261
Log.newmessage(self)
(rdb:1) p Log.newmessage(self)
Error: Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help
/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'
/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'
/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'
/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'
/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'
/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'
/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'
/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'
/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'
/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'
/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'
/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'
/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'
/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'
/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'
/home/vagrant/puppet/lib/puppet.rb:224:in `override'
/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'
/home/vagrant/puppet/bin/puppet:4
/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'
/usr/lib/ruby/gems/1.8/bin/puppet:19
{#<Puppet::Transaction::Report:0x7fa3df83b8e8 @logs=[#<Puppet::Util::Log:0x7fa3df84f988 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:43:11 +0000 2014, @message="Prefetching yum resources for package">, #<Puppet::Util::Log:0x7fa3df84dea8 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:43:11 +0000 2014, @message="Executing '/bin/rpm --version'">, #<Puppet::Util::Log:0x7fa3df84c418 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:43:11 +0000 2014, @message="Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\\n''">, #<Puppet::Util::Log:0x7fa3df78fed0 @source="Package[bash](provider=yum)", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:48:30 +0000 2014, @message="Ensuring => held">, #<Puppet::Util::Log:0x7fa3df750f50 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:49:58 +0000 2014, @message="Executing '/usr/bin/yum -d 0 -e 0 -y install bash'">, #<Puppet::Util::Log:0x7fa3df749bb0 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:50:02 +0000 2014, @message="Executing '/bin/rpm -q bash --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\\n'">, #<Puppet::Util::Log:0x7fa3dfad7110 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:51:24 +0000 2014, @message="Executing '/usr/bin/yum versionlock bash'">, #<Puppet::Util::Log:0x7fa3df5e41a8 @source="Puppet", @level=:err, @tags=#<Puppet::Util::TagSet: {"err"}>, @time=Thu Jan 30 11:51:29 +0000 2014, @message="Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror\nNo such command: versionlock. Please use /usr/bin/yum --help\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'\n/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'\n/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'\n/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'\n/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'\n/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'\n/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'\n/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'\n/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'\n/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'\n/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'\n/home/vagrant/puppet/lib/puppet.rb:224:in `override'\n/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'\n/home/vagrant/puppet/bin/puppet:4\n/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'\n/usr/lib/ruby/gems/1.8/bin/puppet:19">], @report_format=4, @metrics={}, @time=Thu Jan 30 10:43:11 +0000 2014, @puppet_version="3.4.2", @host="scratch.dt0388.test", @transaction_uuid=nil, @environment=nil, @external_times={:config_retrieval=>0}, @status="failed", @configuration_version=nil, @kind="apply", @resource_statuses={"Package[bash]"=>#<Puppet::Resource::Status:0x7fa3df7e6cd0 @scheduled=true, @out_of_sync_count=0, @title="bash", @events=[], @source_description="/Package[bash]", @tags=#<Puppet::Util::TagSet: {"bash", "package"}>, @file=nil, @time=Thu Jan 30 10:43:11 +0000 2014, @changed=false, @resource_type="Package", @failed=false, @real_resource=#<Puppet::Type::Package:0x7fa3df85a860 @catalog=#<Puppet::Resource::Catalog:0x7fa3df8414f0 @aliases={}, @resource_table={["Package", "bash"]=>#<Puppet::Type::Package:0x7fa3df85a860 ...>}, @host_config=true, @in_to={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>{}}, @downstream_from={}, @relationship_graph=#<Puppet::Graph::RelationshipGraph:0x7fa3df83af88 @done={}, @in_to={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>{}}, @generated={}, @downstream_from={}, @providerless_types=[], @ready=#<Puppet::Graph::RbTreeMap:0x7fa3df83af38 @size=0, @root=nil>, @upstream_from={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>{}}, @blockers={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>0}, @prioritizer=#<Puppet::Graph::TitleHashPrioritizer:0x7fa3df83c1a8 @priority={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>"b71253bedba9f6e7c844ffe13a99814c32436721"}>, @out_from={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>{}}>, @resources=[["Package", "bash"]], @classes=[], @upstream_from={}, @prioritizer=#<Puppet::Graph::TitleHashPrioritizer:0x7fa3df83c1a8 @priority={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>"b71253bedba9f6e7c844ffe13a99814c32436721"}>, @out_from={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>{}}>, @name_var_cache=:name, @original_parameters={:ensure=>"held"}, @title="bash", @tags=#<Puppet::Util::TagSet: {"bash", "package"}>, @parameters={:loglevel=>#<Puppet::Type::MetaParamLoglevel:0x7fa3df8414a0 @value=:notice, @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>>, :provider=>#<Puppet::Type::Package::ParameterProvider:0x7fa3df859e60 @value=:yum, @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>>, :ensure=>#<Puppet::Type::Package::Ensure:0x7fa3df842198 @lateststamp=1391077591, @shouldorig=["held"], @path="/Package[bash]/ensure", @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>, @should=[:held]>, :name=>#<Puppet::Type::Package::ParameterName:0x7fa3df859eb0 @value="bash", @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>>, :configfiles=>#<Puppet::Type::Package::ParameterConfigfiles:0x7fa3df841810 @value=:keep, @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>>}, @path="/Package[bash]", @ref="Package[bash]", @provider=#<Puppet::Type::Package::ProviderYum:0x7fa3df845fa0 @property_hash={:epoch=>"0", :provider=>:yum, :arch=>"x86_64", :ensure=>"4.1.2-15.el6_4", :release=>"15.el6_4", :name=>"bash", :version=>"4.1.2"}, @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>>, @parent=nil>, @change_count=0, @skipped=false, @out_of_sync=false, @resource="Package[bash]", @line=nil, @containment_path=["Package[bash]"]>}>=>#<Puppet::Util::Log::DestReport:0x7fa3df83b078 @report=#<Puppet::Transaction::Report:0x7fa3df83b8e8 @logs=[#<Puppet::Util::Log:0x7fa3df84f988 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:43:11 +0000 2014, @message="Prefetching yum resources for package">, #<Puppet::Util::Log:0x7fa3df84dea8 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:43:11 +0000 2014, @message="Executing '/bin/rpm --version'">, #<Puppet::Util::Log:0x7fa3df84c418 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:43:11 +0000 2014, @message="Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\\n''">, #<Puppet::Util::Log:0x7fa3df78fed0 @source="Package[bash](provider=yum)", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:48:30 +0000 2014, @message="Ensuring => held">, #<Puppet::Util::Log:0x7fa3df750f50 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:49:58 +0000 2014, @message="Executing '/usr/bin/yum -d 0 -e 0 -y install bash'">, #<Puppet::Util::Log:0x7fa3df749bb0 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:50:02 +0000 2014, @message="Executing '/bin/rpm -q bash --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\\n'">, #<Puppet::Util::Log:0x7fa3dfad7110 @source="Puppet", @level=:debug, @tags=#<Puppet::Util::TagSet: {"debug"}>, @time=Thu Jan 30 10:51:24 +0000 2014, @message="Executing '/usr/bin/yum versionlock bash'">, #<Puppet::Util::Log:0x7fa3df5e41a8 @source="Puppet", @level=:err, @tags=#<Puppet::Util::TagSet: {"err"}>, @time=Thu Jan 30 11:51:29 +0000 2014, @message="Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror\nNo such command: versionlock. Please use /usr/bin/yum --help\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/util/errors.rb:104:in `set_held'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `send'\n/home/vagrant/puppet/lib/puppet/property.rb:197:in `call_valuemethod'\n/home/vagrant/puppet/lib/puppet/property.rb:498:in `set'\n/home/vagrant/puppet/lib/puppet/property.rb:581:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:193:in `sync'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:130:in `sync_if_needed'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:107:in `manage_via_ensure_if_possible'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:77:in `perform_changes'\n/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'\n/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'\n/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'\n/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'\n/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'\n/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'\n/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'\n/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'\n/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'\n/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'\n/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'\n/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'\n/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'\n/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'\n/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'\n/home/vagrant/puppet/lib/puppet.rb:224:in `override'\n/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'\n/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'\n/home/vagrant/puppet/bin/puppet:4\n/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'\n/usr/lib/ruby/gems/1.8/bin/puppet:19">], @report_format=4, @metrics={}, @time=Thu Jan 30 10:43:11 +0000 2014, @puppet_version="3.4.2", @host="scratch.dt0388.test", @transaction_uuid=nil, @environment=nil, @external_times={:config_retrieval=>0}, @status="failed", @configuration_version=nil, @kind="apply", @resource_statuses={"Package[bash]"=>#<Puppet::Resource::Status:0x7fa3df7e6cd0 @scheduled=true, @out_of_sync_count=0, @title="bash", @events=[], @source_description="/Package[bash]", @tags=#<Puppet::Util::TagSet: {"bash", "package"}>, @file=nil, @time=Thu Jan 30 10:43:11 +0000 2014, @changed=false, @resource_type="Package", @failed=false, @real_resource=#<Puppet::Type::Package:0x7fa3df85a860 @catalog=#<Puppet::Resource::Catalog:0x7fa3df8414f0 @aliases={}, @resource_table={["Package", "bash"]=>#<Puppet::Type::Package:0x7fa3df85a860 ...>}, @host_config=true, @in_to={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>{}}, @downstream_from={}, @relationship_graph=#<Puppet::Graph::RelationshipGraph:0x7fa3df83af88 @done={}, @in_to={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>{}}, @generated={}, @downstream_from={}, @providerless_types=[], @ready=#<Puppet::Graph::RbTreeMap:0x7fa3df83af38 @size=0, @root=nil>, @upstream_from={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>{}}, @blockers={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>0}, @prioritizer=#<Puppet::Graph::TitleHashPrioritizer:0x7fa3df83c1a8 @priority={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>"b71253bedba9f6e7c844ffe13a99814c32436721"}>, @out_from={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>{}}>, @resources=[["Package", "bash"]], @classes=[], @upstream_from={}, @prioritizer=#<Puppet::Graph::TitleHashPrioritizer:0x7fa3df83c1a8 @priority={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>"b71253bedba9f6e7c844ffe13a99814c32436721"}>, @out_from={#<Puppet::Type::Package:0x7fa3df85a860 ...>=>{}}>, @name_var_cache=:name, @original_parameters={:ensure=>"held"}, @title="bash", @tags=#<Puppet::Util::TagSet: {"bash", "package"}>, @parameters={:loglevel=>#<Puppet::Type::MetaParamLoglevel:0x7fa3df8414a0 @value=:notice, @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>>, :provider=>#<Puppet::Type::Package::ParameterProvider:0x7fa3df859e60 @value=:yum, @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>>, :ensure=>#<Puppet::Type::Package::Ensure:0x7fa3df842198 @lateststamp=1391077591, @shouldorig=["held"], @path="/Package[bash]/ensure", @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>, @should=[:held]>, :name=>#<Puppet::Type::Package::ParameterName:0x7fa3df859eb0 @value="bash", @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>>, :configfiles=>#<Puppet::Type::Package::ParameterConfigfiles:0x7fa3df841810 @value=:keep, @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>>}, @path="/Package[bash]", @ref="Package[bash]", @provider=#<Puppet::Type::Package::ProviderYum:0x7fa3df845fa0 @property_hash={:epoch=>"0", :provider=>:yum, :arch=>"x86_64", :ensure=>"4.1.2-15.el6_4", :release=>"15.el6_4", :name=>"bash", :version=>"4.1.2"}, @resource=#<Puppet::Type::Package:0x7fa3df85a860 ...>>, @parent=nil>, @change_count=0, @skipped=false, @out_of_sync=false, @resource="Package[bash]", @line=nil, @containment_path=["Package[bash]"]>}>>, :console=>#<Puppet::Util::Log::DestConsole:0x7fa3e1311438>}
[136, 145] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
136 end
137 rescue => detail
138 # Execution will continue on StandardErrors, just store the event
139 Puppet.log_exception(detail)
140
=> 141 event = create_change_event(param, current_value, historical_value)
142 event.status = "failure"
143 event.message = "change from #{param.is_to_s(current_value)} to #{param.should_to_s(param.should)} failed: #{detail}"
144 false
145 rescue Exception => detail
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:141
event = create_change_event(param, current_value, historical_value)
(rdb:1) n
[137, 146] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
137 rescue => detail
138 # Execution will continue on StandardErrors, just store the event
139 Puppet.log_exception(detail)
140
141 event = create_change_event(param, current_value, historical_value)
=> 142 event.status = "failure"
143 event.message = "change from #{param.is_to_s(current_value)} to #{param.should_to_s(param.should)} failed: #{detail}"
144 false
145 rescue Exception => detail
146 # Execution will halt on Exceptions, they get raised to the application
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:142
event.status = "failure"
(rdb:1) n
[138, 147] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
138 # Execution will continue on StandardErrors, just store the event
139 Puppet.log_exception(detail)
140
141 event = create_change_event(param, current_value, historical_value)
142 event.status = "failure"
=> 143 event.message = "change from #{param.is_to_s(current_value)} to #{param.should_to_s(param.should)} failed: #{detail}"
144 false
145 rescue Exception => detail
146 # Execution will halt on Exceptions, they get raised to the application
147 event = create_change_event(param, current_value, historical_value)
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:143
event.message = "change from #{param.is_to_s(current_value)} to #{param.should_to_s(param.should)} failed: #{detail}"
(rdb:1) n
[139, 148] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
139 Puppet.log_exception(detail)
140
141 event = create_change_event(param, current_value, historical_value)
142 event.status = "failure"
143 event.message = "change from #{param.is_to_s(current_value)} to #{param.should_to_s(param.should)} failed: #{detail}"
=> 144 false
145 rescue Exception => detail
146 # Execution will halt on Exceptions, they get raised to the application
147 event = create_change_event(param, current_value, historical_value)
148 event.status = "failure"
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:144
false
(rdb:1) n
[147, 156] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
147 event = create_change_event(param, current_value, historical_value)
148 event.status = "failure"
149 event.message = "change from #{param.is_to_s(current_value)} to #{param.should_to_s(param.should)} failed: #{detail}"
150 raise
151 ensure
=> 152 if event
153 context.record(event)
154 event.send_log
155 context.synced_params << param.name
156 end
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:152
if event
(rdb:1) n
[148, 157] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
148 event.status = "failure"
149 event.message = "change from #{param.is_to_s(current_value)} to #{param.should_to_s(param.should)} failed: #{detail}"
150 raise
151 ensure
152 if event
=> 153 context.record(event)
154 event.send_log
155 context.synced_params << param.name
156 end
157 end
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:153
context.record(event)
(rdb:1) n
[149, 158] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
149 event.message = "change from #{param.is_to_s(current_value)} to #{param.should_to_s(param.should)} failed: #{detail}"
150 raise
151 ensure
152 if event
153 context.record(event)
=> 154 event.send_log
155 context.synced_params << param.name
156 end
157 end
158 end
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:154
event.send_log
(rdb:1) n
Error: /Package[bash]/ensure: change from 4.1.2-15.el6_4 to held failed: Could not hold: Execution of '/usr/bin/yum versionlock bash' returned 1: Loaded plugins: fastestmirror
No such command: versionlock. Please use /usr/bin/yum --help
[150, 159] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
150 raise
151 ensure
152 if event
153 context.record(event)
154 event.send_log
=> 155 context.synced_params << param.name
156 end
157 end
158 end
159
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:155
context.synced_params << param.name
(rdb:1) n
[74, 83] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
74 cache(resource, param, context.current_values[param])
75 end
76
77 managed_via_ensure = manage_via_ensure_if_possible(resource, context)
78
=> 79 if !managed_via_ensure
80 if context.resource_present?
81 resource.properties.each do |param|
82 sync_if_needed(param, context)
83 end
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:79
if !managed_via_ensure
(rdb:1) n
[75, 84] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
75 end
76
77 managed_via_ensure = manage_via_ensure_if_possible(resource, context)
78
79 if !managed_via_ensure
=> 80 if context.resource_present?
81 resource.properties.each do |param|
82 sync_if_needed(param, context)
83 end
84 else
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:80
if context.resource_present?
(rdb:1) n
[75, 84] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
75 end
76
77 managed_via_ensure = manage_via_ensure_if_possible(resource, context)
78
79 if !managed_via_ensure
=> 80 if context.resource_present?
81 resource.properties.each do |param|
82 sync_if_needed(param, context)
83 end
84 else
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:80
if context.resource_present?
(rdb:1) n
[76, 85] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
76
77 managed_via_ensure = manage_via_ensure_if_possible(resource, context)
78
79 if !managed_via_ensure
80 if context.resource_present?
=> 81 resource.properties.each do |param|
82 sync_if_needed(param, context)
83 end
84 else
85 resource.debug("Nothing to manage: no ensure and the resource doesn't exist")
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:81
resource.properties.each do |param|
(rdb:1) n
Debug: Package[bash](provider=yum): Ensuring => held
Debug: Executing '/usr/bin/yum -d 0 -e 0 -y install bash'
Debug: Executing '/bin/rpm -q bash --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing '/usr/bin/yum versionlock bash'
[20, 29] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
20 if status.changed? && ! resource.noop?
21 cache(resource, :synced, Time.now)
22 resource.flush if resource.respond_to?(:flush)
23 end
24 rescue => detail
=> 25 status.failed_because(detail)
26 ensure
27 status.evaluation_time = Time.now - status.time
28 end
29
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:25
status.failed_because(detail)
(rdb:1) p status.failed_because(detail)
Error: /Package[bash]: Could not evaluate: Puppet::Util::Log requires a message
/home/vagrant/puppet/lib/puppet/util/log.rb:298:in `message='
/home/vagrant/puppet/lib/puppet/util/log.rb:247:in `initialize'
/home/vagrant/puppet/lib/puppet/util/log.rb:84:in `new'
/home/vagrant/puppet/lib/puppet/util/log.rb:84:in `create'
/home/vagrant/puppet/lib/puppet/util/logging.rb:8:in `send_log'
/home/vagrant/puppet/lib/puppet/transaction/event.rb:78:in `send_log'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:154:in `sync_if_needed'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:82:in `perform_changes'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:81:in `each'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:81:in `perform_changes'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'
/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'
/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'
/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'
/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'
/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'
/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'
/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'
/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'
/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'
/home/vagrant/puppet/lib/puppet.rb:224:in `override'
/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'
/home/vagrant/puppet/bin/puppet:4
/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'
/usr/lib/ruby/gems/1.8/bin/puppet:19
true
(rdb:1) n
Error: /Package[bash]: Could not evaluate: Puppet::Util::Log requires a message
/home/vagrant/puppet/lib/puppet/util/log.rb:298:in `message='
/home/vagrant/puppet/lib/puppet/util/log.rb:247:in `initialize'
/home/vagrant/puppet/lib/puppet/util/log.rb:84:in `new'
/home/vagrant/puppet/lib/puppet/util/log.rb:84:in `create'
/home/vagrant/puppet/lib/puppet/util/logging.rb:8:in `send_log'
/home/vagrant/puppet/lib/puppet/transaction/event.rb:78:in `send_log'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:154:in `sync_if_needed'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:82:in `perform_changes'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:81:in `each'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:81:in `perform_changes'
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:18:in `evaluate'
/home/vagrant/puppet/lib/puppet/transaction.rb:174:in `apply'
/home/vagrant/puppet/lib/puppet/transaction.rb:187:in `eval_resource'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `call'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/util.rb:327:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/vagrant/puppet/lib/puppet/util.rb:326:in `thinmark'
/home/vagrant/puppet/lib/puppet/transaction.rb:117:in `evaluate'
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
/home/vagrant/puppet/lib/puppet/transaction.rb:108:in `evaluate'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:164:in `apply'
/home/vagrant/puppet/lib/puppet/util/log.rb:153:in `with_destination'
/home/vagrant/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:163:in `apply'
/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:41:in `save'
/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:283:in `save'
/home/vagrant/puppet/lib/puppet/application/resource.rb:219:in `find_or_save_resources'
/home/vagrant/puppet/lib/puppet/application/resource.rb:143:in `main'
/home/vagrant/puppet/lib/puppet/application.rb:376:in `run_command'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/application.rb:474:in `plugin_hook'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/util.rb:479:in `exit_on_fail'
/home/vagrant/puppet/lib/puppet/application.rb:367:in `run'
/home/vagrant/puppet/lib/puppet/context.rb:51:in `override'
/home/vagrant/puppet/lib/puppet.rb:224:in `override'
/home/vagrant/puppet/lib/puppet/application.rb:357:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:137:in `run'
/home/vagrant/puppet/lib/puppet/util/command_line.rb:91:in `execute'
/home/vagrant/puppet/bin/puppet:4
/usr/lib/ruby/gems/1.8/bin/puppet:19:in `load'
/usr/lib/ruby/gems/1.8/bin/puppet:19
[22, 31] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
22 resource.flush if resource.respond_to?(:flush)
23 end
24 rescue => detail
25 status.failed_because(detail)
26 ensure
=> 27 status.evaluation_time = Time.now - status.time
28 end
29
30 status
31 end
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:27
status.evaluation_time = Time.now - status.time
(rdb:1) p status.evaluation_time = Time.now - status.time
4293.014582
(rdb:1) n
[25, 34] in /home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb
25 status.failed_because(detail)
26 ensure
27 status.evaluation_time = Time.now - status.time
28 end
29
=> 30 status
31 end
32
33 def scheduled?(resource)
34 return true if Puppet[:ignoreschedules]
/home/vagrant/puppet/lib/puppet/transaction/resource_harness.rb:30
status
(rdb:1) n
[170, 179] in /home/vagrant/puppet/lib/puppet/transaction.rb
170 private
171
172 # Apply all changes for a resource
173 def apply(resource, ancestor = nil)
174 status = resource_harness.evaluate(resource)
=> 175 add_resource_status(status)
176 event_manager.queue_events(ancestor || resource, status.events) unless status.failed?
177 rescue => detail
178 resource.err "Could not evaluate: #{detail}"
179 end
/home/vagrant/puppet/lib/puppet/transaction.rb:175
add_resource_status(status)
(rdb:1) n
[171, 180] in /home/vagrant/puppet/lib/puppet/transaction.rb
171
172 # Apply all changes for a resource
173 def apply(resource, ancestor = nil)
174 status = resource_harness.evaluate(resource)
175 add_resource_status(status)
=> 176 event_manager.queue_events(ancestor || resource, status.events) unless status.failed?
177 rescue => detail
178 resource.err "Could not evaluate: #{detail}"
179 end
180
/home/vagrant/puppet/lib/puppet/transaction.rb:176
event_manager.queue_events(ancestor || resource, status.events) unless status.failed?
(rdb:1) n
[171, 180] in /home/vagrant/puppet/lib/puppet/transaction.rb
171
172 # Apply all changes for a resource
173 def apply(resource, ancestor = nil)
174 status = resource_harness.evaluate(resource)
175 add_resource_status(status)
=> 176 event_manager.queue_events(ancestor || resource, status.events) unless status.failed?
177 rescue => detail
178 resource.err "Could not evaluate: #{detail}"
179 end
180
/home/vagrant/puppet/lib/puppet/transaction.rb:176
event_manager.queue_events(ancestor || resource, status.events) unless status.failed?
(rdb:1) n
[186, 195] in /home/vagrant/puppet/lib/puppet/transaction.rb
186 resource_status(resource).scheduled = true
187 apply(resource, ancestor)
188 end
189
190 # Check to see if there are any events queued for this resource
=> 191 event_manager.process_events(resource)
192 end
193
194 def failed?(resource)
195 s = resource_status(resource) and s.failed?
/home/vagrant/puppet/lib/puppet/transaction.rb:191
event_manager.process_events(resource)
(rdb:1) n
[304, 313] in /usr/lib/ruby/1.8/benchmark.rb
304 # Returns the elapsed real time used to execute the given block.
305 #
306 def realtime(&blk) # :yield:
307 r0 = Time.now
308 yield
=> 309 r1 = Time.now
310 r1.to_f - r0.to_f
311 end
312
313
/usr/lib/ruby/1.8/benchmark.rb:309
r1 = Time.now
(rdb:1) n
[305, 314] in /usr/lib/ruby/1.8/benchmark.rb
305 #
306 def realtime(&blk) # :yield:
307 r0 = Time.now
308 yield
309 r1 = Time.now
=> 310 r1.to_f - r0.to_f
311 end
312
313
314
/usr/lib/ruby/1.8/benchmark.rb:310
r1.to_f - r0.to_f
(rdb:1) n
[325, 334] in /home/vagrant/puppet/lib/puppet/util.rb
325 def thinmark
326 seconds = Benchmark.realtime {
327 yield
328 }
329
=> 330 seconds
331 end
332
333 module_function :memory, :thinmark
334
/home/vagrant/puppet/lib/puppet/util.rb:330
seconds
(rdb:1) n
[113, 122] in /home/vagrant/puppet/lib/puppet/transaction.rb
113 if resource.is_a?(Puppet::Type::Component)
114 Puppet.warning "Somehow left a component in the relationship graph"
115 else
116 resource.info "Starting to evaluate the resource" if Puppet[:evaltrace] and @catalog.host_config?
117 seconds = thinmark { block.call(resource) }
=> 118 resource.info "Evaluated in %0.2f seconds" % seconds if Puppet[:evaltrace] and @catalog.host_config?
119 end
120 end
121
122 Puppet.debug "Finishing transaction #{object_id}"
/home/vagrant/puppet/lib/puppet/transaction.rb:118
resource.info "Evaluated in %0.2f seconds" % seconds if Puppet[:evaltrace] and @catalog.host_config?
(rdb:1) n
[113, 122] in /home/vagrant/puppet/lib/puppet/transaction.rb
113 if resource.is_a?(Puppet::Type::Component)
114 Puppet.warning "Somehow left a component in the relationship graph"
115 else
116 resource.info "Starting to evaluate the resource" if Puppet[:evaltrace] and @catalog.host_config?
117 seconds = thinmark { block.call(resource) }
=> 118 resource.info "Evaluated in %0.2f seconds" % seconds if Puppet[:evaltrace] and @catalog.host_config?
119 end
120 end
121
122 Puppet.debug "Finishing transaction #{object_id}"
/home/vagrant/puppet/lib/puppet/transaction.rb:118
resource.info "Evaluated in %0.2f seconds" % seconds if Puppet[:evaltrace] and @catalog.host_config?
(rdb:1) n
[115, 124] in /home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb
115
116 pre_process.call(resource)
117
118 yield resource
119
=> 120 finish(resource)
121 else
122 deferred_resources << resource
123 end
124
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:120
finish(resource)
(rdb:1) n
[120, 129] in /home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb
120 finish(resource)
121 else
122 deferred_resources << resource
123 end
124
=> 125 if @ready.empty? and deferred_resources.any?
126 if made_progress
127 enqueue(*deferred_resources)
128 else
129 deferred_resources.each do |resource|
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:125
if @ready.empty? and deferred_resources.any?
(rdb:1) n
[120, 129] in /home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb
120 finish(resource)
121 else
122 deferred_resources << resource
123 end
124
=> 125 if @ready.empty? and deferred_resources.any?
126 if made_progress
127 enqueue(*deferred_resources)
128 else
129 deferred_resources.each do |resource|
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:125
if @ready.empty? and deferred_resources.any?
(rdb:1) n
[107, 116] in /home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb
107
108 enqueue_roots
109
110 deferred_resources = []
111
=> 112 while continue_while.call() && (resource = next_resource)
113 if resource.suitable?
114 made_progress = true
115
116 pre_process.call(resource)
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:112
while continue_while.call() && (resource = next_resource)
(rdb:1) n
[135, 144] in /home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb
135 made_progress = false
136 deferred_resources = []
137 end
138 end
139
=> 140 if !continue_while.call()
141 while (resource = next_resource)
142 canceled_resource_handler.call(resource)
143 finish(resource)
144 end
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:140
if !continue_while.call()
(rdb:1) n
[135, 144] in /home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb
135 made_progress = false
136 deferred_resources = []
137 end
138 end
139
=> 140 if !continue_while.call()
141 while (resource = next_resource)
142 canceled_resource_handler.call(resource)
143 finish(resource)
144 end
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:140
if !continue_while.call()
(rdb:1) n
[142, 151] in /home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb
142 canceled_resource_handler.call(resource)
143 finish(resource)
144 end
145 end
146
=> 147 teardown.call()
148 end
149
150 private
151
/home/vagrant/puppet/lib/puppet/graph/relationship_graph.rb:147
teardown.call()
(rdb:1) n
[117, 126] in /home/vagrant/puppet/lib/puppet/transaction.rb
117 seconds = thinmark { block.call(resource) }
118 resource.info "Evaluated in %0.2f seconds" % seconds if Puppet[:evaltrace] and @catalog.host_config?
119 end
120 end
121
=> 122 Puppet.debug "Finishing transaction #{object_id}"
123 end
124
125 # Wraps application run state check to flag need to interrupt processing
126 def stop_processing?
/home/vagrant/puppet/lib/puppet/transaction.rb:122
Puppet.debug "Finishing transaction #{object_id}"
(rdb:1) n
Debug: Finishing transaction 70170903175600
[150, 159] in /home/vagrant/puppet/lib/puppet/util/log.rb
150 else
151 newdestination(destination)
152 begin
153 yield
154 ensure
=> 155 close(destination)
156 end
157 end
158 end
159
/home/vagrant/puppet/lib/puppet/util/log.rb:155
close(destination)
(rdb:1) n
[168, 177] in /home/vagrant/puppet/lib/puppet/resource/catalog.rb
168 rescue => detail
169 Puppet.log_exception(detail, "Got an uncaught exception of type #{detail.class}: #{detail}")
170 ensure
171 # Don't try to store state unless we're a host config
172 # too recursive.
=> 173 Puppet::Util::Storage.store if host_config?
174 end
175
176 yield transaction if block_given?
177
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:173
Puppet::Util::Storage.store if host_config?
(rdb:1) n
[168, 177] in /home/vagrant/puppet/lib/puppet/resource/catalog.rb
168 rescue => detail
169 Puppet.log_exception(detail, "Got an uncaught exception of type #{detail.class}: #{detail}")
170 ensure
171 # Don't try to store state unless we're a host config
172 # too recursive.
=> 173 Puppet::Util::Storage.store if host_config?
174 end
175
176 yield transaction if block_given?
177
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:173
Puppet::Util::Storage.store if host_config?
(rdb:1) n
Debug: Storing state
Debug: Stored state in 0.01 seconds
[171, 180] in /home/vagrant/puppet/lib/puppet/resource/catalog.rb
171 # Don't try to store state unless we're a host config
172 # too recursive.
173 Puppet::Util::Storage.store if host_config?
174 end
175
=> 176 yield transaction if block_given?
177
178 transaction
179 end
180
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:176
yield transaction if block_given?
(rdb:1) n
[171, 180] in /home/vagrant/puppet/lib/puppet/resource/catalog.rb
171 # Don't try to store state unless we're a host config
172 # too recursive.
173 Puppet::Util::Storage.store if host_config?
174 end
175
=> 176 yield transaction if block_given?
177
178 transaction
179 end
180
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:176
yield transaction if block_given?
(rdb:1) n
[173, 182] in /home/vagrant/puppet/lib/puppet/resource/catalog.rb
173 Puppet::Util::Storage.store if host_config?
174 end
175
176 yield transaction if block_given?
177
=> 178 transaction
179 end
180
181 # The relationship_graph form of the catalog. This contains all of the
182 # dependency edges that are used for determining order.
/home/vagrant/puppet/lib/puppet/resource/catalog.rb:178
transaction
(rdb:1) n
[38, 47] in /home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb
38
39 catalog = Puppet::Resource::Catalog.new
40 catalog.add_resource ral_res
41 transaction = catalog.apply
42
=> 43 [ral_res.to_resource, transaction.report]
44 end
45
46 private
47
/home/vagrant/puppet/lib/puppet/indirector/resource/ral.rb:43
[ral_res.to_resource, transaction.report]
(rdb:1) n
[281, 290] in /home/vagrant/puppet/lib/puppet/indirector/indirection.rb
281 terminus = prepare(request)
282
283 result = terminus.save(request)
284
285 # If caching is enabled, save our document there
=> 286 cache.save(request) if cache?
287
288 result
289 end
290
/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:286
cache.save(request) if cache?
(rdb:1) n
[281, 290] in /home/vagrant/puppet/lib/puppet/indirector/indirection.rb
281 terminus = prepare(request)
282
283 result = terminus.save(request)
284
285 # If caching is enabled, save our document there
=> 286 cache.save(request) if cache?
287
288 result
289 end
290
/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:286
cache.save(request) if cache?
(rdb:1) n
[283, 292] in /home/vagrant/puppet/lib/puppet/indirector/indirection.rb
283 result = terminus.save(request)
284
285 # If caching is enabled, save our document there
286 cache.save(request) if cache?
287
=> 288 result
289 end
290
291 private
292
/home/vagrant/puppet/lib/puppet/indirector/indirection.rb:288
result
(rdb:1) n
[215, 224] in /home/vagrant/puppet/lib/puppet/application/resource.rb
215 else
216 resource = Puppet::Resource.new( type, name, :parameters => params )
217
218 # save returns [resource that was saved, transaction log from applying the resource]
219 save_result = Puppet::Resource.indirection.save(resource, key)
=> 220 [ save_result.first ]
221 end
222 else
223 if type == "file"
224 raise "Listing all file instances is not supported. Please specify a file or directory, e.g. puppet resource file /etc"
/home/vagrant/puppet/lib/puppet/application/resource.rb:220
[ save_result.first ]
(rdb:1) n
[139, 148] in /home/vagrant/puppet/lib/puppet/application/resource.rb
139 type, name, params = parse_args(command_line.args)
140
141 raise "You cannot edit a remote host" if options[:edit] and @host
142
143 resources = find_or_save_resources(type, name, params)
=> 144 text = resources.
145 map { |resource| resource.prune_parameters(:parameters_to_include => @extra_params).to_manifest }.
146 join("\n")
147
148 options[:edit] ?
/home/vagrant/puppet/lib/puppet/application/resource.rb:144
text = resources.
(rdb:1) n
[143, 152] in /home/vagrant/puppet/lib/puppet/application/resource.rb
143 resources = find_or_save_resources(type, name, params)
144 text = resources.
145 map { |resource| resource.prune_parameters(:parameters_to_include => @extra_params).to_manifest }.
146 join("\n")
147
=> 148 options[:edit] ?
149 handle_editing(text) :
150 (puts text)
151 end
152
/home/vagrant/puppet/lib/puppet/application/resource.rb:148
options[:edit] ?
(rdb:1) n
[143, 152] in /home/vagrant/puppet/lib/puppet/application/resource.rb
143 resources = find_or_save_resources(type, name, params)
144 text = resources.
145 map { |resource| resource.prune_parameters(:parameters_to_include => @extra_params).to_manifest }.
146 join("\n")
147
=> 148 options[:edit] ?
149 handle_editing(text) :
150 (puts text)
151 end
152
/home/vagrant/puppet/lib/puppet/application/resource.rb:148
options[:edit] ?
(rdb:1) n
[145, 154] in /home/vagrant/puppet/lib/puppet/application/resource.rb
145 map { |resource| resource.prune_parameters(:parameters_to_include => @extra_params).to_manifest }.
146 join("\n")
147
148 options[:edit] ?
149 handle_editing(text) :
=> 150 (puts text)
151 end
152
153 def setup
154 Puppet::Util::Log.newdestination(:console)
/home/vagrant/puppet/lib/puppet/application/resource.rb:150
(puts text)
(rdb:1) n
package { 'bash':
ensure => '4.1.2-15.el6_4',
}
[470, 479] in /home/vagrant/puppet/lib/puppet/application.rb
470
471
472 def plugin_hook(step,&block)
473 Puppet::Plugins.send("before_application_#{step}",:application_object => self)
474 x = yield
=> 475 Puppet::Plugins.send("after_application_#{step}",:application_object => self, :return_value => x)
476 x
477 end
478 private :plugin_hook
479 end
/home/vagrant/puppet/lib/puppet/application.rb:475
Puppet::Plugins.send("after_application_#{step}",:application_object => self, :return_value => x)
(rdb:1) n
[471, 480] in /home/vagrant/puppet/lib/puppet/application.rb
471
472 def plugin_hook(step,&block)
473 Puppet::Plugins.send("before_application_#{step}",:application_object => self)
474 x = yield
475 Puppet::Plugins.send("after_application_#{step}",:application_object => self, :return_value => x)
=> 476 x
477 end
478 private :plugin_hook
479 end
480 end
/home/vagrant/puppet/lib/puppet/application.rb:476
x
(rdb:1) n
[48, 55] in /home/vagrant/puppet/lib/puppet/context.rb
48 def override(bindings, description = "", &block)
49 push(bindings, description)
50
51 yield
52 ensure
=> 53 pop
54 end
55 end
/home/vagrant/puppet/lib/puppet/context.rb:53
pop
(rdb:1) n
[104, 113] in /usr/lib/ruby/gems/1.8/gems/linecache-0.46/lib/linecache.rb
104 def remove_script_temps
105 @@script2file.values.each do |filename|
106 File.unlink(filename) if File.exist?(filename)
107 end
108 end
=> 109 at_exit { remove_script_temps }
110
111
112 # Clear the file cache entirely.
113 def clear_file_cache(filename=nil)
/usr/lib/ruby/gems/1.8/gems/linecache-0.46/lib/linecache.rb:109
at_exit { remove_script_temps }
(rdb:1) n
[157, 166] in /usr/lib/ruby/1.8/tempfile.rb
157
158 class << self
159 def callback(data) # :nodoc:
160 pid = $$
161 lambda{
=> 162 if pid == $$
163 path, tmpfile, cleanlist = *data
164
165 print "removing ", path, "..." if $DEBUG
166
/usr/lib/ruby/1.8/tempfile.rb:162
if pid == $$
(rdb:1) n
[157, 166] in /usr/lib/ruby/1.8/tempfile.rb
157
158 class << self
159 def callback(data) # :nodoc:
160 pid = $$
161 lambda{
=> 162 if pid == $$
163 path, tmpfile, cleanlist = *data
164
165 print "removing ", path, "..." if $DEBUG
166
/usr/lib/ruby/1.8/tempfile.rb:162
if pid == $$
(rdb:1) q
Really quit? (y/n) y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.