pool

Manage storage pools.

class compute.storage.pool.StoragePool(pool: virStoragePool)

Storage pool manipulating class.

__init__(pool: virStoragePool)

Initislise StoragePool.

clone_volume(src: Volume, dst: VolumeConfig) Volume

Make storage volume copy.

Parameters:
  • src – Input volume

  • dst – Output volume config

create_volume(vol_conf: VolumeConfig) Volume

Create storage volume and return Volume instance.

dump_xml() str

Return storage pool XML description as string.

get_usage_info() StoragePoolUsageInfo

Return info about storage pool usage.

get_volume(name: str) compute.storage.volume.Volume | None

Lookup and return Volume instance or None.

list_volumes() list[compute.storage.volume.Volume]

Return list of volumes in storage pool.

refresh() None

Refresh storage pool.

class compute.storage.pool.StoragePoolUsageInfo(capacity: int, allocation: int, available: int)

Storage pool usage info.

allocation: int

Alias for field number 1

available: int

Alias for field number 2

capacity: int

Alias for field number 0