Project

General

Custom queries

Profile

Actions

Bug #25524

closed

allow matching prerelease versions in requires_foreman_plugin

Added by Ales Dujicek over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Katello nightly does not start with tfm-rubygem-foreman_scc_manager plugin

  1. yum install tfm-rubygem-foreman_scc_manager
  2. systemctl restart httpd

load UI:

Web application could not be started

ERF72-4785 [Foreman::PluginRequirementError]: foreman_scc_manager plugin requires the katello plugin >= 3.7.0 but current is 3.10.0.pre.master (Foreman::PluginRequirementError)
/usr/share/foreman/app/registries/foreman/plugin.rb:193:in `requires_foreman_plugin'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_scc_manager-1.4.0/lib/foreman_scc_manager/engine.rb:22:in `block (2 levels) in <class:Engine>'
/usr/share/foreman/app/registries/foreman/plugin.rb:74:in `instance_eval'
/usr/share/foreman/app/registries/foreman/plugin.rb:74:in `register'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_scc_manager-1.4.0/lib/foreman_scc_manager/engine.rb:20:in `block in <class:Engine>'
...

When I changed
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_scc_manager-1.4.0/lib/foreman_scc_manager/engine.rb
to
requires_foreman_plugin 'katello', '>= 3.10.0.pre.master'

A class was passed to `:class_name` but we are expecting a string. (ArgumentError)
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/reflection.rb:436:in `initialize'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/reflection.rb:31:in `new'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/reflection.rb:31:in `create'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/associations/builder/association.rb:45:in `create_reflection'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/associations/builder/association.rb:31:in `build'
...

package versions:
katello-3.10.0-6.el7.noarch
foreman-1.21.0-0.201811201830git6bbaa990.4.develop.el7.noarch
tfm-rubygem-foreman_scc_manager-1.4.0-3.fm1_20.el7.noarch

#1

Updated by John Mitsch over 6 years ago

  • Status changed from New to Need more information
#2

Updated by Ales Dujicek over 6 years ago

  • Status changed from Need more information to New
#3

Updated by Christine Fouant over 6 years ago

  • Assignee set to Chris Duryee
  • Target version set to Katello Backlog
  • Triaged changed from No to Yes
#6

Updated by Chris Duryee over 6 years ago

  • Project changed from Katello to Foreman
  • Subject changed from foreman_scc_manager to allow matching prerelease versions in requires_foreman_plugin
  • Target version deleted (Katello Backlog)
#7

Updated by Chris Duryee over 6 years ago

  • Assignee deleted (Chris Duryee)
  • Triaged changed from Yes to No
#8

Updated by Chris Duryee over 6 years ago

  • Category set to Plugin integration
  • Assignee set to Chris Duryee
#9

Updated by Chris Duryee over 6 years ago

  • Found in Releases 1.21.0 added
  • Found in Releases deleted (Katello 3.10.0)
#10

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6313 added
#11

Updated by Tomer Brisker over 6 years ago

  • Fixed in Releases 1.21.0 added
#12

Updated by Chris Duryee over 6 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF