Bug 781970

Summary: [vdsm] Migration fails due to changes in xmlrpclib in Python 2.7
Product: [Retired] oVirt Reporter: Jakub Libosvar <jlibosva>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: abaron, acathrow, bazulay, iheim, mgoldboi, peet, ykaul
Target Milestone: ---   
Target Release: 3.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: v4.9.3.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm.log none

Description Jakub Libosvar 2012-01-16 08:23:02 UTC
Created attachment 555449 [details]
vdsm.log

Description of problem:
Having Fedora 16 as host - migrations don't work due to usage of Python 2.7 and it's site packages (xmlrpclib). I think there will be more issues like this, not only during migration.
I remember there were some issues when one wanted to use vdsm-cli with Python 2.7.

Version-Release number of selected component (if applicable):
vdsm-4.9.2-0.65.gitf945dc2.fc16.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Have two Fedora 16 hosts
2. Start VM
3. Try to migrate VM
  
Actual results:
Migration fails

Expected results:
Migration succeeds

Additional info:

Thread-1969::DEBUG::2012-01-16 09:05:20,994::vm::116::vm.Vm::(_setupVdsConnection) vmId=`2522a424-fe67-47a4-a373-3f3308bf8b63`::Initiating connection with destination
Thread-1969::ERROR::2012-01-16 09:05:20,996::vm::122::vm.Vm::(_setupVdsConnection) vmId=`2522a424-fe67-47a4-a373-3f3308bf8b63`::Traceback (most recent call last):
  File "/usr/share/vdsm/vm.py", line 117, in _setupVdsConnection
    status = self.destServer.getVmStats(self._vm.id)
  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 1575, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1294, in single_request
    response = h.getresponse(buffering=True)
AttributeError: TcpkeepHTTP instance has no attribute 'getresponse'

Comment 1 Dan Kenigsberg 2012-02-01 17:02:16 UTC
This has been fixed by
http://gerrit.ovirt.org/1065

Comment 2 Itamar Heim 2012-08-09 08:03:22 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/

Comment 3 Itamar Heim 2012-08-09 08:04:05 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/