Search in sources :

Example 1 with CinderVolumeStatus

use of org.ovirt.engine.core.common.businessentities.storage.CinderVolumeStatus 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)

Example 2 with CinderVolumeStatus

use of org.ovirt.engine.core.common.businessentities.storage.CinderVolumeStatus in project ovirt-engine by oVirt.

the class CinderBroker method getDiskStatus.

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

Aggregations

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