Project

General

Profile

Bug #29906

foreman-installer --reset fails at `stop_services`

Added by Ian Ballou 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
foreman-installer script
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Traceback (most recent call last):
    16: from /sbin/foreman-installer:8:in `<main>'
    15: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/kafo_configure.rb:162:in `run'
    14: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
    13: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/kafo_configure.rb:118:in `run'
    12: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    11: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/kafo_configure.rb:155:in `execute'
    10: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/kafo_configure.rb:424:in `run_installation'
     9: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hooking.rb:49:in `execute'
     8: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hooking.rb:49:in `each'
     7: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hooking.rb:51:in `block in execute'
     6: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hook_context.rb:16:in `execute'
     5: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hook_context.rb:16:in `instance_exec'
     4: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hooking.rb:34:in `block (4 levels) in load'
     3: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hooking.rb:34:in `instance_eval'
     2: from /usr/share/foreman-installer/katello/hooks/pre/10-reset_feature.rb:185:in `block (4 levels) in load'
     1: from /usr/share/foreman-installer/katello/hooks/pre/10-reset_feature.rb:7:in `reset'
/usr/share/foreman-installer/hooks/boot/03-foreman-maintain-extensions.rb:25:in `stop_services': wrong number of arguments (given 0, expected 1) (ArgumentError)

start_services and stop_services need services = nil to make the arg optional: https://github.com/theforeman/foreman-installer/blame/develop/hooks/boot/03-foreman-maintain-extensions.rb#L25


Related issues

Related to Installer - Bug #29512: foreman-installer --reset fails with 'Could not find foreman_maintain'Closed

Associated revisions

Revision 94207e8b (diff)
Added by Ewoud Kohl van Wijngaarden 6 months ago

Refs #29512 - Add a default to stop_services

d687c2fa56efb223781078564f45f19310df0306 added this but it's also called
without arguments.

Fixes #29906

History

#1 Updated by The Foreman Bot 6 months ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-installer/pull/507 added

#2 Updated by Ewoud Kohl van Wijngaarden 6 months ago

  • Related to Bug #29512: foreman-installer --reset fails with 'Could not find foreman_maintain' added

#3 Updated by Ewoud Kohl van Wijngaarden 6 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Ewoud Kohl van Wijngaarden 6 months ago

  • Triaged changed from No to Yes
  • Target version set to 2.1.0
  • Category set to foreman-installer script
  • Fixed in Releases 2.1.0 added

Also available in: Atom PDF