Issue #2590 has been updated by Sharif Nassar.

I was testing upgrading a dev puppetmaster from puppet 0.24.8 to 0.25.4 this 
weekend, and had the same issues.
<pre>
debug: Calling fileserver.list
err: /File[/var/puppet/lib]: Failed to generate additional resources during 
transaction: None of the provided sources existdebug: Calling 
fileserver.describe
err: /File[/var/puppet/lib]: Failed to retrieve current state of resource: No 
specified source was found from puppet://pm.sharif.example.com/plugins
[SNIP]
err: Could not retrieve catalog: Could not find class server at 
/etc/puppet/manifests/nodes.pp:25 on node lenny64.sharif.example.com
</pre>
    
Relevant info:
Apache + passenger 2.2.5
puppet 0.25.4 from Debian backports (yes this is all very old, but it's what I 
had already downloaded when I was playing on the airplane) 

I used the boilerplate config.ru in the distribution.
I tried the work around of adding **ARGV << "--trace"** in config.ru and 
suddenly it all works.

/etc/puppet/puppet.conf on the puppetmaster:

<pre>
[main]
  factpath = $vardir/lib/facter
  logdir = /var/log/puppet
  pidfile = /var/run/puppet/puppetd.pid
  pluginsync = true
  puppetdlog = $logdir/puppetd.log
  puppetport = 8139
  runinterval = 14400
  splay = true
  server = pm.sharif.example.com
  rundir = /var/run/puppet
  vardir = /var/lib/puppet
  ssldir = /var/lib/puppet/ssl
  verbose = true
  debug = true

[puppetmasterd]
  modulepath = 
/var/lib/puppet/modules:/etc/puppet/manifests/modules:/etc/puppet/manifests/modules/base:/etc/puppet/manifests/modules/site:/etc/puppet/manifests/modules/deploy
  reports = log
  ssl_client_header = SSL_CLIENT_S_DN
  ssl_client_verify_header = SSL_CLIENT_VERIFY
  templatedir = /var/lib/puppet/templates
  pidfile = /var/run/puppet/puppetmasterd.pid
</pre>

----------------------------------------
Bug #2590: --modulepath ignored
http://projects.puppetlabs.com/issues/2590

Author: Thomas Bellman
Status: Needs more information
Priority: High
Assigned to: Luke Kanies
Category: 
Target version: queued
Affected version: development
Keywords: 
Branch: 


It seems that at least the stand-alone 'puppet' executable
ignores --modulepath.  Given the following minimal manifest
set:

<pre>
    $ pwd
    /config/0.25
    $ find . -type f -print
    ./manifests/site.pp
    ./modules/testmodule/manifests/init.pp

    $ cat manifests/site.pp
    import "testmodule"

    node default
    {
        include moduleclass
    }

    $ cat modules/testmodule/manifests/init.pp
    class moduleclass
    {
        file {
            "/tmp/testfile":
                ensure => file, content => "${puppetversion}\n";
        }
    }
</pre>

I get the following results:

<pre>
    # puppet --modulepath=/config/0.25/modules manifests/site.pp
    Could not parse for environment production: No file(s) found for
    import of 'testmodule' at /config/0.25/manifests/site.pp:3
</pre>

This works as expected in 0.24.8.  Bisecting shows that it was
introduced with commit d397f8d1d1092067f7ca52449ce9af63f02f44e1
(Fixing #2574 - autoloading finds plugins in modules) on
2009-09-01 01:01:17.

I have only tried the stand-alone puppet program, not the puppetd
/ puppetmasterd combination.


Adding --debug --trace I get the following traceback:

<pre>
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:172:in `import'
    grammar.ra:639:in `_reduce_156'
    grammar.ra:638:in `each'
    grammar.ra:638:in `_reduce_156'
    /usr/lib/ruby/site_ruby/1.8/facter/util/ip.rb:141:in `_racc_yyparse_c'
    /usr/lib/ruby/site_ruby/1.8/facter/util/ip.rb:141:in `catch'
    /usr/lib/ruby/site_ruby/1.8/facter/util/ip.rb:141:in `_racc_yyparse_c'
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/lexer.rb:446:in `scan'
    /usr/lib/ruby/1.8/racc/parser.rb:152:in `_racc_yyparse_c'
    /usr/lib/ruby/1.8/racc/parser.rb:152:in `__send__'
    /usr/lib/ruby/1.8/racc/parser.rb:152:in `yyparse'
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:430:in `parse'
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/interpreter.rb:71:in 
`create_parser'
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/interpreter.rb:54:in `parser'
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/interpreter.rb:27:in `compile'
    /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:88:in 
`compile'
    /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:181:in `benchmark'
    /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:86:in 
`compile'
    /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:35:in 
`find'
    /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:198:in `find'
    /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
    /usr/lib/ruby/site_ruby/1.8/puppet/application/puppet.rb:116: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
    Could not parse for environment production: No file(s) found for import of 
'testmodule' at /config/0.25/manifests/site.pp:3
</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