The Nimble driver does not set the VERSION variable
causing its version to be logged as N/A. This patch
updates that variable so that the correct version
number is reflected in the log.
Change-Id: I922257cf79e1a65247fd5384fa1fa746660efae3
Closes-Bug: #
1476859
def test_get_volume_stats(self):
self.mock_client_service.service.getGroupConfig.return_value = \
FAKE_POSITIVE_GROUP_CONFIG_RESPONSE
- expected_res = {'driver_version': '1.1.0',
+ expected_res = {'driver_version': '1.1.1',
'total_capacity_gb': 7466.30419921875,
'QoS_support': False,
'reserved_percentage': 0,
from cinder.volume import volume_types
-DRIVER_VERSION = '1.1.0'
+DRIVER_VERSION = '1.1.1'
AES_256_XTS_CIPHER = 2
DEFAULT_CIPHER = 3
EXTRA_SPEC_ENCRYPTION = 'nimble:encryption'
Version history:
1.0 - Initial driver
1.1.0 - Added Extra Spec Capability
+ 1.1.1 - Updated VERSION to Nimble driver version
"""
+ VERSION = DRIVER_VERSION
+
def __init__(self, *args, **kwargs):
super(NimbleISCSIDriver, self).__init__(*args, **kwargs)
self.APIExecutor = None