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

Bug 1349907

Summary: RFE: Guest agent hooks for hibernation should be always executed.
Product: [oVirt] vdsm Reporter: Petr Matyáš <pmatyas>
Component: CoreAssignee: Vinzenz Feenstra [evilissimo] <vfeenstr>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.18.3CC: bugs, lsvaty, tjelinek, trichard
Target Milestone: ovirt-4.1.0-alphaKeywords: FutureFeature
Target Release: 4.19.2Flags: vfeenstr: ovirt-4.1?
pmatyas: testing_plan_complete+
rule-engine: planning_ack?
tjelinek: devel_ack+
lsvaty: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Previously, after_hibernation hooks were never executed. With this release, before_hibernation and after_hibernation hooks are always executed on the guest operating system (with the guest agent installed) when suspending and resuming a virtual machine.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 14:35:17 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:    
Bug Blocks: 1298120    

Description Petr Matyáš 2016-06-24 13:42:34 UTC
Description of problem:
Hooks for before hibernation are always executed, doesn't matter if migration policy is set or not.
Hooks for after hibernation are never executed.

Version-Release number of selected component (if applicable):
ovirt-guest-agent-common-1.0.12-3.el7.noarch
vdsm-4.18.4-2.el7ev.x86_64
ovirt-engine-4.0.0.6-0.1.el7ev.noarch

How reproducible:
always

Steps to Reproduce:
1. create hooks for before and after hibernation
2. hibernate the VM
3. start the VM again

Actual results:
before hibernation hook is always executed and after is never executed

Expected results:
hibernation hooks are executed if migration policy is set and are not executed if migration policy is not set

Additional info:

Comment 1 Red Hat Bugzilla Rules Engine 2016-06-24 19:44:27 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 2 Vinzenz Feenstra [evilissimo] 2016-06-29 08:08:09 UTC
Long story short we'll transform this to an RFE and have it always be executed

Comment 3 Sandro Bonazzola 2016-12-12 13:54:45 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 4 Petr Matyáš 2017-01-23 18:14:24 UTC
Verified on 4.1.0-8