Adds changes in hpssa validator to support '10','50,'60' raid level

This commit resolved out-of-band raid configuratation bug which give
invalid raid_level error while passing redfish supported raid level:
'10', '50' and '60' in input raid configuration during creation of
raid.

Change-Id: I903ea5e95e9c34aeb5d8a3f2c8c62aba7957c421
Bug-Id: 1804131
This commit is contained in:
paresh-sao 2018-11-20 06:38:52 +00:00
parent 5927a933c5
commit 9b08858ca1
2 changed files with 8 additions and 2 deletions

View File

@ -26,6 +26,9 @@ RAID_5 = '5'
RAID_6 = '6'
RAID_50 = '5+0'
RAID_60 = '6+0'
RAID_1_0 = '10'
RAID_5_0 = '50'
RAID_6_0 = '60'
# Below are not supported in Ironic now.
RAID_1_ADM = '1ADM'
RAID_10_ADM = '10ADM'
@ -56,8 +59,11 @@ RAID_LEVEL_MIN_DISKS = {RAID_0: 1,
RAID_5: 3,
RAID_6: 4,
RAID_10: 4,
RAID_1_0: 4,
RAID_50: 6,
RAID_60: 8}
RAID_5_0: 6,
RAID_60: 8,
RAID_6_0: 8}
MINIMUM_DISK_SIZE = 1

View File

@ -9,7 +9,7 @@
"properties": {
"raid_level": {
"type": "string",
"enum": [ "0", "1", "5", "6", "1+0", "5+0", "6+0" ],
"enum": [ "0", "1", "5", "6", "10", "50", "60", "1+0", "5+0", "6+0" ],
"description": "RAID level for the logical disk. Required."
},
"size_gb": {