Change in ovirt-hosted-engine-ha[master]: agent: enable local maintenance mode

gpadgett at redhat.com gpadgett at redhat.com
Tue Oct 29 13:55:21 UTC 2013


Greg Padgett has submitted this change and it was merged.

Change subject: agent: enable local maintenance mode
......................................................................


agent: enable local maintenance mode

The HA agent needs to be aware of local maintenance mode in order to not
run the engine VM on the local host.  This provides a method of setting
a local maintenance flag which is stored on the host and then read back
by the agent, which takes appropriate action to stop the VM.

A client method has been provided to set this mode:

  HAClient.set_maintenance_mode(mode, value)

Where mode is a constant in HAClient.MaintenanceMode, and value is
a value parsable as a boolean (True, 'true', 'yes', 1, False, etc.)

Change-Id: I60e62cd03daec812e16a3a5bbd2d3d896e41402d
Bug-Url: https://bugzilla.redhat.com/1015724
Signed-off-by: Greg Padgett <gpadgett at redhat.com>
---
M build/var_subst.inc
M configure.ac
M ovirt-hosted-engine-ha.spec.in
M ovirt_hosted_engine_ha/agent/hosted_engine.py
M ovirt_hosted_engine_ha/client/client.py
M ovirt_hosted_engine_ha/env/Makefile.am
M ovirt_hosted_engine_ha/env/config.py
M ovirt_hosted_engine_ha/env/constants.py.in
A ovirt_hosted_engine_ha/env/ha.conf
M ovirt_hosted_engine_ha/lib/util.py
10 files changed, 139 insertions(+), 15 deletions(-)

Approvals:
  Greg Padgett: Verified; Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/20278
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I60e62cd03daec812e16a3a5bbd2d3d896e41402d
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: master
Gerrit-Owner: Greg Padgett <gpadgett at redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck at redhat.com>
Gerrit-Reviewer: Greg Padgett <gpadgett at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list