Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1874465 - satellite-installer --scenario satellite --upgrade command is failing with error :warn is not a defined Style (NameError)
Summary: satellite-installer --scenario satellite --upgrade command is failing with er...
Keywords:
Status: CLOSED DUPLICATE of bug 1857506
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-01 12:37 UTC by Satyajit Das
Modified: 2020-09-06 15:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-06 15:00:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.