Issue #3379 has been updated by Markus Roberts.

Status changed from Available In Testing Branch to Ready for Checkin

The patch has been applied in master and is ready for checkin for 0.25.5
----------------------------------------
Bug #3379: augeas set cmd fails
http://projects.reductivelabs.com/issues/3379

Author: Peter Meier
Status: Ready for Checkin
Priority: Normal
Assigned to: 
Category: augeas
Target version: 0.25.5
Affected version: 0.25.4
Keywords: 
Branch: http://github.com/bkearney/puppet/ticket/0.25.x/3379


I installed latest 0.25.x with the patch for #2929 on top to test issues with 
it. I encountered another issue with augeas, which I report here:

Given the following manifest:

<pre>
# cat foo2.pp 
  augeas{'grub_first_default':
    context => '/files/etc/grub.conf',
    changes => 'set default 0',
  }
</pre>

we encounter the following error:

<pre>
# puppet --debug --trace foo2.pp 
info: Loading facts in vserver
info: Loading facts in selinux
info: Loading facts in acpi_available
info: Loading facts in mysql
info: Loading facts in sshkeys
info: Loading facts in interfaces
info: Loading facts in xen
info: Loading facts in configured_ntp_servers
debug: Creating default schedules
debug: Failed to load library 'selinux' for feature 'selinux'
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does 
not exist
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist
debug: Failed to load library 'ldap' for feature 'ldap'
debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring 
File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring 
File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/ssl/csr_durango.be1.glei.ch.pem]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/public_keys/durango.be1.glei.ch.pem]: 
Autorequiring File[/var/lib/puppet/ssl/public_keys]
debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/private_keys/durango.be1.glei.ch.pem]: 
Autorequiring File[/var/lib/puppet/ssl/private_keys]
debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state/graphs]: Autorequiring 
File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/certs/durango.be1.glei.ch.pem]: Autorequiring 
File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/ssl/private]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/state/classes.txt]: Autorequiring 
File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: Finishing transaction 23456251737940 with 0 changes
info: Applying configuration version '1268785832'
debug: Augeas[grub_first_default](provider=augeas): Opening augeas with root /, 
lens path , flags 0
debug: Augeas[grub_first_default](provider=augeas): Augeas version 0.7.0 is 
installed
debug: Augeas[grub_first_default](provider=augeas): Will attempt to save and 
only run if files changed
debug: Augeas[grub_first_default](provider=augeas): sending command 'set' with 
params ["/files/etc/grub.conf/default", "0"]
debug: Augeas[grub_first_default](provider=augeas): Closed the augeas connection
/usr/lib/ruby/site_ruby/1.8/puppet/util/errors.rb:51:in `fail'
/usr/lib/ruby/site_ruby/1.8/puppet/provider/augeas/augeas.rb:353:in 
`do_execute_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/provider/augeas/augeas.rb:318:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/provider/augeas/augeas.rb:318:in 
`do_execute_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/provider/augeas/augeas.rb:277:in 
`need_to_run?'
/usr/lib/ruby/site_ruby/1.8/puppet/type/augeas.rb:151:in `retrieve'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:817:in `currentpropvalues'
/usr/lib/ruby/site_ruby/1.8/puppet/util/posix.rb:117:in `inject'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:809:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:809:in `inject'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:809:in `currentpropvalues'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:797:in `retrieve'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:726:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:62:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:251:in 
`eval_children_and_apply_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:418:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:250:in 
`eval_children_and_apply_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:207:in `eval_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:296:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:418:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:295:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:289:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:289:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:142:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/application/puppet.rb:132:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/bin/puppet:71
err: //Augeas[grub_first_default]: Failed to retrieve current state of 
resource: Error sending command 'set' with params 
["/files/etc/grub.conf/default", "0"]/undefined local variable or method `e' 
for #<Puppet::Type::Augeas::ProviderAugeas:0x2aaaab1ad238>
debug: Finishing transaction 23456251076180 with 0 changes
</pre>

Downgrading to 0.25.4 makes the error go away. I assign that to Bryan as I 
suspect that commit:8a3a2056c82c7d0313a052fef00d3a8f039fe0db is causing that 
due to #2327. Sorry if I'm wrong.


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

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to