Issue #16772 has been updated by Dominic Cleal.

Status changed from Investigating to Needs More Information

I can't reproduce this I'm afraid, using libaugeas-ruby 0.3.0 as well:

    root@ubulucid:~/augeas# puppet apply grub.pp 
    /Stage[main]//Augeas[grub-serial]/returns: executed successfully
    Finished catalog run in 0.70 seconds
    root@ubulucid:~/augeas# tail -4 /etc/default/grub
    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"
    GRUB_TERMINAL='console serial'
    GRUB_SERIAL_COMMAND='serial --speed=115200 --unit=0 --word=8 --parity=no 
--stop=1'

Could you repeat the following please?

    # ruby --version
    ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
    # ruby -raugeas -e 'puts Augeas::NO_LOAD'
    32
    # dpkg -l \*augeas\* puppet
    Desired=Unknown/Install/Remove/Purge/Hold
    | 
Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                         Version                      Description
    
+++-============================-============================-========================================================================
    ii  augeas-lenses                0.7.0-1ubuntu1               Set of lenses 
needed by libaugeas0 to parse config files
    ii  augeas-tools                 0.7.0-1ubuntu1               Augeas 
command line tools
    ii  libaugeas-ruby               0.3.0-1.1ubuntu1~lucid1~ppa1 Augeas 
bindings for the Ruby language
    ii  libaugeas-ruby1.8            0.3.0-1.1ubuntu1~lucid1~ppa1 Augeas 
bindings for the Ruby language
    un  libaugeas-ruby1.9            <none>                       (no 
description available)
    ii  libaugeas0                   0.7.0-1ubuntu1               The augeas 
configuration editing library and API
    ii  puppet                       3.0.0-1puppetlabs1           Centralized 
configuration management - agent startup and compatibility s


----------------------------------------
Bug #16772: Augeas resource on Puppet 3.0.0 gives "uninitialized constant 
Augeas::NO_LOAD"
https://projects.puppetlabs.com/issues/16772#change-72851

Author: eric sorenson
Status: Needs More Information
Priority: Normal
Assignee: 
Category: 
Target version: 3.0.1
Affected Puppet version: 3.0.0
Keywords: lucid augeas telly
Branch: 


>From mailing list:


My manifests used to work with 2.7.19 but after upgrading to 3.0.0 I 
keep getting: 

`Error: /Stage[main]/.../Augeas[...]: Could not evaluate: uninitialized  
constant Augeas::NO_LOAD `

Anyone else had and solved this problem? On precise I just get: 

`Warning: Augeas[...](provider=augeas): Loading failed for one or more files, 
see debug for /augeas//error output `


<pre>
--trace gives:

Error: /Stage[main]/Grub::Server/Augeas[grub-serial]: Could not evaluate: 
uninitialized constant Augeas::NO_LOAD
/usr/lib/ruby/vendor_ruby/puppet/provider/augeas/augeas.rb:152:in `open_augeas'
/usr/lib/ruby/vendor_ruby/puppet/provider/augeas/augeas.rb:342:in `need_to_run?'
/usr/lib/ruby/vendor_ruby/puppet/type/augeas.rb:205:in `retrieve'
/usr/lib/ruby/vendor_ruby/puppet/type.rb:685:in `retrieve'
/usr/lib/ruby/vendor_ruby/puppet/type.rb:680:in `each'
/usr/lib/ruby/vendor_ruby/puppet/type.rb:680:in `retrieve'
/usr/lib/ruby/vendor_ruby/puppet/type.rb:693:in `retrieve_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:32:in 
`perform_changes'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:133:in 
`evaluate'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:49:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:84:in `eval_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:348:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:347:in `thinmark'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:383:in `traverse'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:99:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:144:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:122:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:179:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:178:in `benchmark'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:121:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:179:in `run'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:45
/usr/lib/ruby/vendor_ruby/puppet/agent/locker.rb:20:in `lock'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:45
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:45
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:119:in `with_client'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:42
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:84:in `run_in_fork'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:41
/usr/lib/ruby/vendor_ruby/puppet/application.rb:175:in `call'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:175:in `controlled_run'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:39:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:338:in `onetime'
/usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:311:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:346:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:438:in `plugin_hook'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:346:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:500:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:346:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:76:in `execute'
/usr/bin/puppet:10

And the augeas definition from the manifest is:

    $grub_console = 'console serial'

    augeas { 'grub-serial':
        context => '/files/etc/default/grub',
        changes => ["set GRUB_TERMINAL \"'$grub_console'\"",
                    'set GRUB_SERIAL_COMMAND "\'serial --speed=115200 --unit=0 
--word=8 --parity=no --stop=1\'"',
                    'set GRUB_CMDLINE_LINUX_DEFAULT ""',
                    'set GRUB_CMDLINE_LINUX "\'console=tty1 
console=ttyS0,115200n8\'"'],
    }
</pre>



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

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

Reply via email to