Bug 1035667

Summary: Paused VM can be resumed on host that is not UP
Product: [Retired] oVirt Reporter: Arik <ahadas>
Component: ovirt-engine-coreAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3CC: acathrow, ahadas, iheim, mavital, michal.skrivanek, ofrenkel, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: ovirt-3.4.0-alpha1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-31 12:30:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Arik 2013-11-28 09:40:20 UTC
Description of problem:
Due to changes in the validator that is used before running VM (patch: I772377045d5c6d694e00006c9b12e210c52ab353) we always allow to resume paused VMs without checking the status of the host they are going to be resumed on. It leads to situation where paused VM can be resume on non-operational host, which we used to block before 3.3.

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


How reproducible:
100%

Steps to Reproduce:
1. run VM in pause mode
2. block the connectivity between the host and the storage
3. wait for the host to become non-operational (wait 5 minutes)
4. run the VM

Actual results:
the VM is resumed

Expected results:
the VM shouldn't be resumed with a proper error message

Additional info:

Comment 1 Michal Skrivanek 2013-12-02 15:20:53 UTC
is this worth oVirt 3.3.2?

Comment 2 Arik 2013-12-04 09:24:15 UTC
(In reply to Michal Skrivanek from comment #1)
> is this worth oVirt 3.3.2?

I don't think so. it happens in rare negative flows.

Comment 3 Sandro Bonazzola 2014-01-13 13:57:16 UTC
oVirt 3.4.0 alpha has been released including the fix for this issue.

Comment 4 Pavel Novotny 2014-02-18 17:39:54 UTC
Verified in ovirt-engine-3.4.0-0.7.beta2.el6.noarch.

Followed reproducer in comment 0 for verification.

Results:
Error dialog is shown when attempting to resume the paused VM on an host that is not Up, e.g., Non Operational, Initializing, etc.

-~-
Error while executing action:

paused-vm:

    Cannot run VM. Operation can be performed only when Host status is Up.
-~-

Comment 5 Sandro Bonazzola 2014-03-31 12:30:24 UTC
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released