Bug 1032419

Summary: getVdsHardwareInfo fails with 'TransportWrapper instance has no attribute 'request'
Product: [Retired] oVirt Reporter: Yedidyah Bar David <didi>
Component: vdsmAssignee: Piotr Kliczewski <pkliczew>
Status: CLOSED NEXTRELEASE QA Contact: Haim <hateya>
Severity: high Docs Contact:
Priority: urgent    
Version: 3.3CC: abaron, acathrow, bazulay, danken, iheim, mgoldboi, sbonazzo, yeylon
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-27 11:25:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yedidyah Bar David 2013-11-20 07:15:05 UTC
Description of problem:

When running 'hosted-engine --deploy' on a specific setup (a machine which already had hosted-engine installed and setup and was (partially?) cleaned up), vdsmd fails with the above. vdsm packages installed from the nightly repo of 2013-11-19.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 142, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/system/vdsmenv.py", line 144, in _late_setup
    self._connect()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/system/vdsmenv.py", line 78, in _connect
    self.logger.debug(str(serv.s.getVdsHardwareInfo()))
  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 1574, in __request
    response = self.__transport.request(
AttributeError: TransportWrapper instance has no attribute 'request'

Comment 1 Yedidyah Bar David 2013-11-20 07:26:00 UTC
Fails the same way also with latest nightly vdsm-4.13.0-153.git1f93f81.fc19.x86_64

Comment 2 Yedidyah Bar David 2013-11-20 07:29:52 UTC
Worked around by doing:

vdsm-tool configure --force

Comment 3 Yedidyah Bar David 2013-11-20 07:33:47 UTC
Sorry, it's not at all during service vdsmd start. Might be a bug in hosted-engine, I'll open one if needed.

Comment 4 Sandro Bonazzola 2013-11-20 07:38:12 UTC
setup/system/vdsmenv.py", line 78, in _connect
    self.logger.debug(str(serv.s.getVdsHardwareInfo()))
  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 1574, in __request
    response = self.__transport.request(
AttributeError: TransportWrapper instance has no attribute 'request'

Here I'm not sure if it's a xmlrpclib.py bug or a VDSM client bug.
It seems that whoever creates the TransportWrapper used by that call is missing to define request attribute.

Comment 5 Yedidyah Bar David 2013-11-20 07:46:47 UTC
*** Bug 1032427 has been marked as a duplicate of this bug. ***

Comment 6 Piotr Kliczewski 2013-11-27 11:25:36 UTC
Bug do not exists after fix introduced for 982065.

Comment 7 Dan Kenigsberg 2013-11-27 12:10:37 UTC
Since it WAS a bug in the master branch, a better closing reason is NEXTRELEASE.