Project

General

Profile

Bug #25386

Upgrading a content proxy fails with module_enabled?: undefined method enabled? for nil:NilClass (NoMethodError)

Added by Ewoud Kohl van Wijngaarden over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Installer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:

Description

Run an upgrade with katello-installer --scenario foreman-proxy-content --upgrade

 /usr/share/gems/gems/kafo-2.1.0/lib/kafo/hook_context.rb:71:in `module_enabled?': undefined method `enabled?' for nil:NilClass (NoMethodError)
     from /usr/share/katello-installer-base/hooks/post/30-upgrade.rb:45:in `block (4 levels) in load'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/hooking.rb:34:in `instance_eval'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/hooking.rb:34:in `block (4 levels) in load'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/hook_context.rb:16:in `instance_exec'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/hook_context.rb:16:in `execute'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/hooking.rb:51:in `block in execute'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/hooking.rb:49:in `each'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/hooking.rb:49:in `execute'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:476:in `block in run_installation'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/exit_handler.rb:29:in `call'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/exit_handler.rb:29:in `exit'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:169:in `exit'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:475:in `run_installation'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:156:in `execute'
     from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:119:in `run'
     from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
     from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:163:in `run'

Associated revisions

Revision 7211b932 (diff)
Added by Ewoud Kohl van Wijngaarden over 1 year ago

Fixes #25386 - Use the module_enabled? helper

In kafo 2.1.0 the module_enabled? hook function doesn't handle the case
where a module isn't present at all. The Kafo::Helpers version of it
does.

History

#1 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/712 added

#2 Updated by The Foreman Bot over 1 year ago

  • Pull request https://github.com/Katello/katello-installer/pull/713 added

#3 Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Justin Sherrill over 1 year ago

  • Triaged changed from No to Yes

Also available in: Atom PDF