Puppet: System Administration Automated

Support

Ticket #1101 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

0.24.2rc1 puppetrun throws an error about "uninitialized constant"

Reported by: alden Assigned to: community
Priority: normal Milestone:
Component: executables Version:
Severity: normal Keywords: puppetrun
Cc: Triage Stage: Unreviewed
Attached Patches: None Complexity: Unknown

Description

I'm trying to get puppetrun to work on 0.24.2rc1, but I get:

puppetrun --confdir=/Library/Puppet/Versioned/Client/config/puppet.network --certname=2FFC879B-3CAE-470C-AC3B-93C09A529CE3.uuid --host=temp-linux-92-158.math.ohio-state.edu --ignoreschedules --trace
Failed to load ruby LDAP library. LDAP functionality will not be available
warning: Individual config files are deprecated; remove /Library/Puppet/Versioned/Client/config/puppet.network/puppet.conf and use puppet.conf
/Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/network/client.rb:62:in `handler': uninitialized constant Puppet::Network::Handler (NameError)
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/network/client/proxy.rb:6:in `mkmethods'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/network/client/runner.rb:2
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/util/autoload.rb:77:in `load'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/util/autoload.rb:77:in `load'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/util/autoload.rb:132:in `eachdir'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/util/autoload.rb:130:in `each'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/util/autoload.rb:130:in `eachdir'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/util/autoload.rb:73:in `load'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/util/subclass_loader.rb:36:in `client'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/util/subclass_loader.rb:67:in `send'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/lib/puppet/util/subclass_loader.rb:67:in `method_missing'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/bin/puppetrun:347
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/bin/puppetrun:339:in `fork'
        from /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.24.x/bin/puppetrun:339
temp-linux-92-158.math.ohio-state.edu finished with exit code 1
Failed: temp-linux-92-158.math.ohio-state.edu

This is on a CentOS 5.1 box running ruby 1.8.5

ps I'm also wondering why I'm getting the "warning: Individual config files are deprecated" error when I only have a puppet.conf. None of the other binaries (puppetd, puppetmasterd) are throwing that error.

Change History

02/27/08 21:03:24 changed by alden

Thanks to shadoi on #puppet, adding the following to puppetrun fixes it:

require 'puppet/network/handler'

02/28/08 21:49:45 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [82b02b9].