Bug 1827065

Summary: Export VM to data domain with low space on source domain to different dest domain is not possible when it should.
Product: [oVirt] ovirt-engine Reporter: Evelina Shames <eshames>
Component: BLL.StorageAssignee: Bella Khizgiyaev <bkhizgiy>
Status: CLOSED CURRENTRELEASE QA Contact: Evelina Shames <eshames>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: aoconnor, bkhizgiy, bugs, eshenitz, lsvaty, michal.skrivanek, sfishbai, tnisan
Target Milestone: ovirt-4.4.1Flags: pm-rhel: ovirt-4.4+
aoconnor: blocker-
Target Release: 4.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.1.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-08 08:27:09 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 Evelina Shames 2020-04-23 07:44:09 UTC
Description of problem:
Export VM to data domain with low space on source domain to different destination domain is not possible when it should.

Engine Log:
2020-04-23 10:29:15,752+03 INFO  [org.ovirt.engine.core.bll.CloneVmNoCollapseCommand] (default task-17) [c4376df8-df6f-4df0-ade4-7db043be7e8a] Lock Acquired to object 'EngineLock:{exclusiveLocks='[vm-space-export=VM_NAME]', sharedLocks='[
ada9607e-1b96-46c5-8f4e-43db0942187a=DISK, 4163baa6-df18-4593-b967-87da5d974c70=VM]'}'
2020-04-23 10:29:15,960+03 WARN  [org.ovirt.engine.core.bll.CloneVmNoCollapseCommand] (default task-17) [] Validation of action 'CloneVmNoCollapse' failed for user admin@internal-authz. Reasons: VAR__ACTION__ADD,VAR__TYPE__VM,ACTION_TYPE_
FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN,$storageName iscsi_0
2020-04-23 10:29:15,961+03 INFO  [org.ovirt.engine.core.bll.CloneVmNoCollapseCommand] (default task-17) [] Lock freed to object 'EngineLock:{exclusiveLocks='[vm-space-export=VM_NAME]', sharedLocks='[ada9607e-1b96-46c5-8f4e-43db0942187a=DI
SK, 4163baa6-df18-4593-b967-87da5d974c70=VM]'}'
2020-04-23 10:29:15,973+03 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-17) [] Operation Failed: [Cannot add VM. Low disk space on Storage Domain iscsi_0.]


Version-Release number of selected component (if applicable):
engine-4.4.0-0.33.master.el8ev

How reproducible:
100%

Steps to Reproduce:
1.Create VM with XG disk 
2.Try to export VM to data domain that has more then XG free space and the source SD has less then XG free space.

Actual results:
Operation is blocked with the following message:
[Cannot add VM. Low disk space on Storage Domain iscsi_0.]
(My source sd was iscsi_0)

Expected results:
Operation should succeed.

Comment 1 RHEL Program Management 2020-04-24 13:53:18 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 RHEL Program Management 2020-05-15 14:10:58 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Lukas Svaty 2020-05-18 07:55:27 UTC
Is this flow blocking multiple testcases (TestBlocker) or should the flag be removed?

Comment 4 Evelina Shames 2020-05-27 06:54:06 UTC
(In reply to Lukas Svaty from comment #3)
> Is this flow blocking multiple testcases (TestBlocker) or should the flag be
> removed?

No, removing the flag.

Comment 5 Bella Khizgiyaev 2020-06-04 13:57:51 UTC
Steps to Reproduce:
1.Create VM with XG disk 
2.Try to export VM to data domain that has more then XG free space and the source SD has less then XG free space.

Operation should be seccsesfull.

Comment 6 Sandro Bonazzola 2020-06-19 09:42:06 UTC
This bug is in modified state and targeting 4.4.3. Can this be re-targeted to 4.4.1?

Comment 7 Evelina Shames 2020-06-25 06:52:49 UTC
Verified on rhv-4.4.1-5.

Comment 8 Sandro Bonazzola 2020-07-08 08:27:09 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

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