[Manila Unity] Set unity_server_meta_pool option as required

Change-Id: Ie87b10d4199ac775adba20f645f56650bbdea301
Closes-bug: #1765580
(cherry picked from commit f96b9d8fcc)
This commit is contained in:
Yong Huang 2018-04-20 11:20:55 +08:00
parent 344d4aa91c
commit a725d26770
3 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
================
EMC Unity driver
================
=====================
Dell EMC Unity driver
=====================
The EMC Shared File Systems service driver framework (EMCShareDriver)
utilizes the EMC storage products to provide the shared file systems to
@ -176,6 +176,7 @@ for the Unity driver.
- ``unity_server_meta_pool``
The name of the pool to persist the meta-data of NAS server.
This option is required.
- ``unity_share_data_pools``
Comma separated list specifying the name of the pools to be used

View File

@ -43,6 +43,7 @@ SUPPORTED_NETWORK_TYPES = (None, 'flat', 'vlan')
UNITY_OPTS = [
cfg.StrOpt('unity_server_meta_pool',
required=True,
deprecated_name='emc_nas_server_pool',
help='Pool to persist the meta-data of NAS server.'),
cfg.ListOpt('unity_share_data_pools',

View File

@ -61,6 +61,8 @@ def set_defaults(conf):
_safe_set_of_opts(conf, 'qnap_nas_password', 'qnapadmin')
_safe_set_of_opts(conf, 'qnap_poolname', 'Storage Pool 1')
_safe_set_of_opts(conf, 'unity_server_meta_pool', 'nas_server_pool')
def _safe_set_of_opts(conf, *args, **kwargs):
try: