Merge "QNAP: Add support for QTS 4.4.0"

This commit is contained in:
Zuul 2019-02-14 11:23:18 +00:00 committed by Gerrit Code Review
commit 5b65410896
3 changed files with 12 additions and 3 deletions

View File

@ -4735,6 +4735,7 @@ class QnapAPIExecutorTsTestCase(QnapDriverBaseTestCase):
fake_params['poolID'] = 'fakepool'
fake_params['lv_ifssd'] = 'no'
fake_params['LUNCapacity'] = 100
fake_params['LUNSectorSize'] = '512'
fake_params['lv_threshold'] = '80'
fake_params['sid'] = 'fakeSid'
@ -4792,6 +4793,7 @@ class QnapAPIExecutorTsTestCase(QnapDriverBaseTestCase):
fake_params['poolID'] = 'fakepool'
fake_params['lv_ifssd'] = 'no'
fake_params['LUNCapacity'] = 100
fake_params['LUNSectorSize'] = '512'
fake_params['lv_threshold'] = '80'
fake_params['sid'] = 'fakeSid'

View File

@ -77,6 +77,8 @@ class QnapISCSIDriver(san.SanISCSIDriver):
Add support for QES fw 2.1.0.
1.2.004:
Add support for QES fw on TDS series NAS model.
1.2.005:
Add support for QTS fw 4.4.0.
NOTE: Set driver_ssl_cert_verify as True under backend section to
enable SSL verification.
@ -85,7 +87,7 @@ class QnapISCSIDriver(san.SanISCSIDriver):
# ThirdPartySystems wiki page
CI_WIKI_NAME = "QNAP_CI"
VERSION = '1.2.004'
VERSION = '1.2.005'
TIME_INTERVAL = 3
@ -187,7 +189,7 @@ class QnapISCSIDriver(san.SanISCSIDriver):
]
LOG.debug('fw_version: %s', fw_version)
if model_type in ts_model_types:
if (fw_version >= "4.2") and (fw_version <= "4.4"):
if (fw_version >= "4.2") and (fw_version <= "4.4.9999"):
LOG.debug('Create TS API Executor')
# modify the pool name to pool index
self.configuration.qnap_poolname = (
@ -201,7 +203,7 @@ class QnapISCSIDriver(san.SanISCSIDriver):
verify_ssl=self.configuration.driver_ssl_cert_verify))
elif model_type in tes_model_types:
if 'TS' in internal_model_name:
if (fw_version >= "4.2") and (fw_version <= "4.4"):
if (fw_version >= "4.2") and (fw_version <= "4.4.9999"):
LOG.debug('Create TS API Executor')
# modify the pool name to poole index
self.configuration.qnap_poolname = (
@ -1817,6 +1819,7 @@ class QnapAPIExecutorTS(QnapAPIExecutor):
poolID=pool_name,
lv_ifssd='yes' if ssd_cache else 'no',
LUNCapacity=volume['size'],
LUNSectorSize='512',
lv_threshold='80',
sid=self.sid)
finally:

View File

@ -0,0 +1,4 @@
---
features:
- |
Added support for QTS fw 4.4.0 to QNAP Cinder driver.