Actions
Bug #16259
closedkafo-export-params fails: uninitialized constant Kafo::ParserCacheReader::PARSER_CACHE_VERSION
Description
Since #16230, kafo-export-params fails with the following error when building in parsercache format:
03:28:34 /usr/bin/kafo-export-params -c config/foreman.yaml -f parsercache --no-parser-cache -o /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/x86/label/debian/os/jessie/debian/jessie/build-foreman-installer/foreman-installer-1.13.0/_build/parser_cache/foreman.yaml 03:28:34 tput: unknown terminal "unknown" 03:28:34 D, [2016-08-24T03:28:34.921141 #10217] DEBUG -- : Using Puppet module parser KafoParsers::PuppetModuleParser 03:28:35 ** Execute /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/x86/label/debian/os/jessie/debian/jessie/build-foreman-installer/foreman-installer-1.13.0/_build/options.asciidoc 03:28:35 /usr/bin/kafo-export-params -c config/foreman.yaml -f asciidoc -o /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/x86/label/debian/os/jessie/debian/jessie/build-foreman-installer/foreman-installer-1.13.0/_build/options.asciidoc 03:28:35 tput: unknown terminal "unknown" 03:28:36 D, [2016-08-24T03:28:36.138315 #10222] DEBUG -- : Using Puppet module parser KafoParsers::PuppetModuleParser 03:28:36 /usr/lib/ruby/vendor_ruby/kafo/parser_cache_reader.rb:19:in `block in new_from_file': uninitialized constant Kafo::ParserCacheReader::PARSER_CACHE_VERSION (NameError) 03:28:36 from /usr/lib/ruby/vendor_ruby/kafo/parser_cache_reader.rb:18:in `each' 03:28:36 from /usr/lib/ruby/vendor_ruby/kafo/parser_cache_reader.rb:18:in `each_with_index' 03:28:36 from /usr/lib/ruby/vendor_ruby/kafo/parser_cache_reader.rb:18:in `new_from_file' 03:28:36 from /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:267:in `parser_cache' 03:28:36 from /usr/lib/ruby/vendor_ruby/kafo/puppet_module.rb:45:in `initialize' 03:28:36 from /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:88:in `new' 03:28:36 from /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:88:in `block in modules' 03:28:36 from /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:88:in `map' 03:28:36 from /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:88:in `modules' 03:28:36 from /usr/bin/kafo-export-params:104:in `print_out' 03:28:36 from /usr/bin/kafo-export-params:51:in `execute' 03:28:36 from /usr/lib/ruby/vendor_ruby/clamp/command.rb:68:in `run' 03:28:36 from /usr/lib/ruby/vendor_ruby/clamp/command.rb:133:in `run' 03:28:36 from /usr/bin/kafo-export-params:155:in `<main>' 03:28:36 rake aborted! 03:28:36 Command failed with status (1): [/usr/bin/kafo-export-params -c config/fore...]
parser_cache_reader refers to the constant that's in kafo/version.rb, but doesn't require the file so it isn't defined.
Updated by Dominic Cleal over 8 years ago
- Related to Feature #16230: Read multiple parser caches for a single configuration added
Updated by Dominic Cleal over 8 years ago
- Status changed from New to Assigned
- Assignee set to Dominic Cleal
Updated by The Foreman Bot over 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/kafo/pull/170 added
Updated by Dominic Cleal over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 7710ea7462a62202cc5c4fc2e63d02b61bd0d884.
Actions