Project

General

Profile

Bug #12136

foreman-proxy fails to start if ruby-rgen is missing

Added by Adam C├ęcile almost 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Puppet
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Oct 12 07:46:38 hostname foreman-proxy[12730]: Starting foreman-proxy : foreman-proxy/usr/share/foreman-proxy/lib/smart_proxy.rb:101:in `instance_eval': cannot load such file -- rgen/ecore/ecore (LoadError)

foreman-proxy fails to start because of missing **

Installing Debian's package ruby-rgen resolved the issue.

Associated revisions

Revision 7cbe47ab (diff)
Added by Dmitri Dolguikh almost 4 years ago

Fixes #12136: load only Puppet dependencies that are required by the config

in puppet_proxy only dependencies and concrete implementation classes that
are required by the configuration are being loaded now.

History

#1 Updated by Dominic Cleal almost 4 years ago

  • Category changed from Packaging to Puppet
  • Difficulty changed from trivial to easy

The smart proxy loads puppet/pops from the eparser scanner code when it detects Puppet 3.2+, but this depends on rgen. If ruby-rgen isn't installed (it's optional in Debian packages) then the smart proxy fails to start.

It should probably catch load errors from puppet/pops, or better, skip loading the scanner's dependency if it's not needed?

Nightly behaviour is slightly different from 1.9, due to #11599, it now logs and starts without the Puppet functionality:

E, [2015-10-12T08:06:11.677900 #20277] ERROR -- : Couldn't enable plugin puppet: cannot load such file -- rgen/ecore/ecore

#2 Updated by Dominic Cleal almost 4 years ago

  • Difficulty deleted (easy)

#3 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/324 added
  • Pull request deleted ()

#4 Updated by Michael Moll almost 4 years ago

On which distribution and version is that happening specifically?

#5 Updated by Dominic Cleal almost 4 years ago

It was Debian 8/Jessie, I think with apt's installation of recommends disabled - since puppet-common only recommends ruby-rgen.

#6 Updated by The Foreman Bot almost 4 years ago

  • Assignee set to Dmitri Dolguikh

#7 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 104

#8 Updated by Anonymous almost 4 years ago

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

Also available in: Atom PDF