Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4450

Cannot load 'provider/network_route/routes.rb'

    Details

    • Type: Bug
    • Status: Needs Information
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 3.7.5, PUP 3.8.4, PUP 4.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      RHEL6 + Puppet SC 1
      Ubuntu 14.04 + Puppetmaster 3.7.5 / 3.8.4 on Apache2/Passenger

    • Template:
    • Team:
      Coremunity

      Description

      I have a Puppet codebase that runs fine with 3.7 + webrick. Under Puppet 4 it gives the following error:

      # /opt/puppetlabs/bin/puppet agent -t --server `hostname` --noop
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Virtual Query, Could not autoload puppet/type/network_route: Could not autoload puppet/provider/network_route/routes: no such file to load -- puppetx/filemapper at /var/puppet/environments/production/modules/dec/manifests/profiles/soe_network.pp:25:43 on node host.domain.com
      Warning: Not using cache on failed catalog
      Error: Could not retrieve catalog; skipping run

      The mentioned code is as follows:

      create_resources(network_config, hiera_hash('network::interfaces', {}))
      create_resources(network_route, hiera_hash('network::routes', {}))
      

      Using the following Puppet Forge module: https://github.com/puppet-community/puppet-network (which depends on https://forge.puppetlabs.com/adrien/filemapper).

      Running against `puppetserver foreground --debug` the error (and giant stack trace) appears multiple times in the file, here's the first occurrence:

      2015-04-22 11:21:28,078 ERROR [qtp855067818-27] [puppet-server] Puppet Could not autoload puppet/provider/network_route/routes: no such file to load -- puppetx/filemapper
      org/jruby/RubyKernel.java:1071:in `require'
      /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
      /var/puppet/environments/production/modules/network/lib/puppet/provider/network_route/routes.rb:2:in `(root)'
      org/jruby/RubyKernel.java:1087:in `load'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:1:in `(root)'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:59:in `load_file'
      org/jruby/RubyArray.java:1613:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:74:in `loadall'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:72:in `loadall'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:203:in `loadall'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/metatype/manager.rb:116:in `newtype'
      org/jruby/RubyKernel.java:1087:in `load'
      /var/puppet/environments/production/modules/network/lib/puppet/type/network_route.rb:3:in `(root)'
      

      I can post the full log if required.

      Commenting out all references to these types in my .pp files makes the problem go away.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  alex.jurkiewicz Alex Jurkiewicz
                • Votes:
                  8 Vote for this issue
                  Watchers:
                  16 Start watching this issue

                  Dates

                  • Created:
                    Updated: