engine [Storage Live Migration]: engine allows migration of shared disk if its not attached to more than one vm -> Task will fail in vdsm with no roll back on snapshot
Created attachment 638067[details]
logs
Description of problem:
engine allows live migration of shared disk if its not attached to more than one vm.
migration will fail in vdsm but snapshot will not be rolled back.
Version-Release number of selected component (if applicable):
si23
How reproducible:
100%
Steps to Reproduce:
1. create and run a vm with multiple disk and 1 shared disk
2. move shared disk
3.
Actual results:
migration will be sent to vdsm which will fail action
Expected results:
we should not send command to vdsm
Additional info: logs
55e83c5-2158-432c-8077-f8591dd7f240::ERROR::2012-11-04 18:51:00,211::task::853::TaskManager.Task::(_setError) Task=`255e83c5-2158-432c-8077-f8591dd7f240`::Unexpected error
Traceback (most recent call last):
File "/usr/share/vdsm/storage/task.py", line 861, in _run
return fn(*args, **kargs)
File "/usr/share/vdsm/storage/task.py", line 320, in run
return self.cmd(*self.argslist, **self.argsdict)
File "/usr/share/vdsm/storage/securable.py", line 63, in wrapper
return f(self, *args, **kwargs)
File "/usr/share/vdsm/storage/sp.py", line 1797, in syncImageData
syncType)
File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib64/python2.6/contextlib.py", line 113, in nested
yield vars
File "/usr/share/vdsm/storage/sp.py", line 1797, in syncImageData
syncType)
File "/usr/share/vdsm/storage/image.py", line 670, in syncData
{'srcChain': srcChain, 'dstChain': dstChain})
File "/usr/share/vdsm/storage/image.py", line 551, in _interImagesCopy
srcLeafVol = chains['srcChain'][-1]
IndexError: list index out of range
Created attachment 638067 [details] logs Description of problem: engine allows live migration of shared disk if its not attached to more than one vm. migration will fail in vdsm but snapshot will not be rolled back. Version-Release number of selected component (if applicable): si23 How reproducible: 100% Steps to Reproduce: 1. create and run a vm with multiple disk and 1 shared disk 2. move shared disk 3. Actual results: migration will be sent to vdsm which will fail action Expected results: we should not send command to vdsm Additional info: logs 55e83c5-2158-432c-8077-f8591dd7f240::ERROR::2012-11-04 18:51:00,211::task::853::TaskManager.Task::(_setError) Task=`255e83c5-2158-432c-8077-f8591dd7f240`::Unexpected error Traceback (most recent call last): File "/usr/share/vdsm/storage/task.py", line 861, in _run return fn(*args, **kargs) File "/usr/share/vdsm/storage/task.py", line 320, in run return self.cmd(*self.argslist, **self.argsdict) File "/usr/share/vdsm/storage/securable.py", line 63, in wrapper return f(self, *args, **kwargs) File "/usr/share/vdsm/storage/sp.py", line 1797, in syncImageData syncType) File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib64/python2.6/contextlib.py", line 113, in nested yield vars File "/usr/share/vdsm/storage/sp.py", line 1797, in syncImageData syncType) File "/usr/share/vdsm/storage/image.py", line 670, in syncData {'srcChain': srcChain, 'dstChain': dstChain}) File "/usr/share/vdsm/storage/image.py", line 551, in _interImagesCopy srcLeafVol = chains['srcChain'][-1] IndexError: list index out of range