Project

General

Profile

Bug #5961

Installation fails with foreman-tasks

Added by Ignacio Bravo almost 5 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When installing Katello in a new CentOS6 machine the installation of ruby193-rubygem-foreman-tasks-05.6-1.el6.noarch fails with the following error:
/var/tmp/rpm-tmp.EFlqHJ: line 1: foreman-selinux-relabel: command not found

When the installation completes, an error with Dynflow prevents the https://localhost/katello to be displayed.

The installation is done with the following procedure:

  1. yum update
  2. yum install -y git ruby
  3. git clone https://github.com/Katello/katello-deploy.git
  4. cd katello-deploy
  5. vim /etc/hosts and add FQDN to list
  6. setenforce 0
  7. SELINUX=permissive on /etc/selinux/config
  8. ./setup.rb centos6 --skip-installer

Associated revisions

Revision d9de7cbd (diff)
Added by Ivan Necas almost 5 years ago

Fixes #5961 - access the Dynflow world after it had been initialized

Revision 5ddc2d48
Added by Ivan Necas almost 5 years ago

Merge pull request #4166 from iNecas/issue/5961

Fixes #5961 - access the Dynflow world after it had been initialized

History

#1 Updated by Ivan Necas almost 5 years ago

what exactly is the error in Dynflow, the error message should not be displayed (we need to switch https://github.com/theforeman/foreman-tasks/blob/master/rubygem-foreman-tasks.spec#L110 `2>&1 >/dev/null` to `>/dev/null 2>&1` or ideally to `&>/dev/null`). However, this should not be the reason for error in the startup itself.

Therefore we need more info on that

#3 Updated by Lukas Zapletal almost 5 years ago

The workaround is to install this package before running the installer:

yum install foreman-selinux

#4 Updated by Ivan Necas almost 5 years ago

  • Status changed from New to Assigned

I think this is the real failure on installation:

The Dynflow world was not initialized yet. If your plugin uses it, make sure to call ForemanTasks.dynflow.require! in some initializer (RuntimeError)
  /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.5.6/lib/foreman_tasks/dynflow.rb:75:in `world'
  /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/lib/katello/engine.rb:38:in `block in <class:Engine>'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
  /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
  /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
  /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
  config.ru:3:in `block in <main>'
  /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
  /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in `eval'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in `preload_app'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in `<module:App>'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in `<main>'

and was introduced with this PR: https://github.com/Katello/katello/pull/4150

I will address that

#5 Updated by Ivan Necas almost 5 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset katello|commit:d9de7cbdb80df7c0cbca18ac5f75868f7a289ba2.

#6 Updated by Eric Helms almost 5 years ago

  • Triaged changed from No to Yes

#7 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) set to 13

Also available in: Atom PDF