Project

General

Profile

Actions

Bug #25716

closed

Foreman-proxy is missing ruby-logging dependency

Added by Romke van Dijk almost 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Debian/Ubuntu
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

Hi all,

Not sure if this is the correct place to post this, but I have been trying to upgrade some foreman nodes of mine to Foreman 1.20 including the require foreman modules. I run foreman without the foreman installer, but run the foreman modules directly myself on the nodes using Puppet. If I have to post this issue on the foreman puppet module page or something, please let met know.

The (simplified) code that I run on my node is as followed:


class {'foreman':
  repo => '1.20'
}

class {'foreman_proxy':
}

class {'puppet':
  server => true,
}

I installed the required modules using puppet-librarian based on the Puppetfile supplied by the Foreman installer (https://github.com/theforeman/foreman-installer/blob/1.20-stable/Puppetfile).

In the end foreman-proxy fails to start. This is because some dependency is missing for some reason. The error that service is generating is:

Dec 17 19:16:11 master smart-proxy[7075]: /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- logging (LoadError)
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/share/foreman-proxy/lib/proxy/log.rb:1:in `<top (required)>'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/share/foreman-proxy/lib/launcher.rb:1:in `<top (required)>'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/share/foreman-proxy/lib/smart_proxy_main.rb:4:in `<top (required)>'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/share/foreman-proxy/bin/smart-proxy:5:in `<main>'

As the error suggested, ruby-logging is missing. After install ruby-logging foreman-proxy start as is expected.

Conclusion, there ruby-logging dependancy should be added to the foreman-proxy package.

Platform:
Linux master 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
Debian 9.6

Thank in advance

Actions

Also available in: Atom PDF