The cinder.volume.drivers.nec.volume Module

The cinder.volume.drivers.nec.volume Module

Drivers for M-Series Storage.

class MStorageFCDriver(*args, **kwargs)

Bases: cinder.volume.drivers.nec.volume_helper.MStorageDSVDriver, cinder.volume.driver.FibreChannelDriver

M-Series Storage Snapshot FC Driver.

create_export(context, volume, connector)

Exports the volume.

Can optionally return a Dictionary of changes to the volume object to be persisted.

create_export_snapshot(context, snapshot, connector)

Exports the snapshot.

Can optionally return a Dictionary of changes to the snapshot object to be persisted.

ensure_export(context, volume)

Synchronously recreates an export for a volume.

get_volume_stats(refresh=False)

Get volume stats.

If ‘refresh’ is True, run update the stats first.

initialize_connection(*args, **kwargs)
initialize_connection_snapshot(snapshot, connector, **kwargs)

Allow connection from connector for a snapshot.

terminate_connection(*args, **kwargs)
terminate_connection_snapshot(snapshot, connector, **kwargs)

Disallow connection from connector for a snapshot.

class MStorageISCSIDriver(*args, **kwargs)

Bases: cinder.volume.drivers.nec.volume_helper.MStorageDSVDriver, cinder.volume.driver.ISCSIDriver

M-Series Storage Snapshot iSCSI Driver.

create_export(context, volume, connector)

Exports the volume.

Can optionally return a Dictionary of changes to the volume object to be persisted.

create_export_snapshot(context, snapshot, connector)

Exports the snapshot.

Can optionally return a Dictionary of changes to the snapshot object to be persisted.

ensure_export(context, volume)

Synchronously recreates an export for a volume.

get_volume_stats(refresh=False)

Get volume stats.

If ‘refresh’ is True, run update the stats first.

initialize_connection(volume, connector)

Initializes the connection and returns connection info.

The iscsi driver returns a driver_volume_type of ‘iscsi’. The format of the driver data is defined in _get_iscsi_properties. Example return value:

{
    'driver_volume_type': 'iscsi',
    'data': {
        'target_discovered': True,
        'target_iqn': 'iqn.2010-10.org.openstack:volume-00000001',
        'target_portal': '127.0.0.0.1:3260',
        'volume_id': 1,
        'discard': False,
    }
}

If the backend driver supports multiple connections for multipath and for single path with failover, “target_portals”, “target_iqns”, “target_luns” are also populated:

{
    'driver_volume_type': 'iscsi',
    'data': {
        'target_discovered': False,
        'target_iqn': 'iqn.2010-10.org.openstack:volume1',
        'target_iqns': ['iqn.2010-10.org.openstack:volume1',
                        'iqn.2010-10.org.openstack:volume1-2'],
        'target_portal': '10.0.0.1:3260',
        'target_portals': ['10.0.0.1:3260', '10.0.1.1:3260'],
        'target_lun': 1,
        'target_luns': [1, 1],
        'volume_id': 1,
        'discard': False,
    }
}
initialize_connection_snapshot(snapshot, connector, **kwargs)

Allow connection from connector for a snapshot.

terminate_connection(volume, connector, **kwargs)

Disallow connection from connector

Parameters:
  • volume – The volume to be disconnected.
  • connector – A dictionary describing the connection with details about the initiator. Can be None.
terminate_connection_snapshot(snapshot, connector, **kwargs)

Disallow connection from connector for a snapshot.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.