Bug 802446 - [ovirt] [vdsm] hibernate vm from vdsClient is broken: Attribute ERROR
Summary: [ovirt] [vdsm] hibernate vm from vdsClient is broken: Attribute ERROR
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.3.1
Assignee: Martin Polednik
QA Contact:
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-12 14:58 UTC by Haim
Modified: 2014-01-13 00:51 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-10-02 09:52:01 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Haim 2012-03-12 14:58:36 UTC
Description of problem:


# vdsClient 0 hibernate 6e7da0b2-a19f-4020-a9b6-4fd1982b61f6

Thread-5797::DEBUG::2012-03-12 16:34:49,054::BindingXMLRPC::857::vds::(wrapper) client [10.35.115.11]::call vmHibernate with ('6e7da0b2-a19f-4020-a9b6-4fd1982b61f6',) {}
Thread-5797::DEBUG::2012-03-12 16:34:49,055::API::407::vds::(migrate) {'hiberVolHandle': None, 'vmId': '6e7da0b2-a19f-4020-a9b6-4fd1982b61f6', 'mode': 'file'}
Thread-5797::ERROR::2012-03-12 16:34:49,055::BindingXMLRPC::872::vds::(wrapper) unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/BindingXMLRPC.py", line 862, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/BindingXMLRPC.py", line 328, in vmHibernate
    return vm.hibernate(hiberVolHandle)
  File "/usr/share/vdsm/API.py", line 330, in hibernate
    response = self.migrate(params)
  File "/usr/share/vdsm/API.py", line 419, in migrate
    self._getHibernationPaths(params['hiberVolHandle'])
  File "/usr/share/vdsm/API.py", line 548, in _getHibernationPaths
    paramImageID, paramVolumeID = hiberVolHandle.split(',')
AttributeError: 'NoneType' object has no attribute 'split'

problem: 
- there is a sync problem between API and vdsClient, API requires volume ids (list) along with vmId, while vdsClient requires vmId.

Comment 1 Maor 2013-03-24 12:57:34 UTC
This issue was not addressed, for over a year, and it is marked as virt, can you please assign it to someone, so the issue can be closed?

Comment 2 Michal Skrivanek 2013-08-19 10:25:29 UTC
the volume handle parameter should be mandatory. vdsClient doesn't require/send it and also the default in BindingXMLRPC.py is None

Comment 3 Michal Skrivanek 2013-10-02 09:52:01 UTC
merged, will be in 3.3.1


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