[manila] Add "ManilaEnabledShareProtocols" param

Manila's API service has a configuration option to
control what NAS protocols are allowed for user
shared file systems. Storage backends in manila can
advertise a number of possible NAS protocols.

Deployers need to be able to limit the protocols
enabled on their deployments, or specify an
override when enabling custom backends.

Change-Id: I877063dd3ab9369b09c84136a58f5565aa3f7720
Closes-Bug: #1831767
Depends-On: I7b36e5c45b029f070976e58335d79678752a990c
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
Co-Authored-By: Alan Bishop <abishop@redhat.com>
(cherry picked from commit 143dd289e9)
(cherry picked from commit bb866621a9)
This commit is contained in:
Goutham Pacha Ravi 2020-10-05 22:30:05 -07:00
parent 88ed572d0b
commit 7b76873150
2 changed files with 14 additions and 0 deletions

View File

@ -64,6 +64,12 @@ parameters:
MonitoringSubscriptionManilaApi: MonitoringSubscriptionManilaApi:
default: 'overcloud-manila-api' default: 'overcloud-manila-api'
type: string type: string
ManilaEnabledShareProtocols:
default: ''
description: List of protocols to be allowed for share creation in manila.
When not set, the list is inferred via the storage back end/s
enabled.
type: comma_delimited_list
conditions: conditions:
@ -164,6 +170,7 @@ outputs:
manila::api::service_name: 'httpd' manila::api::service_name: 'httpd'
manila::api::enable_proxy_headers_parsing: true manila::api::enable_proxy_headers_parsing: true
manila::api::default_share_type: 'default' manila::api::default_share_type: 'default'
manila_enabled_share_protocols: {get_param: ManilaEnabledShareProtocols}
- manila::wsgi::apache::servername: - manila::wsgi::apache::servername:
str_replace: str_replace:
template: template:

View File

@ -0,0 +1,7 @@
---
fixes:
- |
When using the Shared File Systems service (manila), you may now use the
Heat template parameter "ManilaEnabledShareProtocols" to configure
the NAS protocols that users may use. If not set, the value is inferred
per the storage backends that have been enabled.