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

Bug 1488554

Summary: HE host can't get HA score
Product: [oVirt] ovirt-hosted-engine-ha Reporter: Petr Matyáš <pmatyas>
Component: AgentAssignee: Denis Chaplygin <dchaplyg>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: high    
Version: 2.2.0CC: bugs, mgoldboi
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:07:46 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: 1440101    
Attachments:
Description Flags
hosted engine logs none

Description Petr Matyáš 2017-09-05 16:54:20 UTC
Created attachment 1322330 [details]
hosted engine logs

Description of problem:
After creating hosted engine env the host can't get HA score and I can see exception in agent.log

MainThread::ERROR::2017-09-05 18:43:04,785::agent::144::ovirt_hosted_engine_ha.agent.agent.Agent::(_run_agent) Traceback (most recent
call last):
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line 131, in _run_agent
    return action(he)
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line 55, in action_proper
    return he.start_monitoring()
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 434, in start_monitoring
    if self._broker and self._broker.is_connected():
AttributeError: 'BrokerLink' object has no attribute 'is_connected'

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-ha-2.2.0-0.0.master.20170901100749.20170901100745.git6f3b3fd.el7.centos.noarch
ovirt-hosted-engine-setup-2.2.0-0.0.master.20170831115238.git6d9b02e.el7.centos.noarch

How reproducible:
always

Steps to Reproduce:
1. install HE env on latest ovirt
2. check if the host gets HA score
3. check agent.log

Actual results:
exception and no HA score

Expected results:
correct HA score

Additional info:

Comment 1 Petr Matyáš 2017-09-15 10:30:53 UTC
Verified on ovirt-hosted-engine-ha-2.2.0-0.0.master.20170911110029.20170911110026.git158d6fa.el7.centos.noarch

Comment 2 Sandro Bonazzola 2017-12-20 11:07:46 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

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