Bug 1874465

Summary: satellite-installer --scenario satellite --upgrade command is failing with error :warn is not a defined Style (NameError)
Product: Red Hat Satellite Reporter: Satyajit Das <sadas>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Devendra Singh <desingh>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: jyejare, tbrisker
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-06 15:00:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Satyajit Das 2020-09-01 12:37:41 UTC
Description of problem:

satellite-installer --scenario satellite --upgrade command is failing with error :warn is not a defined Style (NameError)

Version-Release number of selected component (if applicable):

satellite-6.8.0-0.7.beta.el7sat.noarch

How reproducible:

100%

Steps to Reproduce:
1. On a installed satellite server (6.8), execute the below command:-

# satellite-installer --scenario satellite --upgrade --verbose 

Actual results:

# satellite-installer --scenario satellite --upgrade --verbose 
[ INFO 2020-09-01T14:40:47 verbose] Executing hooks in group pre_migrations
[ INFO 2020-09-01T14:40:47 verbose] All hooks in group pre_migrations finished
[ INFO 2020-09-01T14:40:47 verbose] Executing hooks in group boot
[ INFO 2020-09-01T14:40:47 verbose] All hooks in group boot finished
[ INFO 2020-09-01T14:40:47 verbose] Executing hooks in group init
[ INFO 2020-09-01T14:40:47 verbose] All hooks in group init finished
[ INFO 2020-09-01T14:40:47 verbose] Loading default values from puppet modules...
[ INFO 2020-09-01T14:40:47 verbose] ... finished
[ INFO 2020-09-01T14:40:47 verbose] Executing hooks in group pre_values
[ INFO 2020-09-01T14:40:47 verbose] All hooks in group pre_values finished
[ INFO 2020-09-01T14:40:47 verbose] Running installer with args [["--scenario", "satellite", "--upgrade", "--verbose"]]
[ INFO 2020-09-01T14:40:47 verbose] Executing hooks in group pre_validations
[ INFO 2020-09-01T14:40:47 verbose] Installer finished in 2.234815678 seconds
Traceback (most recent call last):
	16: from /usr/sbin/satellite-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:139:in `execute'
	10: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hooking.rb:49:in `execute'
	 9: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hooking.rb:49:in `each'
	 8: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hooking.rb:51:in `block in execute'
	 7: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hook_context.rb:16:in `execute'
	 6: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hook_context.rb:16:in `instance_exec'
	 5: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hooking.rb:34:in `block (4 levels) in load'
	 4: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-4.1.0/lib/kafo/hooking.rb:34:in `instance_eval'
	 3: from /usr/share/foreman-installer/katello/hooks/pre_validations/29-upgrade.rb:2:in `block (4 levels) in load'
	 2: from /usr/share/foreman-installer/hooks/boot/01-kafo-hook-extensions.rb:98:in `log_and_say'
	 1: from /opt/theforeman/tfm/root/usr/share/gems/gems/highline-1.7.8/lib/highline.rb:383:in `color'
/opt/theforeman/tfm/root/usr/share/gems/gems/highline-1.7.8/lib/highline/style.rb:33:in `Style': :warn is not a defined Style (NameError)

Expected results:

Satellite-installer should execute successfully without any error.


Additional info:

Comment 1 Tomer Brisker 2020-09-06 15:00:30 UTC

*** This bug has been marked as a duplicate of bug 1857506 ***