foreman-installer fails if global http proxy is set. foreman-maintain should print a warning therefore.
Created from redmine issue https://projects.theforeman.org/issues/30324
Upstream bug assigned to None
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30324 has been resolved.
*** Bug 1861253 has been marked as a duplicate of this bug. ***
Verified: Verified with: - Satellite 6.8.0 snap 14 - rubygem-foreman_maintain-0.6.9-1.el7sat.noarch Test steps: 1. set http proxy environment variable (http_proxy, https_proxy, HTTP_PROXY or HTTPS_PROXY) 2. foreman-maintain health check --label env-proxy Observation: - Check detects whether any http proxy variable is set or not. [root@hpe-dl360egen8-01 root]# export http_proxy=https://proxy.example.com:5442 [root@hpe-dl360egen8-01 root]# foreman-maintain health check --label env-proxy Running ForemanMaintain::Scenario::FilteredScenario ================================================================================ Check to make sure no HTTP(S) proxy set in ENV: [FAIL] Global HTTP(S) proxy in environment (env) is set. Please unset first! -------------------------------------------------------------------------------- Scenario [ForemanMaintain::Scenario::FilteredScenario] failed. The following steps ended up in failing state: [env-proxy] Resolve the failed steps and rerun the command. In case the failures are false positives, use --whitelist="env-proxy" [root@hpe-dl360egen8-01 root]# unset http_proxy [root@hpe-dl360egen8-01 root]# foreman-maintain health check --label env-proxy Running ForemanMaintain::Scenario::FilteredScenario ================================================================================ Check to make sure no HTTP(S) proxy set in ENV: [OK] --------------------------------------------------------------------------------
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 (Satellite 6.8 Satellite Maintenance 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/RHBA-2020:4365