ProLiant Servers (ML,DL,SL)
1825769 Members
2001 Online
109687 Solutions
New Discussion

HPE Redfish and MR controllers.

 
Martie_19
Visitor

HPE Redfish and MR controllers.

Hi all,

I'm looking to automate raid array creation on a large number of DL325 G11 servers we have. Searching through all the documents it seems to be possible with the newer firmwares. 

References here: 
https://www.hpe.com/psnow/doc/a50006146enw P19

https://support.hpe.com/hpesc/public/docDisplay?docId=sd00002176en_us&docLocale=en_US&page=GUID-4ABF6611-2342-47C8-B356-2414F9FAEB78.html#write-requests

I cannot get this to work, anybody else have some experience on this, got it to work on MR adapters.  I have all the latest firmwares applied to my test server. 

5 REPLIES 5
SydUmar_1
HPE Pro

Re: HPE Redfish and MR controllers.

Hello @Martie_19  
What is the error message being received when you run the REDFISH command while volume creation ?



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Martie_19
Visitor

Re: HPE Redfish and MR controllers.

I get following: when doing a post. 

400
Allow GET, HEAD, PATCH, POST, DELETE
Cache-Control no-cache
Content-type application/json; charset=utf-8
Date Mon, 09 Sep 2024 06:03:21 GMT
ETag W/"02C2D1BB"
OData-Version 4.0
Transfer-Encoding chunked
X-Content-Type-Options nosniff
X-Frame-Options sameorigin
X-XSS-Protection 1; mode=block


{"error":{"code":"iLO.0.10.ExtendedInfo","message":"See @Message.ExtendedInfo for more information.","@Message.ExtendedInfo":[{"MessageId":"iLO.2.26.UnsupportedOperation"}]}}

I also tried using the ilorest  serverclone method  by using following command:  serverclone save --ilossa. This successfully saves the configurtion to the ilorest_storage_clone.json file. 

Trying to load is with the serverclone load --ilossa command gives me a python null reference error. 


SydUmar_1
HPE Pro

Re: HPE Redfish and MR controllers.

Could you please confirm if the iLO firmware version is on the latest version (v1.62)? If not, could you update it to the latest version and check - https://support.hpe.com/connect/s/softwaredetails?language=en_US&collectionId=MTX-994a0b6ce04a44b9&tab=revisionHistory&softwareId=MTX_2948f72193c143739cc0e6ab4c 



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Martie_19
Visitor

Re: HPE Redfish and MR controllers.

Updated to 1.62. 

I saved the config again using ilorest serverclone save --isossa 
When loading I get NoneType error. See below console output:


iLORest > serverclone load --ilossa
A configuration file ilorest_storage_clone.json containing configuration changes will be applied to this iLO server resulting in system setting changes for Storage urls like controllers, volume, deletion and rearrangement of logical disks...etc. Please confirm you acknowledge and would like to perform this operation now? (y/n)
Y
Proceeding with Storage Clone Load Operation...
Controller id 0
Storage ID only DE DE040000
Do you want to delete current DE040000 controller? (y/n)
y
Proceeding with Deletion DE storage...
Unhandled exception(s) occurred: 'CapacityBytes'
ERROR : Check the ServerClone Error logfile for further info: clone_error_logfile.log
Traceback (most recent call last):
File "extensions\iLO_COMMANDS\ServerCloneCommand.py", line 95, in func_wrap
File "extensions\iLO_COMMANDS\ServerCloneCommand.py", line 539, in get_drives_capacityt
KeyError: 'CapacityBytes'
An error occurred: 'CapacityBytes'. Check the ServerClone Error logfile for further info: clone_error_logfile.log
Logging error to 'clone_error_logfile.log'.
Unhandled exception(s) occurred: cannot unpack non-iterable NoneType object
ERROR : Check the ServerClone Error logfile for further info: clone_error_logfile.log
Traceback (most recent call last):
File "extensions\iLO_COMMANDS\ServerCloneCommand.py", line 95, in func_wrap
File "extensions\iLO_COMMANDS\ServerCloneCommand.py", line 630, in load_storageclone
TypeError: cannot unpack non-iterable NoneType object
An error occurred: cannot unpack non-iterable NoneType object. Check the ServerClone Error logfile for further info: clone_error_logfile.log


JSON of ilorest_storage_clone.json below, removed serial numbers:
{
"DE040000": {
"@Redfish.WriteableProperties": [
"AutoVolumeCreate"
],
"Id": "DE040000",
"Name": "HPE MR216i-o Gen11",
"AutoVolumeCreate@Redfish.AllowableValues": [
"Disabled",
"NonRAID"
],
"AutoVolumeCreate": "NonRAID",
"Controllers": {
"Name": "Storage Controller Collection",
"Members@odata.count": 1,
"Members": [
{
"SATA Storage Controller": {
"Id": "0",
"FirmwareVersion": null,
"Location": {
"PartLocation": {
"ServiceLabel": "System Board"
}
},
"Manufacturer": "",
"Model": "Embedded SATA Controller #1",
"Name": "SATA Storage Controller",
"PartNumber": "",
"SerialNumber": "",
"SupportedDeviceProtocols": [
"SATA"
]
}
}
]
},
"Drives@odata.count": 8,
"Drives": [
{
"Id": "0",
"Name": "3.84TB 16G NVMe SSD",
"PhysicalLocation": {
"PartLocation": {
"ServiceLabel": "Slot=22:Port=2:Box=1:Bay=1",
"LocationType": "Bay",
"LocationOrdinalValue": 1
}
},
"BlockSizeBytes": 512,
"CapableSpeedGbs": 16.0,
"CapacityBytes": 3840755982336,
"EncryptionAbility": "None",
"FailurePredicted": false,
"Identifiers": [
{
"DurableName": "FA:CC:B9:35:00:2E:E4:AC",
"DurableNameFormat": "EUI"
}
],
"MediaType": "SSD",
"Model": "VO003840KXPTP",
"Multipath": false,
"NegotiatedSpeedGbs": 16.0,
"Operations": [],
"PredictedMediaLifeLeftPercent": 100.0,
"Protocol": "NVMe",
"Revision": "HPK0",
"SerialNumber": "",
"StatusIndicator": "OK",
"@Redfish.WriteableProperties": [
"LocationIndicatorActive"
],
"HotspareType": "None",
"LocationIndicatorActive": false,
"WriteCacheEnabled": false
},
{
"Id": "1",
"Name": "3.84TB 16G NVMe SSD",
"PhysicalLocation": {
"PartLocation": {
"ServiceLabel": "Slot=22:Port=2:Box=1:Bay=4",
"LocationType": "Bay",
"LocationOrdinalValue": 4
}
},
"BlockSizeBytes": 512,
"CapableSpeedGbs": 16.0,
"CapacityBytes": 3840755982336,
"EncryptionAbility": "None",
"FailurePredicted": false,
"Identifiers": [
{
"DurableName": "88:4F:87:35:00:2E:E4:AC",
"DurableNameFormat": "EUI"
}
],
"MediaType": "SSD",
"Model": "VO003840KXPTP",
"Multipath": false,
"NegotiatedSpeedGbs": 16.0,
"Operations": [],
"PredictedMediaLifeLeftPercent": 100.0,
"Protocol": "NVMe",
"Revision": "HPK0",
"SerialNumber": "",
"StatusIndicator": "OK",
"@Redfish.WriteableProperties": [
"LocationIndicatorActive"
],
"HotspareType": "None",
"LocationIndicatorActive": false,
"WriteCacheEnabled": false
},
{
"Id": "2",
"Name": "3.84TB 16G NVMe SSD",
"PhysicalLocation": {
"PartLocation": {
"ServiceLabel": "Slot=22:Port=2:Box=1:Bay=2",
"LocationType": "Bay",
"LocationOrdinalValue": 2
}
},
"BlockSizeBytes": 512,
"CapableSpeedGbs": 16.0,
"CapacityBytes": 3840755982336,
"EncryptionAbility": "None",
"FailurePredicted": false,
"Identifiers": [
{
"DurableName": "FB:CC:B9:35:00:2E:E4:AC",
"DurableNameFormat": "EUI"
}
],
"MediaType": "SSD",
"Model": "VO003840KXPTP",
"Multipath": false,
"NegotiatedSpeedGbs": 16.0,
"Operations": [],
"PredictedMediaLifeLeftPercent": 100.0,
"Protocol": "NVMe",
"Revision": "HPK0",
"SerialNumber": "",
"StatusIndicator": "OK",
"@Redfish.WriteableProperties": [
"LocationIndicatorActive"
],
"HotspareType": "None",
"LocationIndicatorActive": false,
"WriteCacheEnabled": false
},
{
"Id": "3",
"Name": "3.84TB 16G NVMe SSD",
"PhysicalLocation": {
"PartLocation": {
"ServiceLabel": "Slot=22:Port=2:Box=1:Bay=3",
"LocationType": "Bay",
"LocationOrdinalValue": 3
}
},
"BlockSizeBytes": 512,
"CapableSpeedGbs": 16.0,
"CapacityBytes": 3840755982336,
"EncryptionAbility": "None",
"FailurePredicted": false,
"Identifiers": [
{
"DurableName": "F7:CC:B9:35:00:2E:E4:AC",
"DurableNameFormat": "EUI"
}
],
"MediaType": "SSD",
"Model": "VO003840KXPTP",
"Multipath": false,
"NegotiatedSpeedGbs": 16.0,
"Operations": [],
"PredictedMediaLifeLeftPercent": 100.0,
"Protocol": "NVMe",
"Revision": "HPK0",
"SerialNumber": "",
"StatusIndicator": "OK",
"@Redfish.WriteableProperties": [
"LocationIndicatorActive"
],
"HotspareType": "None",
"LocationIndicatorActive": false,
"WriteCacheEnabled": false
},
{
"Id": "64517",
"Name": "Empty Bay",
"PhysicalLocation": {
"PartLocation": {
"ServiceLabel": "Slot=22:Port=2:Box=1:Bay=5",
"LocationType": "Bay",
"LocationOrdinalValue": 5
}
}
},
{
"Id": "64518",
"Name": "Empty Bay",
"PhysicalLocation": {
"PartLocation": {
"ServiceLabel": "Slot=22:Port=2:Box=1:Bay=6",
"LocationType": "Bay",
"LocationOrdinalValue": 6
}
}
},
{
"Id": "64519",
"Name": "Empty Bay",
"PhysicalLocation": {
"PartLocation": {
"ServiceLabel": "Slot=22:Port=2:Box=1:Bay=7",
"LocationType": "Bay",
"LocationOrdinalValue": 7
}
}
},
{
"Id": "64520",
"Name": "Empty Bay",
"PhysicalLocation": {
"PartLocation": {
"ServiceLabel": "Slot=22:Port=2:Box=1:Bay=8",
"LocationType": "Bay",
"LocationOrdinalValue": 8
}
}
}
],
"Volumes": {
"@Redfish.CollectionCapabilities": {
"MaxMembers": 240,
"Capabilities": [
{
"CapabilitiesObject": {},
"UseCase": "VolumeCreation"
}
]
},
"Name": "MR Volume Collection",
"Members@odata.count": 1,
"Members": [
{
"VD_1 ": {
"@Redfish.WriteableProperties": [
"DisplayName"
],
"Id": "1",
"Name": "VD_1 ",
"BlockSizeBytes": 512,
"CapacityBytes": 480036519936,
"DisplayName": "VD_1 ",
"DisplayName@Redfish.AllowablePattern": "^.{1,15}$",
"Encrypted": false,
"Identifiers": [
{
"DurableNameFormat": "EUI",
"DurableName": "00:50:43:8d:d4:a0:00:01"
}
],
"InitializeMethod": "Background",
"IsBootCapable": true,
"IOPerfModeEnabled": false,
"LogicalUnitNumber": 1,
"OptimumIOSizeBytes": 131072,
"RAIDType": "RAID1",
"ReadCachePolicy": "Off",
"StripSizeBytes": 131072,
"VolumeUsage": "Data",
"WriteCachePolicy": "Off",
"Operations": []
},
"DSTORE": {
"Id": "239",
"Name": "DSTORE",
"MediaSpanCount": 2,
"OptimumIOSizeBytes": 65536,
"StripSizeBytes": 65536,
"ReadCachePolicy@Redfish.AllowableValues": [
"Off",
"ReadAhead"
],
"ReadCachePolicy": "Off",
"WriteCachePolicy@Redfish.AllowableValues": [
"WriteThrough"
],
"WriteCachePolicy": "WriteThrough",
"DisplayName@Redfish.AllowablePattern": "^.{0,15}$",
"BlockSizeBytes": 512,
"CapacityBytes": 7680408158208,
"DisplayName": "DSTORE",
"Encrypted": false,
"EncryptionTypes": [],
"Identifiers": [
{
"DurableName": "600062B215740F802E6D758E0074A2DA",
"DurableNameFormat": "NAA"
}
],
"IOPerfModeEnabled": true,
"LogicalUnitNumber": 0,
"Operations": [],
"RAIDType": "RAID10",
"VolumeUsage": "Data",
"@Redfish.WriteableProperties": [
"DisplayName",
"ReadCachePolicy",
"WriteCachePolicy"
]
}
}
]
}
},
"DE041000": {
"Id": "DE041000",
"Name": "HPE NS204i-u Gen11 Boot Controller",
"AutoVolumeCreate": "RAID1",
"Drives@odata.count": 2,
"Drives": [
{
"@Redfish.WriteableProperties": [
"LocationIndicatorActive",
"StatusIndicator"
],
"Id": "1",
"Name": "480GB 16G NVMe SSD",
"BlockSizeBytes": 512,
"CapableSpeedGbs": 16.0,
"CapacityBytes": 480103981056,
"DriveFormFactor": "M2_2280",
"EncryptionAbility": "None",
"EncryptionStatus": "Unencrypted",
"FailurePredicted": false,
"HotspareType": "None",
"Identifiers": [
{
"DurableNameFormat": "EUI",
"DurableName": "e4:eb:c5:c7:c2:54:65:08"
}
],
"LocationIndicatorActive": false,
"MediaType": "SSD",
"Model": "VR000480KXLXF",
"Multipath": false,
"NegotiatedSpeedGbs": 16.0,
"PhysicalLocation": {
"PartLocation": {
"LocationOrdinalValue": 1,
"LocationType": "Bay",
"ServiceLabel": "Slot=7:Bay=1"
}
},
"PredictedMediaLifeLeftPercent": 100.0,
"Protocol": "NVMe",
"Revision": "HPK2",
"SerialNumber": "",
"SlotCapableProtocols": [
"NVMe"
],
"StatusIndicator@Redfish.AllowableValues": [
"OK",
"Fail"
],
"StatusIndicator": "OK",
"WriteCacheEnabled": false,
"Operations": []
},
{
"@Redfish.WriteableProperties": [
"LocationIndicatorActive",
"StatusIndicator"
],
"Id": "2",
"Name": "480GB 16G NVMe SSD",
"BlockSizeBytes": 512,
"CapableSpeedGbs": 16.0,
"CapacityBytes": 480103981056,
"DriveFormFactor": "M2_2280",
"EncryptionAbility": "None",
"EncryptionStatus": "Unencrypted",
"FailurePredicted": false,
"HotspareType": "None",
"Identifiers": [
{
"DurableNameFormat": "EUI",
"DurableName": "33:7e:1d:fa:c2:54:65:08"
}
],
"LocationIndicatorActive": false,
"MediaType": "SSD",
"Model": "VR000480KXLXF",
"Multipath": false,
"NegotiatedSpeedGbs": 16.0,
"PhysicalLocation": {
"PartLocation": {
"LocationOrdinalValue": 2,
"LocationType": "Bay",
"ServiceLabel": "Slot=7:Bay=2"
}
},
"PredictedMediaLifeLeftPercent": 100.0,
"Protocol": "NVMe",
"Revision": "HPK2",
"SerialNumber": "",
"SlotCapableProtocols": [
"NVMe"
],
"StatusIndicator@Redfish.AllowableValues": [
"OK",
"Fail"
],
"StatusIndicator": "OK",
"WriteCacheEnabled": false,
"Operations": []
}
],
"Volumes": {
"Name": "NS Volume Collection",
"Members@odata.count": 1,
"Members": [
{
"VD_1 ": {
"@Redfish.WriteableProperties": [
"DisplayName"
],
"Id": "1",
"Name": "VD_1 ",
"BlockSizeBytes": 512,
"CapacityBytes": 480036519936,
"DisplayName": "VD_1 ",
"DisplayName@Redfish.AllowablePattern": "^.{1,15}$",
"Encrypted": false,
"Identifiers": [
{
"DurableNameFormat": "EUI",
"DurableName": "00:50:43:8d:d4:a0:00:01"
}
],
"InitializeMethod": "Background",
"IsBootCapable": true,
"IOPerfModeEnabled": false,
"LogicalUnitNumber": 1,
"OptimumIOSizeBytes": 131072,
"RAIDType": "RAID1",
"ReadCachePolicy": "Off",
"StripSizeBytes": 131072,
"VolumeUsage": "Data",
"WriteCachePolicy": "Off",
"Operations": []
},
"DSTORE": {
"Id": "239",
"Name": "DSTORE",
"MediaSpanCount": 2,
"OptimumIOSizeBytes": 65536,
"StripSizeBytes": 65536,
"ReadCachePolicy@Redfish.AllowableValues": [
"Off",
"ReadAhead"
],
"ReadCachePolicy": "Off",
"WriteCachePolicy@Redfish.AllowableValues": [
"WriteThrough"
],
"WriteCachePolicy": "WriteThrough",
"DisplayName@Redfish.AllowablePattern": "^.{0,15}$",
"BlockSizeBytes": 512,
"CapacityBytes": 7680408158208,
"DisplayName": "DSTORE",
"Encrypted": false,
"EncryptionTypes": [],
"Identifiers": [
{
"DurableName": "600062B215740F802E6D758E0074A2DA",
"DurableNameFormat": "NAA"
}
],
"IOPerfModeEnabled": true,
"LogicalUnitNumber": 0,
"Operations": [],
"RAIDType": "RAID10",
"VolumeUsage": "Data",
"@Redfish.WriteableProperties": [
"DisplayName",
"ReadCachePolicy",
"WriteCachePolicy"
]
}
}
]
},
"Controllers": {
"Name": "Storage Controller Collection",
"Members@odata.count": 1,
"Members": [
{
"SATA Storage Controller": {
"Id": "0",
"FirmwareVersion": null,
"Location": {
"PartLocation": {
"ServiceLabel": "System Board"
}
},
"Manufacturer": "",
"Model": "Embedded SATA Controller #1",
"Name": "SATA Storage Controller",
"PartNumber": "",
"SerialNumber": "",
"SupportedDeviceProtocols": [
"SATA"
]
}
}
]
}
}
}

SydUmar_1
HPE Pro

Re: HPE Redfish and MR controllers.

Hello @Martie_19 ,
Request you to log a HPE support ticket with the support team for assistance regarding this issue. This may require a virtual remote session from the support team. 



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo