Merge "Fix for Unable to create RAID1 on Dell BOSS card"

This commit is contained in:
Zuul 2018-06-25 18:09:27 +00:00 committed by Gerrit Code Review
commit aae0454f3a
4 changed files with 22 additions and 2 deletions

View File

@ -15,8 +15,7 @@
"size_gb": {
"anyOf": [{
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true
"minimum": 0
},
{
"type": "string",

View File

@ -69,6 +69,12 @@ class ValidateRaidConfigurationTestCase(base.TestCase):
raid_config,
raid_config_schema=self.schema)
def test_validate_configuration_zero_size_gb(self):
raid_config = json.loads(raid_constants.RAID_CONFIG_ZERO_SIZE_GB)
raid.validate_configuration(raid_config,
raid_config_schema=self.schema)
def test_validate_configuration_max_size_gb(self):
raid_config = json.loads(raid_constants.RAID_CONFIG_MAX_SIZE_GB)
raid.validate_configuration(raid_config,

View File

@ -84,6 +84,17 @@ RAID_CONFIG_INVALID_SIZE_GB = '''
}
'''
RAID_CONFIG_ZERO_SIZE_GB = '''
{
"logical_disks": [
{
"raid_level": "1",
"size_gb": 0
}
]
}
'''
RAID_CONFIG_MAX_SIZE_GB = '''
{
"logical_disks": [

View File

@ -0,0 +1,4 @@
---
features:
- Adds support for RAID 1 creation on Dell Boot Optimized Storage Solution
(BOSS).