Hide Forgot
Description of problem: When using a HTTP proxy to connect from spacewalk client to spacewalk server I got an error stating that instance has no attribute '_set_hostport'. This seems to be related to a python httplib change as the '_set_hostport' method has been removed. The file on the client using this method is spacewalk/client/rhel/rhnlib/rhn/connections.py. Version-Release number of selected component (if applicable): Spacewalk client version RHEL 2.5 - python 2.7 How reproducible: Set a HTTP proxy between your client and the spacewalk server. Steps to Reproduce: 1. Setup the HTTP proxy 2. Register the client using: rhnreg_ks --proxy http://myproxy:proxy_port/ Actual results: Error in the log stating instance has no attribute '_set_hostport'. Expected results: Client correctly registered to the spacewalk server without connection errors. Additional info: I'm registering an AmazonLinux client to a spacewalk server. As AmazonLinux uses python2.7 I'm using spacewalk client from RHEL 7. It would be sufficient to remove _set_hostport and replace the connection using _set_tunnel as follows: con = httplib.HTTPConnection(proxyHost, proxyPort) con.set_tunnel("spacewalkServer", spacewalkServerport) I've modified rhel/rhnlib/rhn/connections.py on my client and the connection works.
This issue seems to be same we fixed in bug 1652859.