Merge "Update NetApp params for Kilo"

This commit is contained in:
Jenkins
2015-04-19 09:59:43 +00:00
committed by Gerrit Code Review
4 changed files with 131 additions and 102 deletions

View File

@@ -11,17 +11,17 @@
# #
# [*netapp_password*] # [*netapp_password*]
# (required) Password for the administrative user account specified in the # (required) Password for the administrative user account specified in the
# netapp_login parameter. # netapp_login option.
# #
# [*netapp_server_hostname*] # [*netapp_server_hostname*]
# (required) The hostname (or IP address) for the storage system or proxy # (required) The hostname (or IP address) for the storage system or proxy
# server. # server.
# #
# [*netapp_server_port*] # [*netapp_server_port*]
# (optional) The TCP port to use for communication with ONTAPI on the # (optional) The TCP port to use for communication with the storage
# storage system. Traditionally, port 80 is used for HTTP and port 443 is # system or proxy. If not specified, Data ONTAP drivers will use 80
# used for HTTPS; however, this value should be changed if an alternate # for HTTP and 443 for HTTPS; E-Series will use 8080 for HTTP and
# port has been configured on the storage system or proxy server. # 8443 for HTTPS.
# Defaults to 80 # Defaults to 80
# #
# [*netapp_size_multiplier*] # [*netapp_size_multiplier*]
@@ -32,46 +32,48 @@
# #
# [*netapp_storage_family*] # [*netapp_storage_family*]
# (optional) The storage family type used on the storage system; valid values # (optional) The storage family type used on the storage system; valid values
# are ontap_7mode for using Data ONTAP operating in 7-Mode or ontap_cluster # are ontap_7mode for using Data ONTAP operating in 7-Mode, ontap_cluster
# for using clustered Data ONTAP, or eseries for NetApp E-Series. # for using clustered Data ONTAP, or eseries for NetApp E-Series.
# Defaults to ontap_cluster # Defaults to ontap_cluster
# #
# [*netapp_storage_protocol*] # [*netapp_storage_protocol*]
# (optional) The storage protocol to be used on the data path with the storage # (optional) The storage protocol to be used on the data path with the storage
# system; valid values are iscsi or nfs. # system. Valid values are iscsi, fc, nfs.
# Defaults to nfs # Defaults to nfs
# #
# [*netapp_transport_type*] # [*netapp_transport_type*]
# (optional) The transport protocol used when communicating with ONTAPI on the # (optional) The transport protocol used when communicating with the storage
# storage system or proxy server. Valid values are http or https. # system or proxy server. Valid values are http or https.
# Defaults to http # Defaults to http
# #
# [*netapp_vfiler*] # [*netapp_vfiler*]
# (optional) The vFiler unit on which provisioning of block storage volumes # (optional) The vFiler unit on which provisioning of block storage volumes
# will be done. This parameter is only used by the driver when connecting to # will be done. This parameter is only used by the driver when connecting to
# an instance with a storage family of Data ONTAP operating in 7-Mode and the # an instance with a storage family of Data ONTAP operating in 7-Mode. Only
# storage protocol selected is iSCSI. Only use this parameter when utilizing # use this parameter when utilizing the MultiStore feature on the NetApp
# the MultiStore feature on the NetApp storage system. # storage system.
# Defaults to '' # Defaults to undef
# #
# [*netapp_volume_list*] # [*netapp_volume_list*]
# (optional) This parameter is only utilized when the storage protocol is # (optional) This parameter is only utilized when the storage protocol is
# configured to use iSCSI. This parameter is used to restrict provisioning to # configured to use iSCSI or FC. This parameter is used to restrict
# the specified controller volumes. Specify the value of this parameter to be # provisioning to the specified controller volumes. Specify the value of
# a comma separated list of NetApp controller volume names to be used for # this parameter to be a comma separated list of NetApp controller volume
# provisioning. # names to be used for provisioning.
# Defaults to '' # Defaults to undef
# #
# [*netapp_vserver*] # [*netapp_vserver*]
# (optional) This parameter specifies the virtual storage server (Vserver) # (optional) This option specifies the virtual storage server (Vserver)
# name on the storage cluster on which provisioning of block storage volumes # name on the storage cluster on which provisioning of block storage volumes
# should occur. If using the NFS storage protocol, this parameter is mandatory # should occur.
# for storage service catalog support (utilized by Cinder volume type # Defaults to undef
# extra_specs support). If this parameter is specified, the exports belonging #
# to the Vserver will only be used for provisioning in the future. Block # [*netapp_partner_backend_name*]
# storage volumes on exports not belonging to the Vserver specified by # (optional) The name of the config.conf stanza for a Data ONTAP (7-mode)
# this parameter will continue to function normally. # HA partner. This option is only used by the driver when connecting to an
# Defaults to '' # instance with a storage family of Data ONTAP operating in 7-Mode, and it is
# required if the storage protocol selected is FC.
# Defaults to undef
# #
# [*expiry_thres_minutes*] # [*expiry_thres_minutes*]
# (optional) This parameter specifies the threshold for last access time for # (optional) This parameter specifies the threshold for last access time for
@@ -107,7 +109,7 @@
# (optional) This option specifies the path of the NetApp Copy Offload tool # (optional) This option specifies the path of the NetApp Copy Offload tool
# binary. Ensure that the binary has execute permissions set which allow the # binary. Ensure that the binary has execute permissions set which allow the
# effective user of the cinder-volume process to execute the file. # effective user of the cinder-volume process to execute the file.
# Defaults to '' # Defaults to undef
# #
# [*netapp_controller_ips*] # [*netapp_controller_ips*]
# (optional) This option is only utilized when the storage family is # (optional) This option is only utilized when the storage family is
@@ -115,18 +117,24 @@
# specified controllers. Specify the value of this option to be a comma # specified controllers. Specify the value of this option to be a comma
# separated list of controller hostnames or IP addresses to be used for # separated list of controller hostnames or IP addresses to be used for
# provisioning. # provisioning.
# Defaults to '' # Defaults to undef
# #
# [*netapp_sa_password*] # [*netapp_sa_password*]
# (optional) Password for the NetApp E-Series storage array. # (optional) Password for the NetApp E-Series storage array.
# Defaults to '' # Defaults to undef
# #
# [*netapp_storage_pools*] # [*netapp_storage_pools*]
# (optional) This option is used to restrict provisioning to the specified # (optional) This option is used to restrict provisioning to the specified
# storage pools. Only dynamic disk pools are currently supported. Specify the # storage pools. Only dynamic disk pools are currently supported. Specify the
# value of this option to be a comma separated list of disk pool names to be # value of this option to be a comma separated list of disk pool names to be
# used for provisioning. # used for provisioning.
# Defaults to '' # Defaults to undef
#
# [*netapp_eseries_host_type*]
# (optional) This option is used to define how the controllers in the
# E-Series storage array will work with the particular operating system on
# the hosts that are connected to it.
# Defaults to 'linux_dm_mp'
# #
# [*netapp_webservice_path*] # [*netapp_webservice_path*]
# (optional) This option is used to specify the path to the E-Series proxy # (optional) This option is used to specify the path to the E-Series proxy
@@ -171,18 +179,20 @@ define cinder::backend::netapp (
$netapp_storage_family = 'ontap_cluster', $netapp_storage_family = 'ontap_cluster',
$netapp_storage_protocol = 'nfs', $netapp_storage_protocol = 'nfs',
$netapp_transport_type = 'http', $netapp_transport_type = 'http',
$netapp_vfiler = '', $netapp_vfiler = undef,
$netapp_volume_list = '', $netapp_volume_list = undef,
$netapp_vserver = '', $netapp_vserver = undef,
$netapp_partner_backend_name = undef,
$expiry_thres_minutes = '720', $expiry_thres_minutes = '720',
$thres_avl_size_perc_start = '20', $thres_avl_size_perc_start = '20',
$thres_avl_size_perc_stop = '60', $thres_avl_size_perc_stop = '60',
$nfs_shares = undef, $nfs_shares = undef,
$nfs_shares_config = '/etc/cinder/shares.conf', $nfs_shares_config = '/etc/cinder/shares.conf',
$netapp_copyoffload_tool_path = '', $netapp_copyoffload_tool_path = undef,
$netapp_controller_ips = '', $netapp_controller_ips = undef,
$netapp_sa_password = '', $netapp_sa_password = undef,
$netapp_storage_pools = '', $netapp_storage_pools = undef,
$netapp_eseries_host_type = 'linux_dm_mp',
$netapp_webservice_path = '/devmgr/v2', $netapp_webservice_path = '/devmgr/v2',
$extra_options = {}, $extra_options = {},
) { ) {
@@ -210,6 +220,7 @@ define cinder::backend::netapp (
"${volume_backend_name}/netapp_vfiler": value => $netapp_vfiler; "${volume_backend_name}/netapp_vfiler": value => $netapp_vfiler;
"${volume_backend_name}/netapp_volume_list": value => $netapp_volume_list; "${volume_backend_name}/netapp_volume_list": value => $netapp_volume_list;
"${volume_backend_name}/netapp_vserver": value => $netapp_vserver; "${volume_backend_name}/netapp_vserver": value => $netapp_vserver;
"${volume_backend_name}/netapp_partner_backend_name": value => $netapp_partner_backend_name;
"${volume_backend_name}/expiry_thres_minutes": value => $expiry_thres_minutes; "${volume_backend_name}/expiry_thres_minutes": value => $expiry_thres_minutes;
"${volume_backend_name}/thres_avl_size_perc_start": value => $thres_avl_size_perc_start; "${volume_backend_name}/thres_avl_size_perc_start": value => $thres_avl_size_perc_start;
"${volume_backend_name}/thres_avl_size_perc_stop": value => $thres_avl_size_perc_stop; "${volume_backend_name}/thres_avl_size_perc_stop": value => $thres_avl_size_perc_stop;
@@ -218,6 +229,7 @@ define cinder::backend::netapp (
"${volume_backend_name}/netapp_controller_ips": value => $netapp_controller_ips; "${volume_backend_name}/netapp_controller_ips": value => $netapp_controller_ips;
"${volume_backend_name}/netapp_sa_password": value => $netapp_sa_password, secret => true; "${volume_backend_name}/netapp_sa_password": value => $netapp_sa_password, secret => true;
"${volume_backend_name}/netapp_storage_pools": value => $netapp_storage_pools; "${volume_backend_name}/netapp_storage_pools": value => $netapp_storage_pools;
"${volume_backend_name}/netapp_eseries_host_type": value => $netapp_eseries_host_type;
"${volume_backend_name}/netapp_webservice_path": value => $netapp_webservice_path; "${volume_backend_name}/netapp_webservice_path": value => $netapp_webservice_path;
} }

View File

@@ -6,20 +6,21 @@
# #
# [*netapp_login*] # [*netapp_login*]
# (required) Administrative user account name used to access the storage # (required) Administrative user account name used to access the storage
# system. # system or proxy server.
# #
# [*netapp_password*] # [*netapp_password*]
# (required) Password for the administrative user account specified in the # (required) Password for the administrative user account specified in the
# netapp_login parameter. # netapp_login option.
# #
# [*netapp_server_hostname*] # [*netapp_server_hostname*]
# (required) The hostname (or IP address) for the storage system. # (required) The hostname (or IP address) for the storage system or proxy
# server.
# #
# [*netapp_server_port*] # [*netapp_server_port*]
# (optional) The TCP port to use for communication with ONTAPI on the # (optional) The TCP port to use for communication with the storage
# storage system. Traditionally, port 80 is used for HTTP and port 443 is # system or proxy. If not specified, Data ONTAP drivers will use 80
# used for HTTPS; however, this value should be changed if an alternate # for HTTP and 443 for HTTPS; E-Series will use 8080 for HTTP and
# port has been configured on the storage system. # 8443 for HTTPS.
# Defaults to 80 # Defaults to 80
# #
# [*netapp_size_multiplier*] # [*netapp_size_multiplier*]
@@ -30,46 +31,48 @@
# #
# [*netapp_storage_family*] # [*netapp_storage_family*]
# (optional) The storage family type used on the storage system; valid values # (optional) The storage family type used on the storage system; valid values
# are ontap_7mode for using Data ONTAP operating in 7-Mode or ontap_cluster # are ontap_7mode for using Data ONTAP operating in 7-Mode, ontap_cluster
# for using clustered Data ONTAP. # for using clustered Data ONTAP, or eseries for NetApp E-Series.
# Defaults to ontap_cluster # Defaults to ontap_cluster
# #
# [*netapp_storage_protocol*] # [*netapp_storage_protocol*]
# (optional) The storage protocol to be used on the data path with the storage # (optional) The storage protocol to be used on the data path with the storage
# system; valid values are iscsi or nfs. # system. Valid values are iscsi, fc, nfs.
# Defaults to nfs # Defaults to nfs
# #
# [*netapp_transport_type*] # [*netapp_transport_type*]
# (optional) The transport protocol used when communicating with ONTAPI on the # (optional) The transport protocol used when communicating with the storage
# storage system. Valid values are http or https. # system or proxy server. Valid values are http or https.
# Defaults to http # Defaults to http
# #
# [*netapp_vfiler*] # [*netapp_vfiler*]
# (optional) The vFiler unit on which provisioning of block storage volumes # (optional) The vFiler unit on which provisioning of block storage volumes
# will be done. This parameter is only used by the driver when connecting to # will be done. This parameter is only used by the driver when connecting to
# an instance with a storage family of Data ONTAP operating in 7-Mode and the # an instance with a storage family of Data ONTAP operating in 7-Mode. Only
# storage protocol selected is iSCSI. Only use this parameter when utilizing # use this parameter when utilizing the MultiStore feature on the NetApp
# the MultiStore feature on the NetApp storage system. # storage system.
# Defaults to '' # Defaults to undef
# #
# [*netapp_volume_list*] # [*netapp_volume_list*]
# (optional) This parameter is only utilized when the storage protocol is # (optional) This parameter is only utilized when the storage protocol is
# configured to use iSCSI. This parameter is used to restrict provisioning to # configured to use iSCSI or FC. This parameter is used to restrict
# the specified controller volumes. Specify the value of this parameter to be # provisioning to the specified controller volumes. Specify the value of
# a comma separated list of NetApp controller volume names to be used for # this parameter to be a comma separated list of NetApp controller volume
# provisioning. # names to be used for provisioning.
# Defaults to '' # Defaults to undef
# #
# [*netapp_vserver*] # [*netapp_vserver*]
# (optional) This parameter specifies the virtual storage server (Vserver) # (optional) This option specifies the virtual storage server (Vserver)
# name on the storage cluster on which provisioning of block storage volumes # name on the storage cluster on which provisioning of block storage volumes
# should occur. If using the NFS storage protocol, this parameter is mandatory # should occur.
# for storage service catalog support (utilized by Cinder volume type # Defaults to undef
# extra_specs support). If this parameter is specified, the exports belonging #
# to the Vserver will only be used for provisioning in the future. Block # [*netapp_partner_backend_name*]
# storage volumes on exports not belonging to the Vserver specified by # (optional) The name of the config.conf stanza for a Data ONTAP (7-mode)
# this parameter will continue to function normally. # HA partner. This option is only used by the driver when connecting to an
# Defaults to '' # instance with a storage family of Data ONTAP operating in 7-Mode, and it is
# required if the storage protocol selected is FC.
# Defaults to undef
# #
# [*expiry_thres_minutes*] # [*expiry_thres_minutes*]
# (optional) This parameter specifies the threshold for last access time for # (optional) This parameter specifies the threshold for last access time for
@@ -86,10 +89,10 @@
# Defaults to 20 # Defaults to 20
# #
# [*thres_avl_size_perc_stop*] # [*thres_avl_size_perc_stop*]
# (optional) When the percentage of available space on an NFS share has reached the # (optional) When the percentage of available space on an NFS share has
# percentage specified by this parameter, the driver will stop clearing files # reached the percentage specified by this parameter, the driver will stop
# from the NFS image cache that have not been accessed in the last M # clearing files from the NFS image cache that have not been accessed in the
# 'minutes, where M is the value of the expiry_thres_minutes parameter. # last M minutes, where M is the value of the expiry_thres_minutes parameter.
# Defaults to 60 # Defaults to 60
# #
# [*nfs_shares*] # [*nfs_shares*]
@@ -105,7 +108,7 @@
# (optional) This option specifies the path of the NetApp Copy Offload tool # (optional) This option specifies the path of the NetApp Copy Offload tool
# binary. Ensure that the binary has execute permissions set which allow the # binary. Ensure that the binary has execute permissions set which allow the
# effective user of the cinder-volume process to execute the file. # effective user of the cinder-volume process to execute the file.
# Defaults to '' # Defaults to undef
# #
# [*netapp_controller_ips*] # [*netapp_controller_ips*]
# (optional) This option is only utilized when the storage family is # (optional) This option is only utilized when the storage family is
@@ -113,18 +116,24 @@
# specified controllers. Specify the value of this option to be a comma # specified controllers. Specify the value of this option to be a comma
# separated list of controller hostnames or IP addresses to be used for # separated list of controller hostnames or IP addresses to be used for
# provisioning. # provisioning.
# Defaults to '' # Defaults to undef
# #
# [*netapp_sa_password*] # [*netapp_sa_password*]
# (optional) Password for the NetApp E-Series storage array. # (optional) Password for the NetApp E-Series storage array.
# Defaults to '' # Defaults to undef
# #
# [*netapp_storage_pools*] # [*netapp_storage_pools*]
# (optional) This option is used to restrict provisioning to the specified # (optional) This option is used to restrict provisioning to the specified
# storage pools. Only dynamic disk pools are currently supported. Specify the # storage pools. Only dynamic disk pools are currently supported. Specify the
# value of this option to be a comma separated list of disk pool names to be # value of this option to be a comma separated list of disk pool names to be
# used for provisioning. # used for provisioning.
# Defaults to '' # Defaults to undef
#
# [*netapp_eseries_host_type*]
# (optional) This option is used to define how the controllers in the
# E-Series storage array will work with the particular operating system on
# the hosts that are connected to it.
# Defaults to 'linux_dm_mp'
# #
# [*netapp_webservice_path*] # [*netapp_webservice_path*]
# (optional) This option is used to specify the path to the E-Series proxy # (optional) This option is used to specify the path to the E-Series proxy
@@ -168,18 +177,20 @@ class cinder::volume::netapp (
$netapp_storage_family = 'ontap_cluster', $netapp_storage_family = 'ontap_cluster',
$netapp_storage_protocol = 'nfs', $netapp_storage_protocol = 'nfs',
$netapp_transport_type = 'http', $netapp_transport_type = 'http',
$netapp_vfiler = '', $netapp_vfiler = undef,
$netapp_volume_list = '', $netapp_volume_list = undef,
$netapp_vserver = '', $netapp_vserver = undef,
$netapp_partner_backend_name = undef,
$expiry_thres_minutes = '720', $expiry_thres_minutes = '720',
$thres_avl_size_perc_start = '20', $thres_avl_size_perc_start = '20',
$thres_avl_size_perc_stop = '60', $thres_avl_size_perc_stop = '60',
$nfs_shares = undef, $nfs_shares = undef,
$nfs_shares_config = '/etc/cinder/shares.conf', $nfs_shares_config = '/etc/cinder/shares.conf',
$netapp_copyoffload_tool_path = '', $netapp_copyoffload_tool_path = undef,
$netapp_controller_ips = '', $netapp_controller_ips = undef,
$netapp_sa_password = '', $netapp_sa_password = undef,
$netapp_storage_pools = '', $netapp_storage_pools = undef,
$netapp_eseries_host_type = 'linux_dm_mp',
$netapp_webservice_path = '/devmgr/v2', $netapp_webservice_path = '/devmgr/v2',
$extra_options = {}, $extra_options = {},
) { ) {
@@ -196,6 +207,7 @@ class cinder::volume::netapp (
netapp_vfiler => $netapp_vfiler, netapp_vfiler => $netapp_vfiler,
netapp_volume_list => $netapp_volume_list, netapp_volume_list => $netapp_volume_list,
netapp_vserver => $netapp_vserver, netapp_vserver => $netapp_vserver,
netapp_partner_backend_name => $netapp_partner_backend_name,
expiry_thres_minutes => $expiry_thres_minutes, expiry_thres_minutes => $expiry_thres_minutes,
thres_avl_size_perc_start => $thres_avl_size_perc_start, thres_avl_size_perc_start => $thres_avl_size_perc_start,
thres_avl_size_perc_stop => $thres_avl_size_perc_stop, thres_avl_size_perc_stop => $thres_avl_size_perc_stop,
@@ -205,6 +217,7 @@ class cinder::volume::netapp (
netapp_controller_ips => $netapp_controller_ips, netapp_controller_ips => $netapp_controller_ips,
netapp_sa_password => $netapp_sa_password, netapp_sa_password => $netapp_sa_password,
netapp_storage_pools => $netapp_storage_pools, netapp_storage_pools => $netapp_storage_pools,
netapp_eseries_host_type => $netapp_eseries_host_type,
netapp_webservice_path => $netapp_webservice_path, netapp_webservice_path => $netapp_webservice_path,
extra_options => $extra_options, extra_options => $extra_options,
} }

View File

@@ -7,6 +7,14 @@ describe 'cinder::volume::netapp' do
:netapp_login => 'netapp', :netapp_login => 'netapp',
:netapp_password => 'password', :netapp_password => 'password',
:netapp_server_hostname => '127.0.0.2', :netapp_server_hostname => '127.0.0.2',
:netapp_vfiler => 'netapp_vfiler',
:netapp_volume_list => 'vol1,vol2',
:netapp_vserver => 'netapp_vserver',
:netapp_partner_backend_name => 'fc2',
:netapp_copyoffload_tool_path => '/tmp/na_copyoffload_64',
:netapp_controller_ips => '10.0.0.2,10.0.0.3',
:netapp_sa_password => 'password',
:netapp_storage_pools => 'pool1,pool2',
} }
end end
@@ -17,17 +25,11 @@ describe 'cinder::volume::netapp' do
:netapp_storage_family => 'ontap_cluster', :netapp_storage_family => 'ontap_cluster',
:netapp_storage_protocol => 'nfs', :netapp_storage_protocol => 'nfs',
:netapp_transport_type => 'http', :netapp_transport_type => 'http',
:netapp_vfiler => '',
:netapp_volume_list => '',
:netapp_vserver => '',
:expiry_thres_minutes => '720', :expiry_thres_minutes => '720',
:thres_avl_size_perc_start => '20', :thres_avl_size_perc_start => '20',
:thres_avl_size_perc_stop => '60', :thres_avl_size_perc_stop => '60',
:nfs_shares_config => '/etc/cinder/shares.conf', :nfs_shares_config => '/etc/cinder/shares.conf',
:netapp_copyoffload_tool_path => '', :netapp_eseries_host_type => 'linux_dm_mp',
:netapp_controller_ips => '',
:netapp_sa_password => '',
:netapp_storage_pools => '',
:netapp_webservice_path => '/devmgr/v2', :netapp_webservice_path => '/devmgr/v2',
} }
end end

View File

@@ -10,6 +10,14 @@ describe 'cinder::backend::netapp' do
:netapp_login => 'netapp', :netapp_login => 'netapp',
:netapp_password => 'password', :netapp_password => 'password',
:netapp_server_hostname => '127.0.0.2', :netapp_server_hostname => '127.0.0.2',
:netapp_vfiler => 'netapp_vfiler',
:netapp_volume_list => 'vol1,vol2',
:netapp_vserver => 'netapp_vserver',
:netapp_partner_backend_name => 'fc2',
:netapp_copyoffload_tool_path => '/tmp/na_copyoffload_64',
:netapp_controller_ips => '10.0.0.2,10.0.0.3',
:netapp_sa_password => 'password',
:netapp_storage_pools => 'pool1,pool2',
} }
end end
@@ -20,17 +28,11 @@ describe 'cinder::backend::netapp' do
:netapp_storage_family => 'ontap_cluster', :netapp_storage_family => 'ontap_cluster',
:netapp_storage_protocol => 'nfs', :netapp_storage_protocol => 'nfs',
:netapp_transport_type => 'http', :netapp_transport_type => 'http',
:netapp_vfiler => '',
:netapp_volume_list => '',
:netapp_vserver => '',
:expiry_thres_minutes => '720', :expiry_thres_minutes => '720',
:thres_avl_size_perc_start => '20', :thres_avl_size_perc_start => '20',
:thres_avl_size_perc_stop => '60', :thres_avl_size_perc_stop => '60',
:nfs_shares_config => '/etc/cinder/shares.conf', :nfs_shares_config => '/etc/cinder/shares.conf',
:netapp_copyoffload_tool_path => '', :netapp_eseries_host_type => 'linux_dm_mp',
:netapp_controller_ips => '',
:netapp_sa_password => '',
:netapp_storage_pools => '',
:netapp_webservice_path => '/devmgr/v2', :netapp_webservice_path => '/devmgr/v2',
} }
end end