Bug 1292089 - ha-broker failed to start after upgrade of RHEV-H from 3.5 to 3.6
ha-broker failed to start after upgrade of RHEV-H from 3.5 to 3.6
Product: ovirt-hosted-engine-ha
Classification: oVirt
Component: Broker (Show other bugs)
x86_64 Linux
high Severity urgent (vote)
: ovirt-3.6.1
Assigned To: Martin Sivák
: Triaged
Depends On:
Blocks: RHEV3.6Upgrade
  Show dependency treegraph
Reported: 2015-12-16 07:53 EST by Artyom
Modified: 2016-02-10 14:19 EST (History)
11 users (show)

See Also:
Fixed In Version: ovirt-hosted-engine-ha-
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-01-13 09:40:06 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: SLA
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
rule-engine: ovirt‑3.6.z+
rule-engine: blocker+
mgoldboi: planning_ack+
dfediuck: devel_ack+
gklein: testing_ack+

Attachments (Terms of Use)
sosreport from RHEV-H 7.2 (5.89 MB, application/x-xz)
2015-12-16 07:53 EST, Artyom
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 50662 None None None 2015-12-17 09:29 EST

  None (edit)
Description Artyom 2015-12-16 07:53:33 EST
Created attachment 1106388 [details]
sosreport from RHEV-H 7.2

Description of problem:
ha-broker failed to start after upgrade of RHEV-H from 3.5 to 3.6 with exception
MainThread::CRITICAL::2015-12-16 09:56:14,885::broker::108::ovirt_hosted_engine_ha.broker.broker.Broker::(run) Could not start ha-broker
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/broker.py", line 102, in run
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/broker.py", line 155, in _run_server
    self._monitor_instance = self._get_monitor()
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/broker.py", line 173, in _get_monitor
    return monitor.Monitor()
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/monitor.py", line 33, in __init__
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/monitor.py", line 41, in _discover_submonitors
    for filename in (f for f in os.listdir(smdir) if
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/broker.py", line 147, in _handle_quit
AttributeError: 'NoneType' object has no attribute 'close_connections'

Version-Release number of selected component (if applicable):
3.5 - Red Hat Enterprise Virtualization Hypervisor release 7.1 (20151015.0.el7ev)

3.6 - Red Hat Enterprise Virtualization Hypervisor (Beta) release 7.2 (20151210.1.el7ev)

How reproducible:

Steps to Reproduce:
1. Deploy 3.5 HE environment on one host
2. Put host to global maintenance and stop engine vm(hosted-engine --set-maintenance --mode=global && hosted-engine --vm-poweroff)
3. Reboot host and upgrade it to 3.6
4. Check hosted-engine services

Actual results:
ovirt-ha-broker service down

Expected results:
ovirt-ha-broker service up

Additional info:
Comment 1 Martin Sivák 2015-12-17 09:26:52 EST
Can you please retest with the latest version? ( We committed a fix recently that might have fixed this: https://gerrit.ovirt.org/#/c/50662/
Comment 2 Red Hat Bugzilla Rules Engine 2015-12-17 09:34:57 EST
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.
Comment 3 Artyom 2015-12-17 10:54:38 EST
I checked it with patch above and looks like error not appear anymore and ovirt-ha-broker succeed to start after upgrade. But need to check it on RHEV-H with new package to be sure if all works correct.
Comment 5 Red Hat Bugzilla Rules Engine 2015-12-21 02:17:04 EST
Bug tickets that are moved to testing must have target release set to make sure tester knows what to test. Please set the correct target release before moving to ON_QA.
Comment 6 Artyom 2015-12-22 10:54:47 EST
Upgrade from 3.5 - Red Hat Enterprise Virtualization Hypervisor release 7.1 (20151015.0.el7ev)

to 3.6 - Red Hat Enterprise Virtualization Hypervisor (Beta) release 7.2 (20151221.1.el7ev)

1) Install RHEV-H 3.5
2) Deploy hosted-engine on one host with NFS storage
3) Enable global maintenance(on host hosted-engine --set-maintenance --mode=global)
4) Upgrade engine to 3.6
5) Power off engine vm(hosted-engine --vm-poweroff)
6) Upgrade host to RHEV-H 3.6 via usb-key

Upgrade succeed and after host upgrade ovirt-he-agent and ovirt-ha-broker up.
Comment 7 Sandro Bonazzola 2016-01-13 09:40:06 EST
oVirt 3.6.1 has been released, closing current release

Note You need to log in before you can comment on or make changes to this bug.