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

Ori Liel 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 Bug-Url: https://bugzilla.redhat.com/970046 Signed-off-by: Sahina Bose <sabose@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: Ori Liel: Looks good to me, approved Kanagaraj M: Verified -- To view, visit http://gerrit.ovirt.org/18495 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ibf9c0299977448e0b50feeed6e38a015c60b86fd Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.3 Gerrit-Owner: Sahina Bose <sabose@redhat.com> Gerrit-Reviewer: Kanagaraj M <kmayilsa@redhat.com> Gerrit-Reviewer: Ofer Schreiber <oschreib@redhat.com> Gerrit-Reviewer: Ori Liel <oliel@redhat.com> Gerrit-Reviewer: Sahina Bose <sabose@redhat.com> Gerrit-Reviewer: automation@ovirt.org
participants (1)
-
oliel@redhat.com