Description of problem: importing a vm with snapshots with "import more than once" will import the snapshots as disks instead of collapsing snapshots. Version-Release number of selected component (if applicable): si4 How reproducible: 100% Steps to Reproduce: 1. export a vm with snapshots 2. import the vm as 'import more than once' 3. Actual results: we are suppose to collaps the snapshots but we create the snapshots as additional disks. Expected results: we should collaps snapshots Additional info: both vdsm and backend logs attached Thread-341::WARNING::2012-06-07 18:48:34,976::blockVolume::99::Storage.Volume::(getVSize) Could not get size for vol 14a1733b-45a0-49b9-ab46-c64230585b54/b0043295-8c73-4252-9ed0-6715536e38ed using optimized methods Traceback (most recent call last): File "/usr/share/vdsm/storage/blockVolume.py", line 92, in getVSize return _getDeviceSize(lvm.lvPath(sdobj.sdUUID, volUUID)) / bs File "/usr/share/vdsm/storage/blockVolume.py", line 63, in _getDeviceSize with open(devPath, "rb") as f: IOError: [Errno 2] No such file or directory: '/dev/14a1733b-45a0-49b9-ab46-c64230585b54/b0043295-8c73-4252-9ed0-6715536e38ed' Thread-341::WARNING::2012-06-07 18:48:34,990::blockVolume::99::Storage.Volume::(getVSize) Could not get size for vol 14a1733b-45a0-49b9-ab46-c64230585b54/b0043295-8c73-4252-9ed0-6715536e38ed using optimized methods Traceback (most recent call last): File "/usr/share/vdsm/storage/blockVolume.py", line 92, in getVSize return _getDeviceSize(lvm.lvPath(sdobj.sdUUID, volUUID)) / bs File "/usr/share/vdsm/storage/blockVolume.py", line 63, in _getDeviceSize with open(devPath, "rb") as f: IOError: [Errno 2] No such file or directory: '/dev/14a1733b-45a0-49b9-ab46-c64230585b54/b0043295-8c73-4252-9ed0-6715536e38ed' Thread-341::DEBUG::2012-06-07 18:48:34,991::__init__::1164::Storage.Misc.excCmd::(_log) '/bin/dd iflag=direct skip=35 bs=512 if=/dev/14a1733b-45a0-49b9-ab46-c64230585b54/metadata count=1' (cwd None)
Created attachment 590762 [details] logs
this is a rhev backend bug. the snapshot persisted wrongfully as a disk. changing components
pushed upstream (http://gerrit.ovirt.org/#/c/5751/)
merged upstream (http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=ec7885daf8ee9e55d31ab6b904728fd6014adeb0)
verified on si10