Red Hat Bugzilla – Bug 1268892
Wrong HA agent low free memory message
Last modified: 2016-02-10 14:19:29 EST
Description of problem:
During the determination process of finding a qualified host for the engine VM the amount of currently free memory is not identified correctly due to the comparison of an integer to a tuple in /usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/states.py. This results in a wrongfully applied penalty, even though enough free memory is available.
Version-Release number of selected component (if applicable):
Name : ovirt-hosted-engine-ha
Version : 1.3.0
Release : 1.20150930093955.git7116b5b.el7
Steps to Reproduce:
1. Shut down the engine VM. Wait for the HA agent to restart the engine.
2. Monitor /var/log/ovirt-hosted-engine-ha/agent.log
3. Watch for lines like: HostedEngine::(_penalize_memory) Penalizing score by 400 due to free memory 512359 being lower than required (4096,)
Low memory penalty for the host though more than enough free memory is available.
Penalizing score by 400 due to free memory 512359 being lower than
I can confirm that the proposed bug fix on ovirt gerrit 46974 is working correctly. ovirt-hosted-engine-ha 1.3.0, CentOS 7.1
The worst case here is that all hosts will have lower scores than they should.
firstname.lastname@example.org also stresses out that the only host that this won't happen is the on with the engine VM, so it will increase hysteresis before moving the enigne.
Marking as Z.
*** Bug 1277069 has been marked as a duplicate of this bug. ***
This bug is marked for z-stream, yet the milestone is for a major version, therefore the milestone has been reset.
Please set the correct milestone or drop the z stream flag.
Fixed bug tickets must have target milestone set prior to fixing them. Please set the correct milestone and move the bugs back to the previous status after this is corrected.
Verified on ovirt-hosted-engine-ha-220.127.116.11-1.el7ev.noarch
Now both hosts have score 3400
Since oVirt 3.6.0 has been released, moving from verified to closed current release.