Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 893017

Summary: ovirt-shell can't connect to engine when using pyphon 2.6 (httplib.HTTPSConnection source_address error)
Product: Red Hat Enterprise Virtualization Manager Reporter: Michael Pasternak <mpastern>
Component: ovirt-engine-sdkAssignee: Michael Pasternak <mpastern>
Status: CLOSED ERRATA QA Contact: Ilia Meerovich <iliam>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: aburden, acathrow, bazulay, dreyou, dyasny, ecohen, iheim, oramraz, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: SF4 Doc Type: Bug Fix
Doc Text:
Previously, an unexpected parameter, 'source_address', would cause an error when using Python 2.6 to connect to the Command Line Interface (CLI). This parameter was included in 'ovirtsdk/web/httpsconnection.py' using Python 2.7 version of 'httplib.HTTPSConnection'. Now, the 'source_address' parameter has been removed from 'httplib.HTTPSConnection initialization' and does not cause the error when using Python 2.6 to connect to the CLI.
Story Points: ---
Clone Of: 877897 Environment:
Last Closed: 2013-06-10 20:14:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 877897    
Bug Blocks:    

Description Michael Pasternak 2013-01-08 13:21:55 UTC
+++ This bug was initially created as a clone of Bug #877897 +++

Receive error when trying to connect to engine:

error: __init__() got an unexpected keyword argument 'source_address'

Found in versions 3.2.0.3 and 3.2.0.4

Discover that this happen because "ovirtsdk/web/httpsconnection.py" using Python 2.7 version of httplib.HTTPSConnection (with source_address parameter).

If remove source_address parameter from httplib.HTTPSConnection initialization, ovirt-shell works properly under python 2.6

--- Additional comment from Michael Pasternak on 2012-11-21 04:48:19 EST ---

http://gerrit.ovirt.org/#/c/9375/

Comment 1 Michael Pasternak 2013-01-08 13:25:47 UTC
to verify this bug, enough running rhevm-shell on RHEL6

Comment 3 Ilia Meerovich 2013-02-10 19:53:05 UTC
rhevm-shell is running ok on RHEL6.4 beta:
[imeerovi@imeerovi ART]$ /usr/bin/rhevm-shell -c --url=https://leonid_rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I 


 ==========================================
 >>> connected to RHEVM manager 3.1.0.0 <<<
 ==========================================


        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (connected)]# exit
[imeerovi@imeerovi ART]$ python -V
Python 2.6.6
[imeerovi@imeerovi ART]$ cat /etc/issue
Red Hat Enterprise Linux Workstation release 6.4 Beta (Santiago)
Kernel \r on an \m

[imeerovi@imeerovi ART]$ rpm -q rhevm-cli
rhevm-cli-3.2.0.3-1.el6ev.noarch
[imeerovi@imeerovi ART]$

Comment 5 errata-xmlrpc 2013-06-10 20:14:00 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.

http://rhn.redhat.com/errata/RHBA-2013-0912.html