Maor Lipchuk has uploaded a new change for review. Change subject: core: Add API to update Cinder snapshot. ......................................................................
core: Add API to update Cinder snapshot. Add API for Cinder snapshot update. Bug-Url: https://bugzilla.redhat.com/1185826 Change-Id: Ieca1c0f0a21f4e044679ef0b1c7efd9992c30636 Signed-off-by: Maor Lipchuk <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/provider/storage/OpenStackVolumeProviderProxy.java 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/56/40556/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/provider/storage/OpenStackVolumeProviderProxy.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/provider/storage/OpenStackVolumeProviderProxy.java index 83f2a4a..0bd1420 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/provider/storage/OpenStackVolumeProviderProxy.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/provider/storage/OpenStackVolumeProviderProxy.java @@ -7,6 +7,7 @@ import com.woorea.openstack.cinder.model.Limits; import com.woorea.openstack.cinder.model.SnapshotForCreate; import com.woorea.openstack.cinder.model.Snapshot; +import com.woorea.openstack.cinder.model.SnapshotForUpdate; import com.woorea.openstack.cinder.model.Volume; import com.woorea.openstack.cinder.model.VolumeForCreate; import com.woorea.openstack.cinder.model.VolumeForUpdate; @@ -78,6 +79,10 @@ getClient(getTenantId()).snapshots().delete(snapshotId).execute(); } + public void updateSnapshot(String snapshotId, SnapshotForUpdate snapshotForUpdate) { + getClient(getTenantId()).snapshots().update(snapshotId, snapshotForUpdate).execute(); + } + public String createVolume(VolumeForCreate volumeForCreate) { Volume retCinderVolume = getClient(getTenantId()).volumes().create(volumeForCreate).execute(); return retCinderVolume.getId(); -- To view, visit https://gerrit.ovirt.org/40556 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ieca1c0f0a21f4e044679ef0b1c7efd9992c30636 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Maor Lipchuk <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
