Merge "Fix for Unable to create RAID1 on Dell BOSS card" into stable/queens
This commit is contained in:
commit
fed7c4df06
|
@ -15,8 +15,7 @@
|
|||
"size_gb": {
|
||||
"anyOf": [{
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"exclusiveMinimum": true
|
||||
"minimum": 0
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
fixes:
|
||||
- Fixes support for RAID 1 creation on Dell Boot Optimized Storage Solution
|
||||
(BOSS).
|
Loading…
Reference in New Issue