Bug 1837911

Summary: Can't edit a LUN disk attached to a VM from the VM->Disks screen
Product: [oVirt] ovirt-engine Reporter: shani <sleviim>
Component: BLL.StorageAssignee: shani <sleviim>
Status: CLOSED CURRENTRELEASE QA Contact: Evelina Shames <eshames>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: aefrat, bugs, eshenitz, lsvaty, sfishbai
Target Milestone: ovirt-4.4.1Keywords: Regression, TestBlocker
Target Release: 4.4.1.3Flags: pm-rhel: ovirt-4.4+
pm-rhel: blocker?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.1.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-08 08:24: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.log none

Description shani 2020-05-20 08:33:29 UTC
Created attachment 1690094 [details]
engine.log

Description of problem:
When trying to edit a LUN disk attached to a VM from the VM->Disks screen, and after pressing 'OK', an error is being shown and the operation fails.
Editing the disk from Storage->Disks screen works fine.

The error:
2020-05-20 11:20:24,422+03 ERROR [org.ovirt.engine.core.bll.storage.disk.UpdateDiskCommand] (default task-57) [0fb02096-bed8-4a4b-b812-b182330ebd7d] Exception: java.lang.ClassCastException: class org.ovirt.engine.core.common.businessentities.storage.LunDisk cannot be cast to class org.ovirt.engine.core.common.businessentities.storage.DiskImage (org.ovirt.engine.core.common.businessentities.storage.LunDisk and org.ovirt.engine.core.common.businessentities.storage.DiskImage are in unnamed module of loader 'org.ovirt.engine.core.common' @2d954882)
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.storage.disk.UpdateDiskCommand.lockImageInDb(UpdateDiskCommand.java:1050)
...
[see full log]

Version-Release number of selected component (if applicable):
4.4.0.4_master-gitc5b6568e0cf

How reproducible:
100%

Steps to Reproduce:
Try Editing a LUN disk attached to a VM from VM->Disk screen.

Actual results:
The operation fails.

Expected results:
The operation should work.

Additional info:
engine.log

Comment 1 Eyal Shenitzky 2020-05-25 14:14:23 UTC
*** Bug 1838505 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Svaty 2020-05-26 10:07:40 UTC
Adding Regression and TestBlocker from duplicate bug.

Comment 3 RHEL Program Management 2020-05-26 10:07:48 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 4 Evelina Shames 2020-06-25 06:30:26 UTC
Verified on engine-4.4.1.5-0.17.el8ev

Comment 5 Sandro Bonazzola 2020-07-08 08:24:49 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.