Change in ovirt-engine[master]: restapi: hosted engine maintenance operations

juan.hernandez at redhat.com juan.hernandez at redhat.com
Fri Apr 11 11:38:31 UTC 2014


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: hosted engine maintenance operations
......................................................................


restapi: hosted engine maintenance operations

Add REST API information/commands for hosted engine maintenance.

In the host XML, a <HostedEngine> tag will provide information about
Hosted Engine on that host (active, configured, score, global and
local maintenance status).  This will be present only if the request
contains the 'All-Content: true' and the HA agent is configurd on
the host.

Additionally, a new VM action, hosted_engine_maintenance, is provided
allowing global maintenance mode to be enabled/disabled through the
host the engine vm is currently running on.

Change-Id: I72bb087eb6037c2c9f039e989b7261b54534adee
Bug-Url: https://bugzilla.redhat.com/1073051
Signed-off-by: Greg Padgett <gpadgett at redhat.com>
---
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/VmResource.java
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/ReflectionHelper.java
M backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
M backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendHostResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendHostsResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/utils/FeaturesHelper.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendVmResourceTest.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendVmsResourceTest.java
M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/HostMapper.java
M backend/manager/modules/restapi/types/src/test/java/org/ovirt/engine/api/restapi/types/HostMapperTest.java
12 files changed, 132 insertions(+), 5 deletions(-)

Approvals:
  Greg Padgett: Verified
  Juan Hernandez: Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I72bb087eb6037c2c9f039e989b7261b54534adee
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
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: Jiří Moskovčák <jmoskovc at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list