Skip to content

Instantly share code, notes, and snippets.

@fatmcgav
Created November 25, 2013 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatmcgav/7641961 to your computer and use it in GitHub Desktop.
Save fatmcgav/7641961 to your computer and use it in GitHub Desktop.
Puppet apply debug output for installing package without an existing versionlock entry.
$ sudo puppet apply -e "package {'dos2unix': ensure => latest }" -d
...
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/oracle_clones.rb
Info: Loading facts in /var/lib/puppet/lib/facter/oracle_db_homes.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/smo_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/oracle_sids.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Debug: Loaded state in 0.01 seconds
Info: Applying configuration version '1385388121'
Debug: Prefetching yum resources for package
Debug: Executing '/bin/rpm --version'
Debug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH} :DESC: %{SUMMARY}\n''
Debug: Executing '/usr/bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py'
Debug: Executing '/bin/rpm -q dos2unix --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH} :DESC: %{SUMMARY}\n'
Debug: Package[dos2unix](provider=yum): Ensuring => latest
Debug: Got to yum.unhold...
Debug: Executing '/usr/bin/yum versionlock delete *dos2unix*'
Error: Could not update: Execution of '/usr/bin/yum versionlock delete *dos2unix*' returned 1: Loaded plugins: fastestmirror, versionlock
Error: Error: versionlock delete: no matches
Error: /Stage[main]//Package[dos2unix]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/yum versionlock delete *dos2unix*' returned 1: Loaded plugins: fastestmirror, versionlock
Error: Error: versionlock delete: no matches
Debug: Finishing transaction 70292897174900
Debug: Storing state
Debug: Stored state in 0.04 seconds
Notice: Finished catalog run in 3.37 seconds
Debug: Using settings: adding file resource 'rrddir': 'File[/var/lib/puppet/rrd]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/rrd"}'
Debug: /File[/var/lib/puppet/rrd]/seluser: Found seluser default 'system_u' for /var/lib/puppet/rrd
Debug: /File[/var/lib/puppet/rrd]/selrole: Found selrole default 'object_r' for /var/lib/puppet/rrd
Debug: /File[/var/lib/puppet/rrd]/seltype: Found seltype default 'puppet_var_lib_t' for /var/lib/puppet/rrd
Debug: /File[/var/lib/puppet/rrd]/selrange: Found selrange default 's0' for /var/lib/puppet/rrd
Debug: Finishing transaction 70292895904140
Debug: Received report to process from puppet.test.dt0388
Debug: Processing report from puppet.test.dt0388 with processor Puppet::Reports::Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment