The cinder.volume.drivers.hitachi.hnas_utils Module

The cinder.volume.drivers.hitachi.hnas_utils Module

Shared code for HNAS drivers

get_pool(config, volume)

Get the pool of a volume.

Parameters:
  • config – dictionary containing the configuration parameters
  • volume – dictionary volume reference
Returns:

the pool related to the volume

read_cinder_conf(config_opts)

Reads cinder.conf

Gets the driver specific information set on cinder.conf configuration file.

Parameters:
  • config_opts – Configuration object that contains the information needed by HNAS driver
  • dv_type – The type of the driver (NFS or iSCSI)
Returns:

Dictionary with the driver configuration

read_xml_config(xml_config_file, svc_params, optional_params)

Read Hitachi driver specific xml config file.

Parameters:
  • xml_config_file – string filename containing XML configuration
  • svc_params – parameters to configure the services
['volume_type', 'hdp']
Parameters:optional_params – parameters to configure that are not mandatory
['ssc_cmd', 'cluster_admin_ip0', 'chap_enabled']
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.