Bug 1078553

Summary: After host power outage HA vms, failed to run first time because ACTION_TYPE_FAILED_VDS_VM_MEMORY
Product: Red Hat Enterprise Virtualization Manager Reporter: Artyom <alukiano>
Component: ovirt-engineAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acathrow, ahadas, cpelland, gklein, iheim, lpeer, mavital, michal.skrivanek, Rhev-m-bugs, sherold, yeylon, zdover
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard: virt
Fixed In Version: av5 Doc Type: Bug Fix
Doc Text:
Previously, the host's committed memory was not cleared immediately after power outage. This meant that it was not possible to run VMs on the host immediately after power outages if the committed memory of the host was high when it was up. If there were highly-available VMs running on the host and there is no other active host in the cluster, failure to restart them meant that they were not restarted automatically. Now, committed memory of hosts is calculated before we try to restart highly available VMs that were running on it before it crashed. When the only active host in a cluster crashes due to power outage, highly-available VMs running on it are now automatically restarted when the host is rebooted.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
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:    
Bug Blocks: 1090946    
Attachments:
Description Flags
engine.log none

Description Artyom 2014-03-19 22:11:12 UTC
Created attachment 876652 [details]
engine.log

Description of problem:
I have one host with 16Gb and I run on it 4 HA vms 3 with 4096Mb and 1 with 2048Mb vms started and runs fine.
After it I poweroff host, wait 5 minutes and power on host, vms failed to start first time:
CanDoAction of action RunVm failed. Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,ACTION_TYPE_FAILED_VDS_VM_MEMORY,SCHEDULING_ALL_HOSTS_FILTERED_OUT,VAR__FILTERTYPE__INTERNAL,$hostName aqua-vds2.qa.lab.tlv.redhat.com,$filterName Memory,SCHEDULING_HOST_FILTERED_REASON 
After it engine try to start HA vms second time and success.

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

How reproducible:
Always

Steps to Reproduce:
1. See above
2.
3.

Actual results:
Engine failed to start HA vms first time because memory filter

Expected results:
Engine success to start HA vms first time, without any error in engine log


Additional info:
Bug also exist in 3.3(checked for is35) and it more critical, because after first failed, engine not try to start HA vms second time

Comment 2 Artyom 2014-03-31 15:24:35 UTC
Verified on rhevm-3.4.0-0.12.beta2.el6ev.noarch

Comment 3 Itamar Heim 2014-06-12 14:08:57 UTC
Closing as part of 3.4.0