Bug 1838089 - [RFE] Please allow placing domain in maintenance mode with suspended VM
Summary: [RFE] Please allow placing domain in maintenance mode with suspended VM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.3.9.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Arik
QA Contact: sshmulev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-20 13:13 UTC by Mai Ling
Modified: 2022-04-20 06:33 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.5.0
Doc Type: Enhancement
Doc Text:
Storage domain can now be deactivated and set to maintenance even if there are suspended VMs. Note, a suspended VM will be able to run only when all the storage domains disks (including memory disks) are active.
Clone Of:
Environment:
Last Closed: 2022-04-20 06:33:59 UTC
oVirt Team: Storage
Embargoed:
pm-rhel: ovirt-4.5?
pm-rhel: planning_ack?
pm-rhel: devel_ack+
pm-rhel: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 116959 0 master MERGED core: Allow placing domain in maintenance mode with suspended VM 2021-10-07 09:56:11 UTC

Description Mai Ling 2020-05-20 13:13:36 UTC
Description of problem:
I want to power off the host and not shut down the virtual machines, but instead save their state.

Version-Release number of selected component (if applicable):
iso installed from https://resources.ovirt.org/pub/ovirt-4.3/iso/ovirt-node-ng-installer/4.3.9-2020031917/el7/ovirt-node-ng-installer-4.3.9-2020031917.el7.iso

How reproducible:
Always

Steps to Reproduce:
1. suspend all running vms that have disks on the storage domain
2. storage - storage domains - domain name - data center - maintenance
3.

Actual results:
When I attempt to do this on oVirt, I get the following message:

"Error while executing action: Cannot deactivate Storage. VMs in a state other than "Down" were detected.
-Please ensure all VMs associated with this Storage Domain are stopped and in the Down state first."

Expected results:
Allow placing the domain into maintenance mode, and instead of forbidding the action only warn that there are suspended vm's on it.

Additional info:
I can do this on a regular enterprise linux libvirt host but not on oVirt.

Comment 1 Michal Skrivanek 2020-06-23 12:34:26 UTC
This request is not currently committed to 4.4.z, moving it to 4.5

Comment 3 RHEL Program Management 2021-05-24 07:43:22 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 5 Arik 2021-12-06 15:50:15 UTC
Restoring from hibernation might fail after moving the memory volume (seems to be related to the fact the image format could change but not sure - I got an error about image magic) - thus, set it to high

Comment 6 Arik 2021-12-06 15:54:30 UTC
high severity

Comment 8 sshmulev 2022-03-06 14:55:36 UTC
Verified.

Versions:
ovirt-engine-4.5.0-743c0a787472.211.el8ev
vdsm-4.50.0.7-1.el8ev

Steps to Reproduce:
1. Suspend all running vms that have disks on the storage domain
2. storage - storage domains - domain name - data center - maintenance
3. Activate the SD again and run the VMS


Results as expected:
The SD was set to maintance mode when the VMs using it are suspended.
There were no warnings or erros during the steps.
After activating the SD back, the VMs run without any errors.

Comment 10 Sandro Bonazzola 2022-04-20 06:33:59 UTC
This bugzilla is included in oVirt 4.5.0 release, published on April 20th 2022.

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