The cinder.volume.drivers.huawei.rest_common Module

Common class for Huawei HVS storage drivers.

class HVSCommon(configuration)

Common class for Huawei OceanStor HVS storage system.

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

Send requests to HVS 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(snapshot)
create_volume(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)

Delete a volume.

Three steps: first, remove associate from lun group. Second, remove associate from qos policy. Third, remove the lun.

initialize_connection_fc(volume, connector)
initialize_connection_iscsi(volume, connector)

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

login()

Log in HVS array.

If login failed, the driver will sleep 30’s to avoid frequent connection to the server.

login_out()

logout the session.

terminate_connection(volume, connector, **kwargs)

Delete map between a volume and a host.

update_volume_stats(refresh=False)

Previous topic

The cinder.volume.drivers.huawei.huawei_t Module

Next topic

The cinder.volume.drivers.huawei.ssh_common Module

This Page