The cinder.volume.drivers.huawei.huawei_driver
Module¶
-
class
Huawei18000FCDriver
(*args, **kwargs)¶ Bases:
cinder.volume.drivers.huawei.huawei_driver.HuaweiBaseDriver
,cinder.volume.driver.FibreChannelDriver
FC driver for Huawei OceanStor 18000 storage arrays.
- Version history:
1.0.0 - Initial driver 1.1.0 - Provide Huawei OceanStor 18000 storage volume driver 1.1.1 - Code refactor
Multiple pools support SmartX support Volume migration support Volume retype support FC zone enhancement
-
VERSION
= '1.1.1'¶
-
get_volume_stats
(refresh=False)¶ Get volume status.
-
initialize_connection
(*args, **kwargs)¶
-
terminate_connection
(*args, **kwargs)¶
-
class
Huawei18000ISCSIDriver
(*args, **kwargs)¶ Bases:
cinder.volume.drivers.huawei.huawei_driver.HuaweiBaseDriver
,cinder.volume.driver.ISCSIDriver
ISCSI driver for Huawei OceanStor 18000 storage arrays.
- Version history:
1.0.0 - Initial driver 1.1.0 - Provide Huawei OceanStor 18000 storage volume driver 1.1.1 - Code refactor
CHAP support Multiple pools support ISCSI multipath support SmartX support Volume migration support Volume retype support
-
VERSION
= '1.1.1'¶
-
get_volume_stats
(refresh=False)¶ Get volume status.
-
initialize_connection
(*args, **kwargs)¶ Map a volume to a host and return target iSCSI information.
-
terminate_connection
(*args, **kwargs)¶ Delete map between a volume and a host.
-
class
HuaweiBaseDriver
(*args, **kwargs)¶ Bases:
cinder.volume.driver.VolumeDriver
-
check_for_setup_error
()¶ Check configuration file.
-
create_cloned_volume
(volume, src_vref)¶ Clone a new volume from an existing volume.
-
create_export
(context, volume, connector)¶ Export a volume.
-
create_snapshot
(*args, **kwargs)¶
-
create_volume
(*args, **kwargs)¶ Create a 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
(*args, **kwargs)¶
-
delete_volume
(*args, **kwargs)¶ Delete a volume.
Three steps: Firstly, remove associate from lungroup. Secondly, remove associate from QoS policy. Thirdly, remove the lun.
-
determine_changes_when_retype
(volume, new_type, host)¶
-
do_setup
(context)¶ Instantiate common class and login storage system.
-
ensure_export
(context, volume)¶ Synchronously recreate an export for a volume.
-
extend_volume
(*args, **kwargs)¶ Extend a volume.
-
get_lun_specs
(lun_id)¶
-
get_volume_stats
(refresh=False)¶ Get volume status.
-
migrate_volume
(ctxt, volume, host, new_type=None)¶ Migrate a volume within the same array.
-
modify_lun
(lun_id, change_opts)¶
-
remove_export
(context, volume)¶ Remove an export for a volume.
-
remove_qos_lun
(lun_id, qos_id)¶
-
retype
(ctxt, volume, new_type, diff, host)¶ Convert the volume to be of the new type.
-
update_migrated_volume
(ctxt, volume, new_volume, original_volume_status=None)¶
-