Bug 682511

Summary: vdsClient over ssl does not work with python 2.7
Product: [Retired] oVirt Reporter: Oded Ramraz <oramraz>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, bazulay, danken, iheim, srevivo, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.9.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-10 20:46:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Oded Ramraz 2011-03-06 09:58:58 UTC
Description of problem:

When i try to run vdsClient secure commands from python 2.7 ( On Fedora 14 host ) i get the following exception:

Traceback (most recent call last):
  File "/usr/share/vdsm/vdsClient.py", line 1984, in <module>
    code, message = commands[command][0](commandArgs)
  File "/usr/share/vdsm/vdsClient.py", line 304, in do_getVdsStats
    return self.ExecAndExit(self.s.getVdsStats())
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1570, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/site-packages/M2Crypto/m2xmlrpclib.py", line 64, in request
    return self.parse_response(h.getfile())
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1449, in parse_response
    if response.getheader("Content-Encoding", "") == "gzip":
AttributeError: '_fileobject' object has no attribute 'getheader'



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


How reproducible:


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


Expected results:


Additional info:

Comment 2 Dan Kenigsberg 2011-09-12 10:18:12 UTC
http://gerrit.usersys.redhat.com/800