Previous topic

The cinder.volume.drivers.glusterfs Module

Next topic

The cinder.volume.drivers.lvm Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.volume.drivers.huawei.huawei_iscsi Module

Volume driver for HUAWEI T series and Dorado storage systems.

class HuaweiISCSIDriver(*args, **kwargs)

Bases: cinder.volume.driver.ISCSIDriver

Huawei T series and Dorado iSCSI volume driver.

check_for_setup_error()

Try to connect with device and get device type.

create_export(context, volume)

Driver entry point to get the export info for a new volume.

create_snapshot(snapshot)

Create a snapshot.

create_volume(volume)

Create a new volume.

create_volume_from_snapshot(volume, snapshot)

Create a volume from a snapshot.

We use LUNcopy to create a new LUN from snapshot.

delete_snapshot(snapshot)

Delete a snapshot.

delete_volume(volume)

Delete a volume.

do_setup(context)

Check config file.

ensure_export(context, volume)

Driver entry point to get the export info for a existing volume.

get_volume_stats(refresh=False)

Get volume status.

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

initialize_connection(volume, connector)

Map a volume to a host and return target iSCSI information.

remove_export(context, volume_id)

Driver entry point to remove an export for a volume.

terminate_connection(volume, connector, **kwargs)

Delete map between a volume and a host.

class SSHConn(ip, port, conn_timeout, login, password, privatekey=None, *args, **kwargs)

Bases: cinder.utils.SSHPool

Define a new class inherited from SSHPool.

This class rewrites method create() and defines a private method ssh_read() which reads results of ssh commands.

create()

Create an SSH client.

Because seting socket timeout to be None will cause client.close() blocking, here we have to rewrite method create() and use default socket timeout value 0.1.

ssh_read(channel, cmd, timeout)

Get results of CLI commands.