Fix for Unable to create RAID1 on Dell BOSS card
This patch changes the RAID configuration schema so that 0 is allowed
for size_gb. This allows passing 0 for the size, which the Dell Boot
Optimized Storage Solution (BOSS) requires.
Change-Id: I57cf290021e32809b248350688c3f83e7bbf7351
Task: #22082
Story: #2002536
Co-Authored-By: Digambar Patil <digambarpat@gmail.com>
Depends-On: Id149f6250318e6162a168d002671faa2b3a7989b
(cherry picked from commit 01a9016779
)
This commit is contained in:
parent
21b199b586
commit
9850a86485
|
@ -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