Project

General

Profile

Actions

Bug #14472

closed

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

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

Status:
Closed
Priority:
Normal
Assignee:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Blocks Installer - Feature #14453: Generate Kafo parser cache during buildClosedDominic Cleal04/04/2016Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

  • Description updated (diff)
Actions #2

Updated by Dominic Cleal over 8 years ago

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

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/136 added
Actions #4

Updated by Dominic Cleal over 8 years ago

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

Also available in: Atom PDF