Change in ovirt-engine[master]: restapi: memory snapshot feature support

ofrenkel at redhat.com ofrenkel at redhat.com
Thu Jul 11 14:12:58 UTC 2013


Omer Frenkel has submitted this change and it was merged.

Change subject: restapi: memory snapshot feature support
......................................................................


restapi: memory snapshot feature support

This patch adds support in the REST API for the memory snapshot feature
which is about saving the memory state as part of snapshots, so that it
will be possible to restore the same state of the VM as it was at the
moment the snapshot was taken, when the VM is reverted to the snapshot.

An attribute of type boolean which indicates whether the snapshot
contains memory or not is added to the snapshot entity.

The user can select when creating a snapshot whether the created
snapshot should include memory state or not.

The user can select when previewing and restoring snapshots whether
to restore the snapshot's memory (which means that the memory that is
saved in the snapshot, if exists, will be restored when running the VM
for the first time after the action is done) or not.

Change-Id: I9ccbbaf9a4d242255a4ff999e5f08644d45402eb
Bug-Url: https://bugzilla.redhat.com/960931
Signed-off-by: Arik Hadas <ahadas at redhat.com>
---
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/BackendSnapshotResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendSnapshotsResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/utils/FeaturesHelper.java
M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/SnapshotMapper.java
6 files changed, 31 insertions(+), 2 deletions(-)

Approvals:
  Omer Frenkel: Looks good to me, approved
  Arik Hadas: Verified


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I9ccbbaf9a4d242255a4ff999e5f08644d45402eb
Gerrit-PatchSet: 21
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list