Bug 1903584

Summary: Satellite-installer interactive is broken with NameError
Product: Red Hat Satellite Reporter: Jitendra Yejare <jyejare>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Devendra Singh <desingh>
Severity: high Docs Contact:
Priority: medium    
Version: 6.9.0CC: ehelms, zhunting
Target Milestone: 6.9.0Keywords: Triaged
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-12-14 15:23:31 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:
Bug Depends On:    
Bug Blocks: 1903599    

Description Jitendra Yejare 2020-12-02 12:43:46 UTC
Description of problem:

Running Satellite-installer in interactive mode and choosing the config breaks with NameError.

Version-Release number of selected component (if applicable):
Satellite 6.9.0 snap 3 (and Snap 2 as well)

How reproducible:
Always

Steps to Reproduce:
----------------------
1. satellite-installer -i
2. In `Ready to Start` prompt, say `y`  (That is yes)
3. In `Choose an option, from the menu ...`, choose any option number from Main Config Menu. (I choose `6. [✗] Configure foreman_cli_kubevirt`)
4. Visit the NameError traceback.

Actual results:
--------------------

```
Traceback (most recent call last):
	17: from /usr/sbin/satellite-installer:8:in `<main>'
	16: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.1/lib/kafo/kafo_configure.rb:50:in `run'
	15: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
	14: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.1/lib/kafo/kafo_configure.rb:169:in `run'
	13: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
	12: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.1/lib/kafo/kafo_configure.rb:191:in `execute'
	11: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.1/lib/kafo/wizard.rb:33:in `run'
	10: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.1/lib/kafo/wizard.rb:45:in `main_menu'
	 9: from /opt/theforeman/tfm/root/usr/share/gems/gems/highline-1.7.8/lib/highline.rb:366:in `choose'
	 8: from /opt/theforeman/tfm/root/usr/share/gems/gems/highline-1.7.8/lib/highline/menu.rb:312:in `select'
	 7: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.1/lib/kafo/wizard.rb:51:in `block (3 levels) in main_menu'
	 6: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.1/lib/kafo/wizard.rb:78:in `configure_module'
	 5: from /opt/theforeman/tfm/root/usr/share/gems/gems/highline-1.7.8/lib/highline.rb:333:in `choose'
	 4: from /opt/theforeman/tfm/root/usr/share/gems/gems/highline-1.7.8/lib/highline.rb:333:in `new'
	 3: from /opt/theforeman/tfm/root/usr/share/gems/gems/highline-1.7.8/lib/highline/menu.rb:51:in `initialize'
	 2: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.1.1/lib/kafo/wizard.rb:82:in `block in configure_module'
	 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': :notice is not a defined Style (NameError)
```

Expected results:
-----------------------
The Config should be installed interactively.

Additional info:

Comment 2 Jitendra Yejare 2020-12-07 07:59:36 UTC
@Brad, No its not a regression from 6.8, with 6.8.2 snap 2.0 its working fine. But with satellite 6.9, I could see its very reproducible. 

There is also a similar error(NameError) raised for installer in 6.9

Comment 3 Jitendra Yejare 2020-12-08 12:39:57 UTC
Similar error is observed for `Satellite installer --list-scenarios` command.

Comment 4 Eric Helms 2020-12-14 15:23:31 UTC

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