Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 538442

Summary: notify admin if shutdown request is ignored by VM
Product: [Retired] oVirt Reporter: Dan Kenigsberg <danken>
Component: ovirt-engine-coreAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: acathrow, bazulay, iheim, juan.hernandez, lpeer, mkenneth, ogvura, ohochman, ovirt-maint, Rhev-m-bugs, sgrinber, shavivi, ykaul
Target Milestone: ---Keywords: Reopened
Target Release: 3.1   
Hardware: All   
OS: Linux   
Whiteboard: pm_0311
Fixed In Version: ovirt-engine-3.1.0-0.1.20120620git6ef9f8.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 529884 Environment:
Last Closed: 2012-08-09 08:04:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 529884    
Bug Blocks:    

Description Dan Kenigsberg 2009-11-18 15:53:49 UTC
A vm that receives a shutdown requests moves to 'Powering down' state. However, the request may be ignored if there is no guest agent, or no acpi support, or user cancels the request. In that case, VM state changes back to 'Up' after a couple of minutes.

RHEV-M should notice this transition (Powering down --> Up) and notify admin.

+++ This bug was initially created as a clone of Bug #529884 +++

--- Additional comment from acathrow on 2009-11-18 10:08:50 EDT ---

(In reply to comment #6)
> Andy,
> #1: Having a RHEL agent is a nice goal. do we have a formal feature request for
> that?
> #2: my patch, already in vdsm-4.5-5, adds a 5 minutes timeout. VM will appear
> as 'Up' in RHEV-M 5 minutes after shutdown request is ignored by guest.  

#1 Yes, requested for 2.2 but still up in the air

#2 - will we get an error logged in RHEV-M to indicate that the action failed?

Comment 1 Miki Kenneth 2009-11-24 13:41:02 UTC
AFAI understood status in the BE is OK, only event is missing, can we do that?

Comment 2 Dan Kenigsberg 2011-04-05 13:07:55 UTC
*** Bug 693211 has been marked as a duplicate of this bug. ***

Comment 3 Itamar Heim 2011-11-22 08:19:36 UTC
closing old bugs as part of cleanup.
you can reopen the bug if you find it relevant and important still.
please consider opening a new bug on upstream ovirt component if the issue is still relevant.

Comment 4 Dan Kenigsberg 2011-11-22 09:42:04 UTC
Every month or so, people come to me ranting "I've asked to shut down a VM, but it did not not shut down, why do I see it Up again?". An engine event would warn the admin that the VM does not want to be shut down cleanly, and should be either killed or the guest addressed.

Comment 5 Juan Hernández 2012-01-03 17:59:36 UTC
The proposed change upstream is here:

http://gerrit.ovirt.org/870

Comment 6 Juan Hernández 2012-05-08 18:21:51 UTC
The change has been merged upstream:

http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=d881f4ae541311e5491edab9cd34d43ac8151df7

Comment 7 Itamar Heim 2012-08-09 08:04:44 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/