Bug 1026351 - hosted-engine --vm-status reports about hosts that not participating in HA anymore.
hosted-engine --vm-status reports about hosts that not participating in HA an...
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-ha (Show other bugs)
Unspecified Unspecified
high Severity unspecified
: ---
: 3.3.0
Assigned To: Martin Sivák
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2013-11-04 08:40 EST by Leonid Natapov
Modified: 2016-02-10 15:16 EST (History)
7 users (show)

See Also:
Fixed In Version: ovirt-hosted-engine-ha-0.1.0-0.5.1.beta1.el6ev
Doc Type: Bug Fix
Doc Text:
Cause: Metedata updates from all hosts that ever participated in the hosted engine environment are persisted indefinitely. The timestamp is used to distinguish between old and up-to-date data. Consequence: The administrator had to notice that the unix timestamp of the report is too old when using hosted-engine --vm-status. Fix: The hosted-engine tool was enhanced to explicitly identify the old metadata record as being too old by changing the state to "unknown stale-data" and showing Status up-to-date: False line. Result: The administrator can now easily identify old metadata records.
Story Points: ---
Clone Of:
Last Closed: 2014-01-21 11:51:11 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: SLA
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 20860 None None None Never
oVirt gerrit 20862 None None None Never
oVirt gerrit 20902 None None None Never
Red Hat Product Errata RHEA-2014:0080 normal SHIPPED_LIVE new package: ovirt-hosted-engine-ha 2014-01-21 16:00:07 EST

  None (edit)
Description Leonid Natapov 2013-11-04 08:40:28 EST
I have a host that not participating in HA anymore (host was completely reinstalled) but still reported by hosted-engine. 
The problem is in userspace reporting. We should report stale data differently.

Here is the output of hosted-engine --vm-status. Host green-vdsb is not there anymore but still reported with it's last known status. So you can see two hosts with "vm-up good-health-status" engine status.
[root@green-vdsa ha_agent]# hosted-engine --vm-status

--== Host 1 status ==--

Hostname                           : green-vdsb.qa.lab.tlv.redhat.com
Host ID                            : 1
Engine status                      : vm-up good-health-status
Score                              : 2400
Host timestamp                     : 1383462493
Extra metadata                     :
	timestamp=1383462493 (Sun Nov  3 09:08:13 2013)
	engine-health=vm-up good-health-status

--== Host 2 status ==--

Hostname                           : green-vdsa.qa.lab.tlv.redhat.com
Host ID                            : 2
Engine status                      : vm-down
Score                              : 0
Host timestamp                     : 1383572285
Extra metadata                     :
	timestamp=1383572285 (Mon Nov  4 15:38:05 2013)

--== Host 3 status ==--

Hostname                           : green-vdsc.qa.lab.tlv.redhat.com
Host ID                            : 3
Engine status                      : vm-up good-health-status
Score                              : 2400
Host timestamp                     : 1383571757
Extra metadata                     :
	timestamp=1383571757 (Mon Nov  4 15:29:17 2013)
	engine-health=vm-up good-health-status
Comment 1 Martin Sivák 2013-11-04 09:14:23 EST
This is just how hosted-engine reports stale data. The metadata show the last known state and the timeout the time when it was valid.

We should somehow make it easier to spot stale data to avoid user confusion though.
Comment 2 Doron Fediuck 2013-11-04 13:20:42 EST
(In reply to Martin Sivák from comment #1)
> This is just how hosted-engine reports stale data. The metadata show the
> last known state and the timeout the time when it was valid.
> We should somehow make it easier to spot stale data to avoid user confusion
> though.

Maybe have a shorter report if age > configurable_value?
ie- Skipping host XXX, last updated on YYY?
Comment 3 Sandro Bonazzola 2013-11-05 05:08:32 EST
patches merged on upstream master and 1.0 branches.
Comment 5 Artyom 2013-11-08 02:50:52 EST
Verified on ovirt-hosted-engine-ha-0.1.0-0.5.1.beta1.el6ev.noarch
After remove host from rhevm, set Engine status: unknown stale-data
After erase package ovirt-hosted-engine-ha-0.1.0-0.5.1.beta1.el6ev.noarch from host, set Status up-to-date: False
Comment 6 Charlie 2013-11-27 20:41:40 EST
This bug is currently attached to errata RHEA-2013:15591. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to 
minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:


Thanks in advance.
Comment 7 errata-xmlrpc 2014-01-21 11:51:11 EST
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.


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