Bug 1927718

Summary: [RFE] Provide Reset option for VMs
Product: [oVirt] ovirt-engine Reporter: Jean-Louis Dupond <jean-louis>
Component: BLL.VirtAssignee: Jean-Louis Dupond <jean-louis>
Status: CLOSED CURRENTRELEASE QA Contact: Qin Yuan <qiyuan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.5.3CC: ahadas, bugs, dfodor
Target Milestone: ovirt-4.4.6Keywords: FutureFeature
Target Release: 4.4.6.3Flags: ahadas: ovirt-4.4?
pm-rhel: planning_ack?
pm-rhel: devel_ack+
pm-rhel: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.6.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1942494 (view as bug list) Environment:
Last Closed: 2021-05-05 05:36:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1933974    
Bug Blocks: 1942494    

Description Jean-Louis Dupond 2021-02-11 11:50:13 UTC
It would be nice to have an option in oVirt to reset (libvirt reset) a VM.
The only way now to restart a hanging VM is doing a Power Off and start.
But this takes more time, shuts off the console, etc.

While a reset is quick, you can keep the console open etc. And I guess its not that hard to implement :)

It was already requested in #1136819 years ago, but seems like that has been closed as duplicate of some irrelevant bug.

Comment 1 RHEL Program Management 2021-02-11 14:39:09 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 2 Qin Yuan 2021-04-15 14:17:48 UTC
Verified with:
ovirt-engine-4.4.6.3-0.8.el8ev.noarch
vdsm-4.40.60.3-1.el8ev.x86_64
libvirt-7.0.0-13.module+el8.4.0+10604+5608c2b4.x86_64

Steps:
1. Create and run a VM(used latest-rhel-guest-image-8.3-infra template)
2. Open VM console
3. Reset VM on UI
4. Reset VM via API
   POST /ovirt-engine/api/vms/22c3cc4b-921e-42b2-ac3b-17426100dfc4/reset
   <action>
	<async>true</async>
   </action>
5. Update a VM parameter which requires VM restart, such as enabling Smartcard, then reset the VM

Results:
1. On UI, Reset button is in the dropdown list of Reboot, Resetting VM via Reset button succeeds, VM console remains connected.
2. Resetting VM via API succeeds, VM console remains connected.
3. Smartcard is enabled after VM is reset.

Comment 3 Sandro Bonazzola 2021-05-05 05:36:04 UTC
This bugzilla is included in oVirt 4.4.6 release, published on May 4th 2021.

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