Closed kamils85 closed 1 year ago
Hi,
Which version of check_redfish are you using?
The latest I believe. Installed via git clone.
__version__ = "1.5.0"
__version_date__ = "2023-02-24"
Just published version 1.6.0, would you be able to test this one and see if this fixes your issue?
Hi @bb-Ricardo ,
Many thanks for looking at this issue. Unfortunately the same error appears using 1.6.0
./check_redfish.py -H 10.8.8.204 -f _test --inventory --all -v -d -t 60
(truncated...)
Body Response of /redfish/v1/Chassis/1/NetworkAdapters/1: b'{"@odata.type":"#NetworkAdapter.v1_3_0.NetworkAdapter","@odata.id":"/redfish/v1/Chassis/1/NetworkAdapters/1","Id":"1","Name":"Network Adapter View","Manufacturer":"Supermicro","Model":"","SerialNumber":"","PartNumber":"","NetworkPorts":{"@odata.id":"/redfish/v1/Chassis/1/NetworkAdapters/1/NetworkPorts"},"NetworkDeviceFunctions":{"@odata.id":"/redfish/v1/Chassis/1/NetworkAdapters/1/NetworkDeviceFunctions"},"Controllers":[{"Links":{"PCIeDevices":[{"@odata.id":"/redfish/v1/Chassis/1/PCIeDevices/NIC1"}]},"ControllerCapabilities":{"NetworkPortCount":913009764,"NetworkDeviceFunctionCount":-65429},"Location":{"PartLocation":{"ServiceLabel":"Slot 6","LocationType":"Slot","LocationOrdinalValue":6}},"PCIeInterface":{}}]}'
{'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/1',
'@odata.type': '#NetworkAdapter.v1_3_0.NetworkAdapter',
'Controllers': [{'ControllerCapabilities': {'NetworkDeviceFunctionCount': -65429,
'NetworkPortCount': 913009764},
'Links': {'PCIeDevices': [{'@odata.id': '/redfish/v1/Chassis/1/PCIeDevices/NIC1'}]},
'Location': {'PartLocation': {'LocationOrdinalValue': 6,
'LocationType': 'Slot',
'ServiceLabel': 'Slot 6'}},
'PCIeInterface': {}}],
'Id': '1',
'Manufacturer': 'Supermicro',
'Model': '',
'Name': 'Network Adapter View',
'NetworkDeviceFunctions': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/1/NetworkDeviceFunctions'},
'NetworkPorts': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/1/NetworkPorts'},
'PartNumber': '',
'SerialNumber': ''}
Traceback (most recent call last):
File "/opt/check_redfish/./check_redfish.py", line 170, in <module>
if any(x in args.requested_query for x in ['nic', 'all']): get_network_interfaces()
File "/opt/check_redfish/cr_module/nic.py", line 26, in get_network_interfaces
get_system_nics(system)
File "/opt/check_redfish/cr_module/nic.py", line 376, in get_system_nics
network_ports.extend(
TypeError: 'NoneType' object is not iterable
__version__ = "1.6.0"
__version_date__ = "2023-09-07"
__author__ = "Ricardo Bartels <ricardo.bartels@telekom.de>"
__description__ = "Check Redfish Plugin"
__license__ = "MIT"
Hi,
ok, I can see the issue here. Another interpretation of standards :(
Just pushed ne commit to 'next-release' branch. Would you be able to check it out and give it a go?
thank you
Yes sir, this seems to fix the issue.
great, thank you for testing
Fixed with latest version 1.6.1
Hello,
I am having an issue with one SuperMicro server running 1.8.0 redfish version. When I run the check_redfish script I get the following
All other SuperMicro servers running older version 1.0.1 seem to complete the data reading with no such error.