Bug 1920036 - satellite-installer proposes --verbose-log-level but doesn't mention level
Summary: satellite-installer proposes --verbose-log-level but doesn't mention level
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.10.0
Assignee: wclark
QA Contact: Shweta Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-25 15:44 UTC by Kenny Tordeurs
Modified: 2022-07-19 13:47 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:09:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31779 0 Normal Closed foreman-installer proposes --verbose-log-level but doesn't mention level 2021-02-16 19:56:54 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:09:55 UTC

Description Kenny Tordeurs 2021-01-25 15:44:35 UTC
Description of problem:
satellite-installer --enable-foreman-plugin-rh-cloud --foreman-proxy-plugin-remote-execution-ssh-install-key true --verbose-log-level
2021-01-25 15:33:17 [NOTICE] [pre_migrations] Executing hooks in group pre_migrations
2021-01-25 15:33:17 [NOTICE] [pre_migrations] All hooks in group pre_migrations finished
2021-01-25 15:33:17 [NOTICE] [boot] Executing hooks in group boot
2021-01-25 15:33:17 [NOTICE] [boot] All hooks in group boot finished
2021-01-25 15:33:17 [NOTICE] [init] Executing hooks in group init
2021-01-25 15:33:17 [NOTICE] [init] All hooks in group init finished
2021-01-25 15:33:17 [NOTICE] [root] Loading default values from puppet modules...
2021-01-25 15:33:25 [NOTICE] [root] ... finished
2021-01-25 15:33:25 [NOTICE] [pre_values] Executing hooks in group pre_values
2021-01-25 15:33:25 [NOTICE] [pre_values] All hooks in group pre_values finished
2021-01-25 15:33:27 [NOTICE] [pre_validations] Executing hooks in group pre_validations
2021-01-25 15:33:28 [NOTICE] [pre_validations] All hooks in group pre_validations finished
2021-01-25 15:33:28 [NOTICE] [root] Running validation checks
2021-01-25 15:33:28 [NOTICE] [pre_commit] Executing hooks in group pre_commit
Package versions are locked. Continuing with unlock.
2021-01-25 15:33:34 [NOTICE] [pre_commit] All hooks in group pre_commit finished
2021-01-25 15:33:34 [NOTICE] [pre] Executing hooks in group pre
2021-01-25 15:33:41 [NOTICE] [pre] All hooks in group pre finished
2021-01-25 15:33:41 [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.
...
~~~

One might expect to run the command like which works but doesn't do anything different:
# satellite-installer --enable-foreman-plugin-rh-cloud --foreman-proxy-plugin-remote-execution-ssh-install-key true --verbose-log-level

The level needs to be specified:
# satellite-installer --full-help | grep verbose
    -v, --[no-]verbose            Display log on STDOUT instead of progressbar (default: true)
    -l, --verbose-log-level LEVEL Log level for verbose mode output (default: "notice")

For example:
# satellite-installer --enable-foreman-plugin-rh-cloud --foreman-proxy-plugin-remote-execution-ssh-install-key true --verbose-log-level debug


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

How reproducible:
100%


Actual results:
Using the parameter as proposed does nothing

Expected results:
Adding something like:
~~~
The total number of configuration tasks may increase during the run.
  Observe logs or specify --verbose-log-level <LEVEL> to see individual configuration tasks.
~~~

Additional info:

Comment 1 wclark 2021-02-01 16:27:35 UTC
Created redmine issue https://projects.theforeman.org/issues/31779 from this bug

Comment 2 Bryan Kearney 2021-02-02 15:43:47 UTC
Upstream bug assigned to wclark

Comment 3 Bryan Kearney 2021-02-02 15:43:50 UTC
Upstream bug assigned to wclark

Comment 4 Bryan Kearney 2021-02-03 18:44:04 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31779 has been resolved.

Comment 6 Shweta Singh 2021-06-09 07:12:01 UTC
Verified the log level given(if provided) in "--verbose-log-level [level] " gets reflected in the message in execution.
Successfully executed on Sat 6.10 Snap 2

satellite-installer --enable-foreman-plugin-rh-cloud --foreman-proxy-plugin-remote-execution-ssh-install-key true --verbose-log-level INFO
2021-06-09 02:54:47 [INFO  ] [pre_migrations] Executing hooks in group pre_migrations
2021-06-09 02:54:47 [INFO  ] [pre_migrations] All hooks in group pre_migrations finished
2021-06-09 02:54:47 [INFO  ] [boot] Executing hooks in group boot
2021-06-09 02:54:47 [INFO  ] [boot] All hooks in group boot finished
2021-06-09 02:54:47 [NOTICE] [root] Loading installer configuration. This will take some time.
2021-06-09 02:54:47 [INFO  ] [init] Executing hooks in group init
2021-06-09 02:54:47 [INFO  ] [init] All hooks in group init finished
2021-06-09 02:54:47 [INFO  ] [root] Loading default values from puppet modules...
2021-06-09 02:54:52 [INFO  ] [root] ... finished loading default values from puppet modules.
2021-06-09 02:54:52 [INFO  ] [pre_values] Executing hooks in group pre_values
2021-06-09 02:54:52 [INFO  ] [pre_values] All hooks in group pre_values finished
2021-06-09 02:54:52 [NOTICE] [root] Running installer with log based terminal output at level INFO.
2021-06-09 02:54:52 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2021-06-09 02:54:54 [INFO  ] [pre_validations] Executing hooks in group pre_validations

Messages added/replaced are:
2021-06-09 02:54:52 [NOTICE] [root] Running installer with log based terminal output at level INFO.
2021-06-09 02:54:52 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.

Comment 9 errata-xmlrpc 2021-11-16 14:09:44 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.10 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:4702


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