class documentation

class ExtStorageDevice(base.BlockDev):

View In Hierarchy

A block device provided by an ExtStorage Provider.

This class implements the External Storage Interface, which means handling of the externally provided block devices.

Class Method Create Create a new extstorage device.
Method __init__ Attaches to an extstorage block device.
Method Assemble Assemble the device.
Method Attach Attach to an existing extstorage device.
Method Close Notifies that the device will no longer be used for I/O.
Method GetUserspaceAccessUri Generate KVM userspace URIs to be used as `-drive file` settings.
Method Grow Grow the Volume.
Method Open Make the device ready for I/O.
Method Remove Remove the extstorage device.
Method Rename Rename this device.
Method SetInfo Update metadata with info text.
Method Shutdown Shutdown the device.
Method Snapshot Take a snapshot of the block device.
Instance Variable attached Undocumented
Instance Variable dev_path Undocumented
Instance Variable driver Undocumented
Instance Variable ext_params Undocumented
Instance Variable major Undocumented
Instance Variable minor Undocumented
Instance Variable name Undocumented
Instance Variable uris Undocumented
Instance Variable uuid Undocumented
Instance Variable vol_name Undocumented

Inherited from BlockDev:

Method __eq__ Undocumented
Method __repr__ Undocumented
Method CombinedSyncStatus Calculate the mirror status recursively for our children.
Method Export Builds the shell command for exporting data from device.
Method GetActualDimensions Return the actual disk size and number of spindles used.
Method GetActualSize Return the actual disk size.
Method GetActualSpindles Return the actual number of spindles used.
Method GetSyncStatus Returns the sync status of the device.
Method Import Builds the shell command for importing data to device.
Method PauseResumeSync Pause/Resume the sync of the mirror.
Method SetSyncParams Adjust the synchronization parameters of the mirror.
Instance Variable dyn_params Undocumented
Instance Variable params Undocumented
Instance Variable size Undocumented
Instance Variable unique_id Undocumented
Instance Variable _children Undocumented
@classmethod
def Create(cls, unique_id, children, size, spindles, params, excl_stor, dyn_params, **kwargs):

Create a new extstorage device.

Provision a new volume using an extstorage provider, which will then be mapped to a block device.

def __init__(self, unique_id, children, size, params, dyn_params, **kwargs):

Attaches to an extstorage block device.

def Assemble(self):

Assemble the device.

def Attach(self, **kwargs):

Attach to an existing extstorage device.

This method maps the extstorage volume that matches our name with a corresponding block device and then attaches to this device.

def Close(self):

Notifies that the device will no longer be used for I/O.

def GetUserspaceAccessUri(self, hypervisor):

Generate KVM userspace URIs to be used as `-drive file` settings.

See Also
base.BlockDev.GetUserspaceAccessUri
def Grow(self, amount, dryrun, backingstore, excl_stor):

Grow the Volume.

Parameters
amount:integerthe amount (in mebibytes) to grow with
dryrun:booleanwhether to execute the operation in simulation mode only, without actually increasing the size
backingstoreUndocumented
excl_storUndocumented
def Open(self, force=False, exclusive=True):

Make the device ready for I/O.

def Remove(self):

Remove the extstorage device.

def Rename(self, new_id):

Rename this device.

def SetInfo(self, text):

Update metadata with info text.

def Shutdown(self):

Shutdown the device.

def Snapshot(self, snap_name=None, snap_size=None):

Take a snapshot of the block device.

attached: bool =

Undocumented

dev_path =

Undocumented

driver =

Undocumented

ext_params =

Undocumented

major =

Undocumented

minor =

Undocumented

name =

Undocumented

uris =

Undocumented

uuid =

Undocumented

vol_name =

Undocumented