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

Bug 1091360

Summary: agent dies while monitoring the engine
Product: [Retired] oVirt Reporter: Jiri Moskovcak <jmoskovc>
Component: ovirt-hosted-engine-haAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED CURRENTRELEASE QA Contact: meital avital <mavital>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4CC: acathrow, dfediuck, gklein, iheim, jmoskovc, sbonazzo, yeylon
Target Milestone: ---   
Target Release: 3.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1092373 (view as bug list) Environment:
Last Closed: 2014-05-08 13:35:53 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1092373    

Description Jiri Moskovcak 2014-04-25 12:16:45 UTC
Description of problem:
This bugzilla is based on a report from ovirt-users ml.

Actual results:
MainThread::WARNING::2014-04-02 17:46:15,463::hosted_engine::334::ovirt_hosted_e                           ngine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Error while monito                           ring engine: float() argument must be a string or a number
MainThread::WARNING::2014-04-02 17:46:15,464::hosted_engine::337::ovirt_hosted_e                           ngine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Unexpected error
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_eng                           ine.py", line 323, in start_monitoring
    state.score(self._log))
  File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/states.py"                           , line 160, in score
    lm, logger, score, score_cfg)
  File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/states.py"                           , line 61, in _penalize_memory
    if self._float_or_default(lm['mem-free'], 0) < vm_mem:
  File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/states.py"                           , line 51, in _float_or_default
    return float(value)
TypeError: float() argument must be a string or a number
MainThread::ERROR::2014-04-02 17:46:15,464::hosted_engine::350::ovirt_hosted_eng                           ine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Shutting down the ag                           ent because of 3 failures in a row!
MainThread::INFO::2014-04-02 17:46:15,466::agent::116::ovirt_hosted_engine_ha.ag                           ent.agent.Agent::(run) Agent shutting down

Comment 1 Sandro Bonazzola 2014-04-29 07:37:23 UTC
The referenced patches have been merged, shouldn't this be in modified state?
You may also think about re-targeting to 3.4.1 since it has not yet been released.

Comment 2 Sandro Bonazzola 2014-05-08 13:35:53 UTC
This is an automated message

oVirt 3.4.1 has been released:
 * should fix your issue
 * should be available at your local mirror within two days.

If problems still persist, please make note of it in this bug report.