Bug 1158925

Summary: agent crashes on wrong metadata
Product: [Retired] oVirt Reporter: Jiri Moskovcak <jmoskovc>
Component: ovirt-hosted-engine-haAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5CC: dfediuck, ecohen, gklein, iheim, lsurette, rbalakri, sbonazzo, s.kieske, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: ovirt-3.5.1_rc1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1167860 1169308 (view as bug list) Environment:
Last Closed: 2015-01-21 16:05:08 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:    
Bug Blocks: 1167860, 1169308, 1192931    

Description Jiri Moskovcak 2014-10-30 14:10:35 UTC
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:

Comment 1 Sven Kieske 2014-11-11 08:24:58 UTC
(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 Sandro Bonazzola 2015-01-15 14:52:26 UTC
This is an automated message: 
This bug should be fixed in oVirt 3.5.1 RC1, moving to QA

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

Comment 4 Sandro Bonazzola 2015-01-21 16:05:08 UTC
oVirt 3.5.1 has been released. If problems still persist, please make note of it in this bug report.