Bug 1517734

Summary: after changing http proxy pulp importers use old setting till service restart
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: InstallationAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, chrobert, ehelms
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: https://projects.theforeman.org/issues/22392
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 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:

Description Lukas Pramuk 2017-11-27 10:42:21 UTC
Description of problem:
After changing http proxy settings by installer the new settings are effective only in katello (cdn scan, repo enable, insights...) while in pulp (repo sync) the old settings are still in effect till next service restart.

The installer is probably missing to ensure a restart of some/all pulp services.
The issue is a regression against Sat6.2 


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

How reproducible:
deterministic

Steps to Reproduce:
1. Run installer to force SAT to communicate over http proxy
2. Trigger CDN reposet scan or repository enablement and watch traffic actually hittng http proxy
3. Trigger a repo sync and watch traffic not hitting proxy

Workaround:
4. Restart services (particularly Pulp ones)
5. Trigger a repo sync and watch traffic finally hitting proxy



Actual results:
very illusory result since only some of actions are actually using new http proxy settings

Expected results:
after installer run all actions should use new proxy http settings

Comment 3 Satellite Program 2018-01-25 17:12:36 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/22392 has been resolved.

Comment 4 Lukas Pramuk 2018-02-05 13:07:58 UTC
VERIFIED.

@satellite-6.3.0-23.0.el7sat.noarch (Snap 34)
katello-installer-base-3.4.5.26-1.el7sat.noarch

by the manual reproducer described in comment#0:

1. Run installer to force SAT to communicate over http proxy
# satellite-installer --katello-proxy-url="http://proxy.example.com" --katello-proxy-port="3128" --katello-proxy-username="admin" --katello-proxy-password="pass"

2. Trigger CDN reposet scan or repository enablement and watch traffic actually hittng http proxy

3. Trigger a repo sync and watch traffic also hitting http proxy
# watch "netstat -pnt |grep :3128"
tcp        0      0 <SAT_IP>:53514       <PROXY_IP>:3128          ESTABLISHED 10114/python        
tcp        0      0 <SAT_IP>:53518       <PROXY_IP>:3128          ESTABLISHED 10114/python        
tcp        0      0 <SAT_IP>:53524       <PROXY_IP>:3128          ESTABLISHED 10114/python        
tcp        0      0 <SAT_IP>:53520       <PROXY_IP>:3128          ESTABLISHED 10114/python        
tcp        0      0 <SAT_IP>:53608       <PROXY_IP>:3128          TIME_WAIT   -                   
tcp        0      0 <SAT_IP>:53614       <PROXY_IP>:3128          TIME_WAIT   -                   
tcp        0      0 <SAT_IP>:53522       <PROXY_IP>:3128          ESTABLISHED 10114/python        
tcp        0      0 <SAT_IP>:53610       <PROXY_IP>:3128          TIME_WAIT   -                 

>>> after changing http proxy settings pulp importers use it and the extra service restart is no longer needed

Comment 5 Satellite Program 2018-02-21 16:54:17 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, 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-2018:0336