Bug 1842272

Summary: When trying to export VM to a different SD the VM clone creates on the source SD instead.
Product: [oVirt] ovirt-engine Reporter: Bella Khizgiyaev <bkhizgiy>
Component: BLL.StorageAssignee: Bella Khizgiyaev <bkhizgiy>
Status: CLOSED CURRENTRELEASE QA Contact: Ilan Zuckerman <izuckerm>
Severity: medium Docs Contact:
Priority: high    
Version: 4.4.0CC: bugs, eshenitz, mtessun, sfishbai
Target Milestone: ovirt-4.4.2Flags: pm-rhel: ovirt-4.4+
mtessun: planning_ack+
sfishbai: testing_ack+
Target Release: 4.4.2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.2.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-18 07:12:55 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:

Description Bella Khizgiyaev 2020-05-31 13:41:34 UTC
Description of problem:

When trying to export VM to different SD the operation executed successfully but the new disk of the exported VM being created on the source SD instead on the dest  SD, same error for both collapse snapshot and not.

How reproducible:

100% reproducible 

Steps to Reproduce:
1. Create a VM on some SD.
2. Try to export it to a different SD, the action should be successful.
3. Check if the exported VM disk was created on the dest SD.

Actual results:

the exported VM disk is created on the original SD.

Comment 1 RHEL Program Management 2020-06-01 14:33:45 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 2 Bella Khizgiyaev 2020-07-09 11:14:14 UTC
A patch with a fix was uploaded, should be working now.

Steps to reproduce:

1. Create a VM on some SD.
2. Try to export it to a different SD, check the "collapse snapshots" option.
3. Check if the exported VM disk was created on the chosen destination SD.

the operation should be successful and the disk will be created on the dest SD.

Comment 3 Ilan Zuckerman 2020-08-17 12:22:16 UTC
Verified on rhv-release-4.4.2-3-001.noarch according steps from comment #2

1. Create vm on iscsi_0 SD
2. Make a snapshot of it.
3. Export the vm to iscsi_1 SD with 'collapse snapshots' option enabled.

Expected:
VM exported to iscsi_1, and its disk resides on iscsi_1

Actual:
As expected

Comment 4 Sandro Bonazzola 2020-09-18 07:12:55 UTC
This bugzilla is included in oVirt 4.4.2 release, published on September 17th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.2 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.