The cinder.volume.drivers.huawei.rest_common Module

Common class for Huawei 18000 storage drivers.

class RestCommon(configuration)

Bases: object

Common class for Huawei OceanStor 18000 storage system.

call(url=False, data=None, method=None)

Send requests to 18000 server. Send HTTPS call, get response in JSON. Convert response into Python Object and return it.

create_cloned_volume(volume, src_vref)

Clone a new volume from an existing volume.

create_snapshot(*args, **kwargs)
create_volume(*args, **kwargs)
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: first, remove associate from lungroup. Second, remove associate from QoS policy. Third, remove the lun.

extend_volume(*args, **kwargs)

Extends a Huawei volume.

initialize_connection_fc(*args, **kwargs)
initialize_connection_iscsi(*args, **kwargs)

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

login()

Log in 18000 array.

login_out()

logout the session.

terminate_connection_fc(volume, connector)

Delete map between a volume and a host.

terminate_connection_iscsi(*args, **kwargs)

Delete map between a volume and a host.

update_volume_stats()

Previous topic

The cinder.volume.drivers.huawei.huawei_utils Module

Next topic

The cinder.volume.drivers.ibm.flashsystem Module

This Page