Project

General

Profile

Feature #22226

[RFE] foreman-maintain should provide a way to pass extra options to the satellite installer (if required)

Added by Anurag Patel over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

From Bugzilla:

Description of problem:

If there is any need to pass extra parameters to the installer like "--disable-system-checks" in case the system does not have enough RAM

If the " # foreman-maintain upgrade run --target-version 6.3 " command failed with error:

This system has less than 8 GB of total memory. Please have at least 8 GB of total ram free before running the installer.

Then

1. there is no way pass --disable-system-checks option to the foreman-maintain command or any other additional options.

2. If we implement above option (1), the error message needs to be improved:

Currently foreman-maintain throws below message:

--------------------------------------------------------------------------------
Procedures::Installer::Upgrade:
This system has less than 8 GB of total memory. Please have at least 8 GB of total ram free before running the installer.
[FAIL]
Failed executing satellite-installer --upgrade, exit status 1
--------------------------------------------------------------------------------
Scenario [Migration scripts to Satellite 6.3] failed.

The following steps ended up in failing state:

[installer-upgrade]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="installer-upgrade"

instead of this, it should suggest user to run the foreman-maintain with additional installer option --disable-system-checks, instead of suggesting to add installer-upgrade to the whitelist.

The suggestion to add an installer-upgrade step in whitelist is not a good idea which will keep the satellite in an incomplete state.

Also available in: Atom PDF