Bug 1979797

Summary: Ask user for confirmation when the deleted storage domain has leases of VMs that has disk in other SDs
Product: Red Hat Enterprise Virtualization Manager Reporter: nijin ashok <nashok>
Component: ovirt-engineAssignee: Bella Khizgiyaev <bkhizgiy>
Status: CLOSED ERRATA QA Contact: Ilia Markelov <imarkelo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.6CC: ahadas, emarcus, eshames
Target Milestone: ovirt-4.5.0Keywords: ZStream
Target Release: 4.5.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.5.0 Doc Type: Enhancement
Doc Text:
In this release, a new warning message displays in the removing storage domain window if the selected domain has leases for entities that were raised on a different storage domain.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-26 16:22:29 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 nijin ashok 2021-07-07 05:27:41 UTC
Description of problem:

This is a follow-up of https://bugzilla.redhat.com/show_bug.cgi?id=1976088#c17.

As a part of decommissioning a storage domain, users migrates all the disks and removed the SD from RHV-M. The lease volume is not migrated automatically when a user migrates a disk and they usually miss changing it manually. Although there is a warning in the events, it gets unnoticed. I think it would be great if there is a pop-up warning asking the user to confirm the removal of the storage domain when it still has a lease for VMs that are having disks in other SDs.


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

rhvm-4.4.6.8-0.1.el8ev.noarch

Steps to Reproduce:

[1] Create a VM with the lease.
[2] Move the disk to another storage domain.
[3] Detach and remove the storage domain. There is only an audit log event that gets unnoticed.

Comment 1 Bella Khizgiyaev 2021-10-18 08:10:51 UTC
The warning message was added at the storage domain removal window.

It can be verified with the steps listed above.

Comment 10 Ilia Markelov 2022-03-25 09:26:09 UTC
Verified

Got the warning message in the "Detach Storage" window while removing the domain, that was set as the lease volume, after moving the VM's disk.

Version 4.5.0.1-601.f26e9ea8cac5.3.el8ev 
vdsm-4.50.0.10-1.el8ev.x86_64

Comment 15 errata-xmlrpc 2022-05-26 16:22:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: RHV Manager (ovirt-engine) [ovirt-4.5.0] security update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2022:4711