Feature #16948

Mention command line options at the beginning of installer log

Added by Stephen Benjamin 9 months ago. Updated 4 months ago.

Status:Closed
Priority:Normal
Assigned To:Ivan Necas
Category:-
Target version:Foreman - Team Ivan Iteration 12
Difficulty: Pull request:https://github.com/theforeman/kafo/pull/206
Bugzilla link:1159294
Story points-
Velocity based estimate-

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1159294
Description of problem:
It is worth listing installer command line options at the beginning of katello-installer.log file, due to two reasons:

1) If installation fails, knowing the options might be crucial to understand what was happening during the installation process.

2) If installation succeeds and Satellite6 is installed, we still know what options were used for the installation (e.g. via foreman-debug) - again very usefull for troubleshooting further problems.

Version-Release number of selected component (if applicable):
katello-installer-0.0.64-1.el6sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. Run installer with any set of options, e.g.:

katello-installer --reset --capsule-register-in-foreman=false --katello-user=foreman2 --foreman-user-groups=puppet2 --certs-ca-expiration=365000

2. Check katello.installer.log for presence of the options

Actual results:
grep "capsule-register-in-foreman" /var/log/katello-installer/katello-installer.log returns nothing, as well as grep of any other option.

Expected results:
each option provided on cmdline to be printed in katello-installer.log

Additional info:

Associated revisions

Revision 0cec7dff
Added by Ivan Necas 4 months ago

Fixes #16948 - log the CLI options

It's very useful to know what parameters we actually passed to the installer
via command line.

History

#1 Updated by Stephen Benjamin 9 months ago

  • Project changed from Foreman to Kafo
  • Subject changed from Mention command line options at the beginning of installer log to Mention command line options at the beginning of installer log

#2 Updated by Marek Hulán 4 months ago

  • Status changed from New to Closed
  • Assigned To set to Ivan Necas
  • Pull request https://github.com/theforeman/kafo/pull/206 added

#3 Updated by Ivan Necas 4 months ago

  • Target version set to Team Ivan Iteration 12

Also available in: Atom PDF