ibm flashsystem: Fixing hardcoded attribute
In FlashSystem driver, flashsystem_common.py, the attribute "multiattach" has been hard coded as "True", this attribute value should be read from the configuration file. The property name is "flashsystem_multihost_enabled". This bug will force the customers to run all operations in multi-attached environment. Change-Id: Id092c51e565052c5eef2d3381d53f5788a97d9cc Closes-Bug: #1572743
This commit is contained in:
parent
ab8d63b796
commit
0fcef188f7
@ -1021,6 +1021,7 @@ class FlashSystemDriverTestCase(test.TestCase):
|
|||||||
def test_flashsystem_get_volume_stats(self):
|
def test_flashsystem_get_volume_stats(self):
|
||||||
# case 1: good path
|
# case 1: good path
|
||||||
self._set_flag('reserved_percentage', 25)
|
self._set_flag('reserved_percentage', 25)
|
||||||
|
self._set_flag('flashsystem_multihostmap_enabled', False)
|
||||||
pool = 'mdiskgrp0'
|
pool = 'mdiskgrp0'
|
||||||
backend_name = 'flashsystem_1.2.3.4' + '_' + pool
|
backend_name = 'flashsystem_1.2.3.4' + '_' + pool
|
||||||
|
|
||||||
@ -1030,6 +1031,7 @@ class FlashSystemDriverTestCase(test.TestCase):
|
|||||||
self.assertEqual('IBM', stats['vendor_name'])
|
self.assertEqual('IBM', stats['vendor_name'])
|
||||||
self.assertEqual('FC', stats['storage_protocol'])
|
self.assertEqual('FC', stats['storage_protocol'])
|
||||||
self.assertEqual(backend_name, stats['volume_backend_name'])
|
self.assertEqual(backend_name, stats['volume_backend_name'])
|
||||||
|
self.assertEqual(False, stats['multiattach'])
|
||||||
|
|
||||||
self._reset_flags()
|
self._reset_flags()
|
||||||
|
|
||||||
|
@ -858,7 +858,7 @@ class FlashSystemDriver(san.SanDriver):
|
|||||||
'free_capacity_gb': 0,
|
'free_capacity_gb': 0,
|
||||||
'reserved_percentage': self.configuration.reserved_percentage,
|
'reserved_percentage': self.configuration.reserved_percentage,
|
||||||
'QoS_support': False,
|
'QoS_support': False,
|
||||||
'multiattach': True,
|
'multiattach': self.configuration.flashsystem_multihostmap_enabled,
|
||||||
}
|
}
|
||||||
|
|
||||||
pool = FLASHSYSTEM_VOLPOOL_NAME
|
pool = FLASHSYSTEM_VOLPOOL_NAME
|
||||||
|
Loading…
Reference in New Issue
Block a user