Bug 1837911 - Can't edit a LUN disk attached to a VM from the VM->Disks screen
Summary: Can't edit a LUN disk attached to a VM from the VM->Disks screen
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.4.1
: 4.4.1.3
Assignee: shani
QA Contact: Evelina Shames
URL:
Whiteboard:
: 1838505 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-20 08:33 UTC by shani
Modified: 2020-07-08 08:24 UTC (History)
5 users (show)

Fixed In Version: ovirt-engine-4.4.1.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-08 08:24:49 UTC
oVirt Team: Storage
Embargoed:
pm-rhel: ovirt-4.4+
pm-rhel: blocker?


Attachments (Terms of Use)
engine.log (23.36 KB, text/plain)
2020-05-20 08:33 UTC, shani
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 109282 0 master MERGED core: prevent locking LUN disks in DB while updating the disks 2020-06-23 12:11:24 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.