check_redfish icon indicating copy to clipboard operation
check_redfish copied to clipboard

Failed BMC Check on DL360 Gen10

Open Rokuda64 opened this issue 1 year ago • 1 comments

Hello Ricardo,

I have a DL360 Gen10 with iLO firmware 3.04 Apr 17 2024 which is failing it's bmc check.

check_redfish on  next-release [$!?] via py3venv …
➜ ./check_redfish.py '--bmc' '--host' 'REDACTED' '--retries' '3' '--timeout' '13' -u REDACTED -p 'REDACTED'
Traceback (most recent call last):
  File "./check_redfish.py", line 172, in <module>
    if any(x in args.requested_query for x in ['bmc', 'all']):      get_bmc_info()
  File "/home/user/Documents/monitoring/check_redfish/cr_module/bmc.py", line 30, in get_bmc_info
    get_bmc_info_generic(manager)
  File "/home/user/Documents/monitoring/check_redfish/cr_module/bmc.py", line 62, in get_bmc_info_generic
    bmc_model = " ".join(bmc_fw_version.split(" ")[0:2])
AttributeError: 'NoneType' object has no attribute 'split'

I have inserted a print statement, to see what is going on but I'm not able to fix it myself :/

diff --git a/cr_module/bmc.py b/cr_module/bmc.py
index f1af3a6..8c492d3 100644
--- a/cr_module/bmc.py
+++ b/cr_module/bmc.py
@@ -53,7 +53,8 @@ def get_bmc_info_generic(redfish_url):
         manager_response = view_response.get("ILO")[0]
     else:
         manager_response = view_response
-
+    import pprint
+    pprint.pprint(manager_response)
     # get model
     bmc_model = manager_response.get("Model")
     bmc_fw_version = manager_response.get("FirmwareVersion")

With that I just got:

{'@Message.ExtendedInfo': [{'MessageId': 'Base.1.18.InternalError'}],
 '@odata.id': '/redfish/v1/Managers/1/',
 '@odata.type': '#Manager.v1_5_1.Manager'}
Traceback (most recent call last):
  File "./check_redfish.py", line 172, in <module>
    if any(x in args.requested_query for x in ['bmc', 'all']):      get_bmc_info()
  File "/home/user/Documents/monitoring/check_redfish/cr_module/bmc.py", line 30, in get_bmc_info
    get_bmc_info_generic(manager)
  File "/home/user/Documents/monitoring/check_redfish/cr_module/bmc.py", line 63, in get_bmc_info_generic
    bmc_model = " ".join(bmc_fw_version.split(" ")[0:2])
AttributeError: 'NoneType' object has no attribute 'split'

We have updated everything with the latest SPP and the error has not changed, so I assume it's not a problem of the system itself. There is also no error or warning visible on the iLO interface. If you need anything for further investigation, please let me know.

Thank your for your great support

Rokuda64 avatar Jun 28 '24 11:06 Rokuda64

Hi, this seems to be a bug in the iLO 3.04 firmware. It returns a Base.1.18.InternalError. Can you try if 3.05 works for you?

bb-Ricardo avatar Jul 04 '24 20:07 bb-Ricardo

Hello, it seems like the same problem persists with iLO Firmware Version 3.05 Jun 19 2024

Rokuda64 avatar Jul 15 '24 07:07 Rokuda64

Thank you for testing. Will add a mitigation but this will probably result in less output.

bb-Ricardo avatar Jul 15 '24 08:07 bb-Ricardo

Do you need any more information? Cause it's still set on "awaiting reply". Not sure what to do tbh

Rokuda64 avatar Aug 22 '24 07:08 Rokuda64

Hi,

soon I will be back and will have some time to take care of it.

bb-Ricardo avatar Aug 23 '24 07:08 bb-Ricardo

Hi,

I just pushed a "fix" to the next-release branch. Can you please test it and report back?

Thank you very much.

bb-Ricardo avatar Aug 28 '24 08:08 bb-Ricardo

fixed in version 1.8.0

bb-Ricardo avatar Sep 13 '24 20:09 bb-Ricardo