Good day, After having lurked for a while I''ve decided to actually start using puppet starting on my small home network. I''ve been following : http://reductivelabs.com/trac/puppet/wiki/InstallationGuide and :- http://www.howtoforge.com/installing_puppet_on_ubuntu to test puppet on 2 hosts, librarian running the puppetmasterd and mortvm. Unfortunately, I didn''t get very far; whilst trying to obtain a cert for mortvm I''ve received the following errors :- adrian@mort:~$ sudo puppetd --server librarian --waitforcert 60 --test Could not autoload "/usr/lib/ruby/1.8/puppet/provider/host/parsed.rb": undefined method `set_options'' for #<Puppet::Util::FileParsing::FileRecord:0xb76cb684 @type=:text> Could not autoload "/usr/lib/ruby/1.8/puppet/provider/mount/parsed.rb": undefined method `set_options'' for #<Puppet::Util::FileParsing::FileRecord:0xb76a7bd0 @type=:text> Could not autoload "/usr/lib/ruby/1.8/puppet/provider/sshkey/parsed.rb": undefined method `set_options'' for #<Puppet::Util::FileParsing::FileRecord:0xb76a0da8 @type=:text> Could not autoload "/usr/lib/ruby/1.8/puppet/provider/cron/crontab.rb": undefined method `set_options'' for #<Puppet::Util::FileParsing::FileRecord:0xb7696e5c @type=:text> Could not autoload "/usr/lib/ruby/1.8/puppet/provider/package/fink.rb": undefined method `has_feature'' for Puppet::Type::Package::ProviderFink:Class Could not autoload "/usr/lib/ruby/1.8/puppet/provider/package/rug.rb": undefined method `has_feature'' for Puppet::Type::Package::ProviderRug:Class /usr/local/lib/site_ruby/1.8/puppet/provider.rb:52: warning: multiple values for a block parameter (2 for 1) from /usr/lib/ruby/1.8/puppet/provider/package/urpmi.rb:7 Could not autoload "/usr/lib/ruby/1.8/puppet/provider/package/urpmi.rb": can''t convert Array into String Could not autoload "/usr/lib/ruby/1.8/puppet/provider/package/aptrpm.rb": undefined method `has_feature'' for Puppet::Type::Package::ProviderAptrpm:Class Could not autoload "/usr/lib/ruby/1.8/puppet/provider/user/directoryservice.rb": undefined method `has_feature'' for Puppet::Type::User::ProviderDirectoryservice:Class /usr/lib/ruby/1.8/puppet/util/subclass_loader.rb:22:in `handle_subclasses'': uninitialized constant Puppet::Util::Autoload (NameError) from /usr/lib/ruby/1.8/puppet/network/client.rb:42 from /usr/sbin/puppetd:159 This is with the following packages (downloaded from debian sid) :- ii facter 1.3.8-1 a library for retrieving facts from operating systems ii libopenssl-ruby 1.0.0+ruby1.8.2-1 OpenSSL interface for Ruby ii libopenssl-ruby1.8 1.8.4-5ubuntu1.2 OpenSSL interface for Ruby 1.8 ii libshadow-ruby1.8 1.4.1-7 Interface of shadow password for Ruby 1.8 ii libxmlrpc-ruby 1.8.2-1 XML-RPC support for Ruby ii puppet 0.23.2-10 centralised configuration management for networks ii ruby 1.8.2-1 An interpreter of object-oriented scripting language Ruby ii ruby1.8 1.8.4-5ubuntu1.2 Interpreter of object-oriented scripting language Ruby 1.8 I''ve just tested this on a Ubuntu feisty host and it doesn''t give this error so it would seem to indicate some problems with (presumably newer versions of) puppet on Ubuntu edgy. Can anyone else confirm (or deny) this before I report a bug. Sincerely, Adrian Phillips -- Who really wrote the works of William Shakespeare ? http://www.pbs.org/wgbh/pages/frontline/shakespeare/
On Sun, Sep 30, 2007 at 02:12:20PM +0200, Adrian Phillips wrote:> Unfortunately, I didn''t get very far; whilst trying to obtain a cert > for mortvm I''ve received the following errors :- > > adrian@mort:~$ sudo puppetd --server librarian --waitforcert 60 --test > Could not autoload "/usr/lib/ruby/1.8/puppet/provider/host/parsed.rb": > undefined method `set_options'' for > #<Puppet::Util::FileParsing::FileRecord:0xb76cb684 @type=:text>That is a *weird* error. It''s almost as if there''s two completely separate installations of Puppet fighting each other. Is this a clean Edgy install that''s just had the Puppet packages installed on top, or one that''s perhaps been experimented on before? Try running ''find / -name puppetd'' and ''find / -name methodhelper.rb'' and see if you get more than one result for either of those. Also, try hard-coding the path to puppetd (/usr/sbin/puppetd) when you''re running it on the command line and see if that fixes the problem (since it''s using the packaged files for the libraries). I''ve got Puppet running on Dapper and Edgy boxes, and I''ve also seen reports from others that it''s working on Edgy. PEBKAC seems the most likely option at this stage. - Matt -- "I''m tempted to try Gentoo, but then I learned that its installer is in Python, and, well, a base Python install on my system is something like fifty megabytes (for what? oh, right, we NEED four XML libraries, I forgot)." -- Dave Brown, ASR
>>>>> "Matt" == Matthew Palmer <mpalmer@hezmatt.org> writes:Matt> On Sun, Sep 30, 2007 at 02:12:20PM +0200, Adrian Phillips Matt> wrote: Matt> That is a *weird* error. It''s almost as if there''s two Matt> completely separate installations of Puppet fighting each <snip> Matt> Try running ''find / -name puppetd'' and ''find / -name Matt> methodhelper.rb'' and see if you get more than one result for Ah, that did it :- adrian@mort:~$ sudo find /usr/ -name methodhelper.rb /usr/lib/ruby/1.8/puppet/util/methodhelper.rb /usr/local/lib/site_ruby/1.8/puppet/util/methodhelper.rb adrian@mort:~$ ls -la /usr/local/lib/site_ruby/1.8/ total 53 drwxrwsr-x 5 root staff 192 Dec 9 2006 . drwxrwsr-x 3 root staff 72 Jul 28 2006 .. drwxr-xr-x 2 dhcp adrian 112 Sep 22 2006 facter -rw-r--r-- 1 dhcp adrian 29594 Sep 22 2006 facter.rb drwxrwsr-x 2 root staff 48 Dec 9 2006 i486-linux drwxr-xr-x 13 dhcp adrian 1176 Sep 22 2006 puppet -rw-r--r-- 1 dhcp adrian 17346 Sep 22 2006 puppet.rb I obviously started testing puppet just over a year ago and had not progressed very far. I had completely forgot about that. Anyway, thanks for the help. Sincerely, Adrian Phillips -- Who really wrote the works of William Shakespeare ? http://www.pbs.org/wgbh/pages/frontline/shakespeare/