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

Bug 1686280

Summary: [cinderLib] - Kaminario backend- CloneVM fails and non managed disk does not roll back and remains in "LOCKED' state
Product: [oVirt] ovirt-engine Reporter: Avihai <aefrat>
Component: BLL.StorageAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED CURRENTRELEASE QA Contact: Shir Fishbain <sfishbai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.1CC: bugs, bzlotnik, eshenitz, lsvaty, sfishbai, tnisan
Target Milestone: ovirt-4.4.3Flags: pm-rhel: ovirt-4.4+
Target Release: 4.4.3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.3.3 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-29 09:02:14 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:
Bug Depends On:    
Bug Blocks: 1539837    
Attachments:
Description Flags
engine and vdsm logs none

Description Avihai 2019-03-07 07:28:30 UTC
Created attachment 1541712 [details]
engine and vdsm logs

Description of problem:
VM clone with this scenario running with Kaninario backend fails and the file-based disk does not roll back and stay in 'LOCKED' state:

clone VM 'vm1_clone' is created but without ANY disks -> not file-based disk neither block managed SD disk.


Engine log:

2019-03-06 16:36:15,699+02 INFO  [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (EE-ManagedThreadFactory-engineScheduled-Thread-59) [] SPMAsyncTask::PollTask: Polling task '79a9d5f8-a248-4ed2-b991-c99bc2496346' (Parent Command 'CopyImageGroup', Parameters Type 'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters') returned status 'running'.
2019-03-06 16:36:15,700+02 INFO  [org.ovirt.engine.core.bll.tasks.AsyncTaskManager] (EE-ManagedThreadFactory-engineScheduled-Thread-59) [] Finished polling Tasks, will poll again in 10 seconds.
2019-03-06 16:36:18,519+02 ERROR [org.ovirt.engine.core.common.utils.cinderlib.CinderlibExecutor] (default task-9) [1b5eb7b3-f4d0-4b7e-988a-7c82f9675423] cinderlib execution failed: Traceback (most recent call last):
  File "./cinderlib-client.py", line 187, in main
    args.command(args)
  File "./cinderlib-client.py", line 304, in clone_volume
    vol.clone(id=args.cloned_vol_id)
  File "/usr/lib/python2.7/site-packages/cinderlib/objects.py", line 492, in clone
    new_vol._raise_with_resource()
  File "/usr/lib/python2.7/site-packages/cinderlib/objects.py", line 222, in _raise_with_resource
    six.reraise(*exc_info)
  File "/usr/lib/python2.7/site-packages/cinderlib/objects.py", line 485, in clone
    new_vol._ovo, self._ovo)
  File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/kaminario/kaminario_common.py", line 120, in func_wrapper
    ret = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/kaminario/kaminario_common.py", line 663, in create_cloned_volume
    raise exception.KaminarioCinderDriverException(reason=ex)
KaminarioCinderDriverException: KaminarioCinderDriver failure: KaminarioCinderDriver failure: 'initiator'

2019-03-06 16:36:18,629+02 ERROR [org.ovirt.engine.core.bll.storage.disk.managedblock.CloneSingleManagedBlockDiskCommand] (default task-9) [1b5eb7b3-f4d0-4b7e-988a-7c82f9675423] Transaction rolled-back for command 'org.ovirt.engine.core.bll.storage.disk.managedblock.CloneSingleManagedBlockDiskCommand'.


Version-Release number of selected component (if applicable):
4.3.2.1

How reproducible:
100%

Steps to Reproduce:
1.Create a Kaminario managed block SD
2.Create a VM with 2 disks(file based disk and a managed block storage disk from SD of step 1)
3.Clone the VM

Actual results:
Clone VM fails and the file base disk remains stuck in 'Locked' state.

Expected results:


Additional info:
I tested with HP3PAR, Netapp and CEPH, and this flow work, issue seen only on Kaminario.

Comment 1 Benny Zlotnik 2019-03-11 10:27:24 UTC
We need to improve the failure handling, but regardless, it is not possible to perform any operation that perform clone volume with the kaminario backend as it uses host-assisted copy

Comment 6 Sandro Bonazzola 2020-11-11 06:45:45 UTC
This bugzilla is included in oVirt 4.4.3 release, published on November 10th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.3 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.