Bug 678342

Summary: rhn-satellite-activate gives Traceback while upgrading utilising web proxy
Product: Red Hat Satellite 5 Reporter: david.telfer
Component: UpgradesAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 540   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-06 11:10:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 462714    

Description david.telfer 2011-02-17 16:17:18 UTC
Description of problem:
Activation of

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 david.telfer 2011-02-17 16:26:40 UTC
*** Apologies - accidentally submitted report prior to completion ****

Description of problem:

When following documented satellite upgrade process, existing web proxy details are not updated in new /etc/rhn/rhn.conf file.  The documentation does not indicate that this is the case, and following the process leads to a Traceback error message due to inability to connect directly to satellite.rhn.redhat.com.

Version-Release number of selected component (if applicable):
5.3.0 upgrading to 5.4

How reproducible:

Follow documented process to upgrade satellite server while on a network that requires use of a proxy server to connect to satellite.rhn.redhat.com.  

Steps to Reproduce:
1.

Running the following command without editing the rhn.conf proxy config.

rhn-satellite-activate --rhn-cert <path-to-cert> --ignore-version-mismatch

Actual results:

RHN_PARENT: satellite.rhn.redhat.com

ERROR: unhandled exception occurred:
Traceback (most recent call last):
  File "/usr/bin/rhn-satellite-activate", line 45, in ?
    sys.exit(abs(mod.main() or 0))
  File "/usr/share/rhn/satellite_tools/rhn_satellite_activate.py", line 603, in main
    activateSatellite_remote(options)
  File "/usr/share/rhn/satellite_tools/rhn_satellite_activate.py", line 297, in activateSatellite_remote
    ret = s.satellite.deactivate_satellite(systemid, rhn_cert)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 649, in __call__
    return self._send(self._name, args)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 383, in _request
    self._handler, request, verbose=self._verbose)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 171, in request
    headers, fd = req.send_http(host, handler)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 702, in send_http
    self._connection.connect()
  File "/usr/lib/python2.4/site-packages/rhn/connections.py", line 193, in connect
    sock.connect((self.host, self.port))
  File "<string>", line 1, in connect
socket.error: (113, 'No route to host')


Expected results:

return of the following string only;
RHN_PARENT: satellite.rhn.redhat.com



Additional info:

Comment 2 Milan Zázrivec 2012-08-06 11:10:46 UTC

*** This bug has been marked as a duplicate of bug 719629 ***

Comment 3 Milan Zázrivec 2012-08-06 11:11:57 UTC
From bug #719629:

The issue described in this bug report will be resolved in the Satellite
upgrades by instructing customers to:
1. create an answer file containing correct http proxy settings
  (preparations.txt)
2. use the answer file in the Satellite upgrade (add --answer-file=...
   option when running install.pl --upgrade).