Search in sources :

Example 51 with StoragePool

use of org.libvirt.StoragePool in project cloudstack by apache.

the class ManagedNfsStorageAdaptor method disconnectPhysicalDisk.

/*
     * disconnect the disk by destroying the sp pointer
     */
public boolean disconnectPhysicalDisk(KVMStoragePool pool, String mountpoint) throws LibvirtException {
    LibvirtStoragePool libvirtPool = (LibvirtStoragePool) pool;
    StoragePool sp = libvirtPool.getPool();
    // destroy the pool
    sp.destroy();
    return true;
}
Also used : StoragePool(org.libvirt.StoragePool)

Aggregations

StoragePool (org.libvirt.StoragePool)51 LibvirtException (org.libvirt.LibvirtException)42 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)20 Connect (org.libvirt.Connect)16 LibvirtStoragePoolDef (com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolDef)14 StoragePoolInfo (org.libvirt.StoragePoolInfo)8 LibvirtStoragePoolDef (com.cloud.agent.resource.computing.LibvirtStoragePoolDef)7 StorageVol (org.libvirt.StorageVol)7 Secret (org.libvirt.Secret)6 StoragePoolType (com.cloud.storage.Storage.StoragePoolType)5 LibvirtStorageVolumeDef (com.cloud.hypervisor.kvm.resource.LibvirtStorageVolumeDef)4 ArrayList (java.util.ArrayList)4 LibvirtSecretDef (com.cloud.hypervisor.kvm.resource.LibvirtSecretDef)2 VolumeFormat (com.cloud.hypervisor.kvm.resource.LibvirtStorageVolumeDef.VolumeFormat)2 Domain (org.libvirt.Domain)2 MigrateWithStorageAcrossClustersAnswer (com.cloud.agent.api.MigrateWithStorageAcrossClustersAnswer)1 MigrateVolumeAnswer (com.cloud.agent.api.storage.MigrateVolumeAnswer)1 StorageFilerTO (com.cloud.agent.api.to.StorageFilerTO)1 VirtualMachineTO (com.cloud.agent.api.to.VirtualMachineTO)1 VolumeTO (com.cloud.agent.api.to.VolumeTO)1