Bug 1167860

Summary: agent crashes on wrong metadata
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Moskovcak <jmoskovc>
Component: ovirt-hosted-engine-haAssignee: Doron Fediuck <dfediuck>
Status: CLOSED ERRATA QA Contact: Artyom <alukiano>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: dfediuck, ecohen, gklein, iheim, lsurette, mavital, rbalakri, sbonazzo, sherold, s.kieske, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: ovirt-hosted-engine-ha-1.2.4-4.el6ev Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1158925 Environment:
Last Closed: 2015-02-11 21:09:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1158925, 1169308    
Bug Blocks: 1164308, 1164311    

Description Jiri Moskovcak 2014-11-25 14:25:11 UTC
+++ This bug was initially created as a clone of Bug #1158925 +++

Description of problem:
Agent crashes when there is 'null' as the engine-state in the metadata. this was observed while updating from 3.4 to 3.5

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-ha-1.2.4-1.fc19.noarch

How reproducible:
100%

Steps to Reproduce:
1. have metadata where the engine-status field is null
2. start broker and agent
3.

Actual results:
agent crashes with: AttributeError: 'NoneType' object has no attribute 'iteritems'

Expected results:
Agent ignores malformed metadata

Additional info:

--- Additional comment from Sven Kieske on 2014-11-11 03:24:58 EST ---

(In reply to Jiri Moskovcak from comment #0)
> Description of problem:
> Agent crashes when there is 'null' as the engine-state in the metadata. this
> was observed while updating from 3.4 to 3.5

imho therefore it should block 3.5.1 release, would you mind backporting it to 3.5.1?

Comment 2 Artyom 2014-12-23 14:34:28 UTC
Hi Jiri, what the best way to verify this bug?

Comment 3 Jiri Moskovcak 2015-01-02 13:40:39 UTC
1. stop all the agents
2. change the 'engine-status' field in metadata to null
3. start the agent

- the old version will not start, the new version should handle it and update the metadata to valid value

Comment 4 Artyom 2015-01-05 08:31:45 UTC
Verified on ovirt-hosted-engine-ha-1.2.4-5.el6ev.noarch, with Jiri steps

Comment 8 errata-xmlrpc 2015-02-11 21:09:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0194.html