Created attachment 922866[details]
vdsm log showing the endless loop
Description of problem:
If an image volume chain has a cycle, Image.getChain will loop forever, trying to sort the chain, until all memory is used.
Version-Release number of selected component (if applicable):
master as of 2014-07-31
How reproducible:
Always
Steps to Reproduce:
1. Create a cycle in volume parent uuids, for example, change volume parent to itself
Actual results:
getChain looping endlessly
Expected results:
getChain raise an exception since the volume chain is illegal.
Created attachment 922866 [details] vdsm log showing the endless loop Description of problem: If an image volume chain has a cycle, Image.getChain will loop forever, trying to sort the chain, until all memory is used. Version-Release number of selected component (if applicable): master as of 2014-07-31 How reproducible: Always Steps to Reproduce: 1. Create a cycle in volume parent uuids, for example, change volume parent to itself Actual results: getChain looping endlessly Expected results: getChain raise an exception since the volume chain is illegal.