Change in ovirt-engine[master]: restapi: Support for gluster hooks added

kmayilsa at redhat.com kmayilsa at redhat.com
Mon Aug 26 06:55:36 UTC 2013


Kanagaraj M has submitted this change and it was merged.

Change subject: restapi: Support for gluster hooks added
......................................................................


restapi: Support for gluster hooks added

Gluster hooks are deployed during installation of gluster
in the servers of a gluster cluster. The ovirt engine polls
each of the servers in the cluster and stores information
about the gluster hooks - primarily to check if the hook
scripts are in sync across servers.

This patch adds API support for managing gluster hooks.
 - api/cluster/{id}/glusterhooks
   lists all gluster hooks in the cluster along with
   conflict status
 - api/cluster/{id}/glusterhooks/{glusterhook:id}|rel=delete
   resolve missing hook conflict by removing hook script from
   all servers and engine database
 - api/cluster/{id}/glusterhooks/{id}
   show details of a gluster hook

    actions supported:
        - enable
          enables hook in all servers in the cluster
        - disable
          disables hook in all servers in the cluster
        - resolve
          action.resolutionType = COPY
          resolve content conflict by copying content from either
          engine or from one of the servers to all or servers where
          the hook is missing as applicable (based on parameters)
          action.resolutionType = ADD
          resolve missing hook conflict by copying hook stored in
          engine database to all servers where the hook is missing

Change-Id: Ibf9c0299977448e0b50feeed6e38a015c60b86fd
Signed-off-by: Sahina Bose <sabose at redhat.com>
---
M backend/manager/modules/restapi/interface/common/jaxrs/src/main/java/org/ovirt/engine/api/common/util/LinkHelper.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/model/HookContentType.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/model/HookStage.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/model/HookStatus.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/model/ResolutionType.java
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/ClusterResource.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/gluster/GlusterHookResource.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/gluster/GlusterHooksResource.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/BackendCapabilitiesResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendClusterResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendClustersResource.java
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/gluster/BackendGlusterHookResource.java
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/gluster/BackendGlusterHooksResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/utils/FeaturesHelper.java
A backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/gluster/BackendGlusterHookResourceTest.java
A backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/gluster/BackendGlusterHooksResourceTest.java
A backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/GlusterHookMapper.java
19 files changed, 1,186 insertions(+), 3 deletions(-)

Approvals:
  Kanagaraj M: Looks good to me, approved
  Sahina Bose: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibf9c0299977448e0b50feeed6e38a015c60b86fd
Gerrit-PatchSet: 11
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sahina Bose <sabose at redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayilsa at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: Sahina Bose <sabose at redhat.com>
Gerrit-Reviewer: Shubhendu Tripathi <shtripat at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list