Bug 893017 - ovirt-shell can't connect to engine when using pyphon 2.6 (httplib.HTTPSConnection source_address error)
Summary: ovirt-shell can't connect to engine when using pyphon 2.6 (httplib.HTTPSConne...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.2.0
Assignee: Michael Pasternak
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On: 877897
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-08 13:21 UTC by Michael Pasternak
Modified: 2016-02-10 19:15 UTC (History)
12 users (show)

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.
Clone Of: 877897
Environment:
Last Closed: 2013-06-10 20:14:00 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0912 0 normal SHIPPED_LIVE new package: rhevm-sdk 2013-06-11 00:04:02 UTC

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


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