Bug 1010956 - rhn-proxy-activate during activation/reactivation doesn't obtain all possible options from up2date/rhn.conf
rhn-proxy-activate during activation/reactivation doesn't obtain all possible...
Status: NEW
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Installer (Show other bugs)
Unspecified Unspecified
low Severity low
: ---
: ---
Assigned To: Tomáš Kašpárek
Red Hat Satellite QA List
Depends On: 979038
Blocks: 462714
  Show dependency treegraph
Reported: 2013-09-23 07:30 EDT by Lukas Pramuk
Modified: 2015-08-10 15:47 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 979038
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Comment 1 Lukas Pramuk 2013-09-23 07:48:32 EDT
Description of problem:
rhn-proxy-activate does not obtain ALL POSSIBLE options from rhn.conf like
proxy.ca_chain, proxy.http_proxy, proxy.http_proxy_username, proxy.http_proxy_password, proxy.use_ssl

Actual results:
Currently only 'proxy.rhn_parent' is parsed as --server

Expected results:
The other possible options are parsed too.

Additional info:
more proper string is 'default is _now_' than 'default is' to indicate that the default value is changeble. 

# grep use_ssl /etc/rhn/rhn.conf
proxy.use_ssl = 1
# rhnpush --help
--no-ssl              turn off SSL (not advisable), default is _now_ on.
Comment 3 Lukas Pramuk 2013-09-23 08:24:38 EDT
Expected results(addition):

rhn-proxy-activate should honour options from rhn.conf above ones from up2date if /etc/rhn.rhn.conf is present (i.e. during reactivation)
Comment 4 Lukas Pramuk 2013-09-23 08:42:06 EDT
/etc/rhn.rhn.conf not present -> parse up2date for options
      -//-            present -> parse rhn.conf for options
Comment 5 Lukas Pramuk 2013-09-23 09:35:43 EDT
I'm sceptical whether the parsing of up2date is needed at all.

- up2date file is parsed by configure-proxy.sh install script anyway and rhn-proxy-activate is run within using parsed options. No need for rhn-proxy-activate to parse up2date options itself. 

- during reactivation only rhn.conf file matters, it shouldn't mess things with up2date.

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