Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1148483

Summary: When importing a VM from an Export domain into an iSCSI data domain, sometimes, an error is thrown on the first attempt
Product: Red Hat Enterprise Virtualization Manager Reporter: lkuchlan <lkuchlan>
Component: vdsmAssignee: Fred Rolland <frolland>
Status: CLOSED WONTFIX QA Contact: Aharon Canan <acanan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: amureini, bazulay, ecohen, gklein, lkuchlan, lpeer, lsurette, scohen, tnisan, yeylon, ylavi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-22 08:31:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Engine and vdsm logs none

Description lkuchlan 2014-10-01 14:38:46 UTC
Created attachment 943085 [details]
Engine and vdsm logs

Description of problem:

When importing a VM from an Export domain into an iSCSI domain, Sometimes, an error is thrown on the first attempt.

Abstract from vdsm log:

67cee885-35b1-47a8-8e15-37fef91deb68::ERROR::2014-10-01        11:07:53,429::task::866::Storage.TaskManager.Task::(_setError)  Task=`67cee885-35b1-47a8-8e15-37fef91deb68`::Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 873, in _run
    return fn(*args, **kargs)
  File "/usr/share/vdsm/storage/task.py", line 334, in run
    return self.cmd(*self.argslist, **self.argsdict)
  File "/usr/share/vdsm/storage/securable.py", line 77, in wrapper
    return method(self, *args, **kwargs)
  File "/usr/share/vdsm/storage/sp.py", line 1508, in copyImage
    postZero, force)
  File "/usr/share/vdsm/storage/image.py", line 750, in copyCollapsed
    (dstVolUUID, str(e)))
CopyImageError: low level Image copy failed: ("Destination volume aae1c36e-499b-424a-9b5a-517361f66c30 error: [Errno 17] File exists: '/rhev/data-center/00000002-0002-0002-0002-0000000002ec/847b74d3-f092-40cf-9bb8
-19c7ae498e62/images/0b0375ba-0718-411c-9e15-1bba10a79d6c'",)


Version-Release number of selected component (if applicable):
3.5 vt3.1

How reproducible:
unknown 

Steps to Reproduce:

1. Create VM with 2 disks, one thin and one pre-allocated
2. Create template out of this VM
3. Export VM to the export domain
4. Import VM from export with iscsi Storage Domain 


Actual results:

Sometimes an error thrown on the first attempt.

Expected results:

The import should be done on the first attempt.

Additional info:

Comment 1 Vered Volansky 2014-11-10 14:30:23 UTC
Why create a template, how is this related to the flow?
I'm assuming the whole flow used default checks in checkboxes.
Currently the above flow with defaults works for me.

Comment 2 lkuchlan 2014-11-13 10:03:16 UTC
(In reply to Vered Volansky from comment #1)
> Why create a template, how is this related to the flow?
you don't have to create a template   
> I'm assuming the whole flow used default checks in checkboxes.
correct
> Currently the above flow with defaults works for me.
that's why i mentioned that it does not 100% reproducible

Comment 4 Yaniv Lavi 2015-01-20 13:52:27 UTC
Doesn't seem critical moving to 3.6. will move back is customers complain.