Bug 1219051

Summary: Running hosted-engine --vm-status, when ovirt-ha-broker service stopped, drop exception
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: ovirt-hosted-engine-haAssignee: Martin Sivák <msivak>
Status: CLOSED ERRATA QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: aburden, alukiano, dfediuck, ecohen, gklein, istein, jcoscia, lsurette, mavital, msivak, nsednev, sbonazzo, sherold
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 3.5.3   
Hardware: x86_64   
OS: Linux   
Whiteboard: sla
Fixed In Version: Doc Type: Enhancement
Doc Text:
In self-hosted engine environments, a failed connection to the ovirt-ha-broker now returns a specific error message, rather than the full traceback.
Story Points: ---
Clone Of: 1150073 Environment:
Last Closed: 2015-06-15 13:17:24 UTC Type: ---
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: 1150073    
Bug Blocks:    

Comment 2 Artyom 2015-05-31 14:19:21 UTC
Verified on ovirt-hosted-engine-ha-1.2.6-2.el7ev.noarch
After I stop ovirt-ha-agent
hosted-engine --vm-status
Failed to connect to broker, the number of errors has exceeded the limit (5)
Cannot connect to the HA daemon, please check the logs.

Comment 3 Nikolai Sednev 2015-05-31 14:21:04 UTC
[root@black-vdsb ~]# service ovirt-ha-broker stop                                                                                                          
Redirecting to /bin/systemctl stop  ovirt-ha-broker.service                                                                                                
[root@black-vdsb ~]# hosted-engine --vm-status                                                                                                             
Failed to connect to broker, the number of errors has exceeded the limit (5)                                                                               
Cannot connect to the HA daemon, please check the logs.                                                                                                    
[root@black-vdsb ~]# service ovirt-ha-broker start
Redirecting to /bin/systemctl start  ovirt-ha-broker.service
[root@black-vdsb ~]# hosted-engine --vm-status          


--== Host 1 status ==--

Status up-to-date                  : True
Hostname                           : black-vdsb.qa.lab.tlv.redhat.com
Host ID                            : 1
Engine status                      : null
Score                              : 0
Local maintenance                  : False
Host timestamp                     : 347687
Extra metadata (valid at timestamp):
        metadata_parse_version=1
        metadata_feature_version=1
        timestamp=347687 (Sun May 31 14:18:05 2015)
        host-id=1
        score=0
        maintenance=False
        state=ReinitializeFSM


[root@black-vdsb ~]# rpm -qa vdsm libvirt* sanlock* qemu-kvm* ovirt* mom
libvirt-python-1.2.8-7.el7_1.1.x86_64
libvirt-daemon-driver-nodedev-1.2.8-16.el7_1.3.x86_64
mom-0.4.1-5.el7ev.noarch
vdsm-4.16.18-1.el7ev.x86_64
sanlock-3.2.2-2.el7.x86_64
sanlock-lib-3.2.2-2.el7.x86_64
sanlock-python-3.2.2-2.el7.x86_64
ovirt-host-deploy-1.3.0-2.el7ev.noarch
libvirt-client-1.2.8-16.el7_1.3.x86_64
libvirt-daemon-driver-nwfilter-1.2.8-16.el7_1.3.x86_64
libvirt-daemon-config-nwfilter-1.2.8-16.el7_1.3.x86_64
libvirt-daemon-driver-interface-1.2.8-16.el7_1.3.x86_64
libvirt-daemon-driver-secret-1.2.8-16.el7_1.3.x86_64
libvirt-daemon-driver-qemu-1.2.8-16.el7_1.3.x86_64
libvirt-daemon-driver-storage-1.2.8-16.el7_1.3.x86_64
ovirt-hosted-engine-ha-1.2.6-2.el7ev.noarch
qemu-kvm-tools-rhev-2.1.2-23.el7_1.3.x86_64
qemu-kvm-rhev-2.1.2-23.el7_1.3.x86_64
libvirt-daemon-1.2.8-16.el7_1.3.x86_64
libvirt-lock-sanlock-1.2.8-16.el7_1.3.x86_64
libvirt-daemon-driver-network-1.2.8-16.el7_1.3.x86_64
libvirt-daemon-kvm-1.2.8-16.el7_1.3.x86_64
ovirt-hosted-engine-setup-1.2.4-2.el7ev.noarch
qemu-kvm-common-rhev-2.1.2-23.el7_1.3.x86_64

Comment 6 errata-xmlrpc 2015-06-15 13:17:24 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-1108.html