The cinder.volume.drivers.huawei.huawei_utils Module

check_conf_file(xml_file_path)

Check the config file, make sure the essential items are set.

check_qos_high_priority(qos)

Check QoS priority.

encode_name(name)
find_luntype_in_xml(xml_file_path)
get_conf_host_os_type(host_ip, conf)

Get host OS type from xml config file.

Parameters:
  • host_ip – The IP of Nova host
  • config – xml config file
Returns:

host OS type

get_default_timeout(xml_file_path)

Get timeout from huawei conf file.

get_iscsi_conf(xml_file_path)

Get iSCSI info from config file.

get_login_info(xml_file_path)

Get login IP, user name and password from config file.

get_lun_conf_params(xml_file_path)

Get parameters from config file for creating lun.

get_lun_params(xml_file_path, smartx_opts)
get_protocol(xml_file_path)

Get protocol from huawei conf file.

get_qos_by_volume_type(volume_type)
get_volume_params(volume)
get_volume_qos(volume)
get_volume_size(volume)

Calculate the volume size.

We should divide the given volume size by 512 for the 18000 system calculates volume size with sectors, which is 512 bytes.

get_wait_interval(xml_file_path, event_type)

Get wait interval from huawei conf file.

get_xml_item(xml_root, item)

Get the given item details.

Parameters:
  • xml_root – The root of xml tree
  • item – The tag need to get
Returns:

A dict contains all the config info of the given item.

init_lun_parameters(name, parameters)

Initialize basic LUN parameters.

parse_xml_file(xml_file_path)

Get root of xml file.

volume_in_use(volume)

Check if the given volume is in use.

wait_for_condition(xml_file_path, func, interval, timeout=None)

Previous topic

The cinder.volume.drivers.huawei.huawei_driver Module

Next topic

The cinder.volume.drivers.huawei.rest_client Module

Project Source

This Page