Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Cannot Reproduce
-
PUP 4.8.2
-
None
-
Platform Core
-
Needs Assessment
-
Needs Assessment
Description
After creating a new module using "puppet module generate tristan-test" (for example) and installing the gems with bundler ("cd test && bundle install"), lots of puppet functionality seems to break.
For example, I cannot run unit tests with "rake spec", every single test fails with the same error message:
NoMethodError:
undefined method `_' for #<Puppet::Resource::Catalog::Compiler:0x0055c17a1290d0>
- /var/lib/gems/2.3.0/gems/puppet-5.0.1/lib/puppet/indirector/catalog/compiler.rb:68:in `initialize'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/adapters.rb:83:in `catalog'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/adapters.rb:161:in `catalog'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/support.rb:366:in `build_catalog_without_cache'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/support.rb:381:in `block in build_catalog'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/cache.rb:17:in `get'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/support.rb:380:in `build_catalog'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/support.rb:87:in `block in load_catalogue'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/support.rb:331:in `with_vardir'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/support.rb:81:in `load_catalogue'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/example/class_example_group.rb:7:in `catalogue'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/support.rb:11:in `block in subject'
- /var/lib/gems/2.3.0/gems/rspec-puppet-2.6.4/lib/rspec-puppet/matchers/create_generic.rb:84:in `matches?'
- ./spec/classes/init_spec.rb:4:in `block (3 levels) in <top (required)>'
Additionally, some of puppet's own commands seem to also break. For example, if I try to create a new puppet module after installing the gems (using "puppet module generate tristan-test2"), I get the following error:
Error: Could not autoload puppet/face/module/list: undefined method `_' for #<Puppet::Interface::ActionBuilder:0x0055d341742b78>
Error: Could not parse application options: Could not autoload puppet/face/module/list: undefined method `_' for #<Puppet::Interface::ActionBuilder:0x0055d341742b78>