Search in sources :

Example 1 with Snapshot

use of com.woorea.openstack.cinder.model.Snapshot in project ovirt-engine by oVirt.

the class CinderBroker method getSnapshotStatus.

public ImageStatus getSnapshotStatus(final Guid id) {
    return execute(() -> {
        Snapshot snapshot = proxy.getSnapshotById(id.toString());
        CinderVolumeStatus cinderVolumeStatus = CinderVolumeStatus.forValue(snapshot.getStatus());
        return mapCinderVolumeStatusToImageStatus(cinderVolumeStatus);
    });
}
Also used : Snapshot(com.woorea.openstack.cinder.model.Snapshot) CinderVolumeStatus(org.ovirt.engine.core.common.businessentities.storage.CinderVolumeStatus)

Aggregations

Snapshot (com.woorea.openstack.cinder.model.Snapshot)1 CinderVolumeStatus (org.ovirt.engine.core.common.businessentities.storage.CinderVolumeStatus)1