Bug 1917267

Summary: Shorten the Satellite installer verbose STDOUT
Product: Red Hat Satellite Reporter: Jitendra Yejare <jyejare>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Devendra Singh <desingh>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.9.0CC: ahumbe, ehelms, pcreech, zhunting
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-kafo-6.2.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:25:03 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 2021-01-18 08:40:02 UTC
Description of problem:
Looking for shorter installer stdout when the installer runs in a default verbose mode(default from 6.9). The installer is outputting the informative/user-friendly info but has very repetative statements for task-started and task-completed. Instead I would like to see only task-completed lines. Also the configuration tasks STDOUT frequency can be increased from 100 currently to 300.

Something like below:

```
2020-11-24 08:23:27 [NOTICE] Executing hooks and configuring satellite system, please wait ..
2020-11-24 08:23:27 [NOTICE] All hooks in group pre_migrations finished
2020-11-24 08:23:27 [NOTICE] All hooks in group boot finished
2020-11-24 08:23:27 [NOTICE] All hooks in group init finished
2020-11-24 08:23:31 [NOTICE] All hooks in group pre_values finished
2020-11-24 08:23:34 [NOTICE] All hooks in group pre_validations finished
2020-11-24 08:23:36 [NOTICE] All hooks in group pre_commit finished
2020-11-24 08:26:00 [NOTICE] All hooks in group pre finished
2020-11-24 08:26:00 [NOTICE] Starting system configuration. The total number of configuration tasks may increase during the run. Observe logs.
2020-11-24 08:26:15 [NOTICE] 300 out of 900 done.
2020-11-24 08:26:15 [NOTICE] 600 out of 900 done.
2020-11-24 08:26:15 [NOTICE] 600 out of 900 done.
2020-11-24 08:48:29 [NOTICE] System configuration has finished.
```

Version-Release number of selected component (if applicable):
Satellite 6.9 snap 8

How reproducible:
Always

Steps to Reproduce:
1. Run satellite installer in verbose(by default) mode.
2. Look for installer STDOUT on the same terminal where the installer is run.
3.

Actual results:
The installer shows some extra steps for beginning of a task(s) and the configuration STDOUT frequency is 100.

Expected results:
The installer need not to show steps for beginning of a task(s) and the configuration STDOUT frequency can be 300 or more.

Additional info:
See the diff of a change I am looking for in [1]. The left STDOUT is current and the right STDOUT is expected one.
[1] : https://www.diffchecker.com/6tCRNBb4

Comment 3 Devendra Singh 2021-03-15 05:12:02 UTC
Verified on 6.9.0 Snap 17

Verification steps:

1- Ran a satellite-installer on 6.9 Sanp17 and saw shorten output.

# satellite-installer 
2021-03-15 00:27:33 [NOTICE] [root] Loading default values from puppet modules...
2021-03-15 00:27:38 [NOTICE] [root] ... finished
2021-03-15 00:27:41 [NOTICE] [root] Running validation checks
Package versions are locked. Continuing with unlock.
2021-03-15 00:27:50 [NOTICE] [configure] Starting system configuration.
  The total number of configuration tasks may increase during the run.
  Observe logs or specify --verbose-log-level to see individual configuration tasks.
2021-03-15 00:28:03 [NOTICE] [configure] 100 out of 2311 done.
2021-03-15 00:28:03 [NOTICE] [configure] 200 out of 2311 done.
2021-03-15 00:28:03 [NOTICE] [configure] 300 out of 2311 done.
2021-03-15 00:28:04 [NOTICE] [configure] 400 out of 2311 done.
2021-03-15 00:28:04 [NOTICE] [configure] 500 out of 2311 done.
2021-03-15 00:28:29 [NOTICE] [configure] 600 out of 2311 done.
2021-03-15 00:28:32 [NOTICE] [configure] 700 out of 2313 done.
2021-03-15 00:28:32 [NOTICE] [configure] 800 out of 2313 done.
2021-03-15 00:28:32 [NOTICE] [configure] 900 out of 2315 done.
2021-03-15 00:28:34 [NOTICE] [configure] 1000 out of 2316 done.
2021-03-15 00:28:35 [NOTICE] [configure] 1100 out of 2317 done.
2021-03-15 00:28:35 [NOTICE] [configure] 1200 out of 2319 done.
2021-03-15 00:28:35 [NOTICE] [configure] 1300 out of 2321 done.
2021-03-15 00:28:35 [NOTICE] [configure] 1400 out of 2323 done.
2021-03-15 00:28:49 [NOTICE] [configure] 1500 out of 2323 done.
2021-03-15 00:28:49 [NOTICE] [configure] 1600 out of 2325 done.
2021-03-15 00:28:50 [NOTICE] [configure] 1700 out of 2325 done.
2021-03-15 00:29:46 [NOTICE] [configure] 1800 out of 2325 done.
2021-03-15 00:29:47 [NOTICE] [configure] 1900 out of 2325 done.
2021-03-15 00:29:47 [NOTICE] [configure] 2000 out of 2325 done.
2021-03-15 00:29:47 [NOTICE] [configure] 2100 out of 2325 done.
2021-03-15 00:29:47 [NOTICE] [configure] 2200 out of 2325 done.
2021-03-15 00:29:57 [NOTICE] [configure] 2300 out of 2325 done.
2021-03-15 00:30:00 [NOTICE] [configure] System configuration has finished.
  Success!

2- Checked the fixed package on the installed satellite.

# rpm -qa|grep tfm-rubygem-kafo-6.2.1
tfm-rubygem-kafo-6.2.1-1.el7sat.noarch

Comment 6 errata-xmlrpc 2021-04-21 13:25:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1313