Project

General

Profile

Bug #14472

kafo-export-params fails on Debian: cannot load such file -- configuration (LoadError)

Added by Dominic Cleal over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

On Debian, the kafo-export-params script fails with:

# /usr/bin/kafo-export-params -c /etc/foreman-installer/scenarios.d/foreman.yaml 
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- configuration (LoadError)
        from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/bin/kafo-export-params:12:in `<main>'

The script tries to prepend /usr/lib/kafo to the LOAD_PATH, which is incorrect as the Ruby files are actually in /usr/lib/ruby/vendor_ruby/kafo.

The script should simply load kafo/configuration as the load path should be correctly configured already. There's already a require on kafo/exceptions which is working correctly.


Related issues

Blocks Installer - Feature #14453: Generate Kafo parser cache during buildClosed2016-04-04

Associated revisions

Revision edee08de (diff)
Added by Dominic Cleal over 5 years ago

fixes #14472 - require kafo/configuration in a standard way

Don't assume location of kafo lib/ dir in relation to the bin script.

Revision a5317eae
Added by Marek Hulán over 5 years ago

Merge pull request #136 from domcleal/14472-kafo-export-require

fixes #14472 - require kafo/configuration in a standard way

History

#1 Updated by Dominic Cleal over 5 years ago

  • Description updated (diff)

#2 Updated by Dominic Cleal over 5 years ago

  • Blocks Feature #14453: Generate Kafo parser cache during build added

#3 Updated by The Foreman Bot over 5 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/kafo/pull/136 added

#4 Updated by Dominic Cleal over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF