DeviceProvider

” Module for DeviceProvider class.

DeviceProvider

class openlmi.storage.DeviceProvider.DeviceProvider(*args, **kwargs)[source]

CIM Provider which provides CIM StorageExtent or CIM_StoragePool of a Anaconda device.

In addition to CIM provider methods, this class and its subclasses can convert CIM InstanceName to Anaconda’s StorageDevice instance and a vice versa.

class Redundancy(*args, **kwargs)[source]

Class representing redundancy characteristics of a StorageExtent device, i.e. both StorageExtent and StoragePool

__init__(*args, **kwargs)[source]
static get_common_redundancy_list(*args, **kwargs)[source]

Return common redundancy characteristics for list of devices. Linear device is assumed, i.e. the data are either on self or on B.

raid_level: LINEAR = Linear, 0,1,5,6 - raidX

get_redundancy_linear(*args, **kwargs)[source]

Return the combined data redundancy characteristics for two devices. Linear device is assumed, i.e. the data are either on self or on B.

get_redundancy_raid0(*args, **kwargs)[source]

Return the combined data redundancy characteristics for two devices combined in RAID0.

get_redundancy_raid1(*args, **kwargs)[source]

Return the combined data redundancy characteristics for two devices combined in RAID1.

get_redundancy_raid10(*args, **kwargs)[source]

Return the combined data redundancy characteristics for two devices combined in RAID10.

get_redundancy_raid4(*args, **kwargs)[source]

Return the combined data redundancy characteristics for two devices combined in RAID4.

get_redundancy_raid5(*args, **kwargs)[source]

Return the combined data redundancy characteristics for two devices combined in RAID5.

get_redundancy_raid6(*args, **kwargs)[source]

Return the combined data redundancy characteristics for two devices combined in RAID6.

DeviceProvider.__init__(*args, **kwargs)[source]

Initialize the provider. Store reference to blivet.Blivet. Store reference to StorageConfiguration. Register at given ProviderManager.

DeviceProvider.delete_instance(*args, **kwargs)[source]

Delete an instance intrinsic method

DeviceProvider.do_delete_instance(*args, **kwargs)[source]

Really delete given Anaconda StorageDevice.

Subclasses must override this method to allow DeleteInstance intrinsic method.

DeviceProvider.get_base_devices(*args, **kwargs)[source]

Return iterable with base devices for given StorageDevice. Base devices are StorageDevices, that the given StorageDevice depend on, e.g. RAID members of a RAID, physical volumes of a Volume Group and Volume Group of Logical Volume.

DeviceProvider.get_device_for_name(*args, **kwargs)[source]

Returns Anaconda StorageDevice for given CIM InstanceName or None if no device is found.

DeviceProvider.get_name_for_device(*args, **kwargs)[source]

Returns CIM InstanceName for given Anaconda StorageDevice. None if no device is found.

DeviceProvider.get_redundancy(*args, **kwargs)[source]

Returns redundancy characteristics for given Anaconda StorageDevice.

DeviceProvider.get_status(*args, **kwargs)[source]

Returns OperationalStatus for given Anaconda StorageDevice. It combines statuses of all parent devices. Subclasses should override this method to provide additional statuses.

DeviceProvider.provides_device(*args, **kwargs)[source]

Returns True, if this class is provider for given Anaconda StorageDevice class.

DeviceProvider.provides_name(*args, **kwargs)[source]

Returns True, if this class is provider for given CIM InstanceName.

Table Of Contents

Previous topic

coverage_wrapper

Next topic

ExtentProvider

This Page