The cinder.volume.drivers.huawei.ssh_common Module

Common classes for Huawei OceanStor T series and Dorado series storage arrays.

The common classes provide the drivers command line operation using SSH.

class DoradoCommon(configuration=None)

Bases: cinder.volume.drivers.huawei.ssh_common.TseriesCommon

Common class for Huawei Dorado2100 G2 and Dorado5100 storage arrays.

Dorados share a lot of common codes with T series storage systems, so this class inherited from class TseriesCommon and just rewrite some methods.

create_cloned_volume(volume, src_vref)
create_snapshot(snapshot)
create_volume_from_snapshot(volume, snapshot)
delete_snapshot(snapshot)
do_setup(context)

Check config file.

class TseriesCommon(configuration=None)

Common class for Huawei T series storage arrays.

add_host(host_name, initiator=None)

Create a host and add it to hostgroup.

change_lun_ctr(lun_id, ctr)
check_for_setup_error()
create_cloned_volume(tgt_volume, src_volume)
create_snapshot(snapshot)
create_volume(volume)

Create a new volume.

create_volume_from_snapshot(volume, snapshot)

Create a volume from a snapshot.

We use LUNcopy to copy a new volume from snapshot. The time needed increases as volume size does.

delete_snapshot(snapshot)
delete_volume(volume)
do_setup(context)

Check config file.

get_lun_details(lun_id)
get_volume_stats(refresh=False)

Get volume stats.

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

map_volume(host_id, volume_id)

Map a volume to a host.

remove_map(volume_id, host_name, initiator=None)

Remove host map.

parse_xml_file(filepath)

Get root of xml file.

ssh_read(user, channel, cmd, timeout)

Get results of CLI commands.

Previous topic

The cinder.volume.drivers.huawei.rest_common Module

Next topic

The cinder.volume.drivers.lvm Module

This Page