inspection failed with error sushy.exceptions.MissingAttributeError

Bug #2055542 reported by frankming
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sushy
New
Undecided
Unassigned

Bug Description

On Hikvision DS-VMC22R-C baremetal node, redfish inspection failed with errors below:

```shell
2024-03-01 16:27:46.608 1 INFO ironic.conductor.task_manager [None req-c0977a66-ec8a-456d-abd0-61605f85bed1 92a922400f9e4914b02248b24c48590c fdab61d9ab2544858aff7dcba0a46bbe - - default default] Node abaeb815-0857-4b55-a4a2-1d901bfb268e moved to provision state "inspecting" from state "manageable"; target provision state is "manageable"
2024-03-01 16:27:47.743 1 WARNING ironic.drivers.modules.redfish.inspect [None req-c0977a66-ec8a-456d-abd0-61605f85bed1 92a922400f9e4914b02248b24c48590c fdab61d9ab2544858aff7dcba0a46bbe - - default default] Could not provide a valid storage size configured for node abaeb815-0857-4b55-a4a2-1d901bfb268e. Assuming this is a disk-less node
2024-03-01 16:27:48.496 1 ERROR ironic.conductor.task_manager [None req-c0977a66-ec8a-456d-abd0-61605f85bed1 92a922400f9e4914b02248b24c48590c fdab61d9ab2544858aff7dcba0a46bbe - - default default] Node abaeb815-0857-4b55-a4a2-1d901bfb268e moved to provision state "inspect failed" from state "inspecting"; target provision state is "manageable": sushy.exceptions.MissingAttributeError: The attribute Id is missing from the resource /redfish/v1/Systems/1/EthernetInterfaces/1
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager [None req-c0977a66-ec8a-456d-abd0-61605f85bed1 92a922400f9e4914b02248b24c48590c fdab61d9ab2544858aff7dcba0a46bbe - - default default] Failed to inspect node abaeb815-0857-4b55-a4a2-1d901bfb268e: Unexpected exception of type MissingAttributeError: The attribute Id is missing from the resource /redfish/v1/Systems/1/EthernetInterfaces/1: sushy.exceptions.MissingAttributeError: The attribute Id is missing from the resource /redfish/v1/Systems/1/EthernetInterfaces/1
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager Traceback (most recent call last):
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/resources/base.py", line 94, in _load
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager item = self._get_item(body, name)
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/resources/base.py", line 68, in _get_item
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager return dct[key_or_callable]
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager KeyError: 'Id'
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager During handling of the above exception, another exception occurred:
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager Traceback (most recent call last):
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/ironic/conductor/manager.py", line 4327, in _do_inspect_hardware
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager new_state = task.driver.inspect.inspect_hardware(task)
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/ironic/drivers/modules/redfish/inspect.py", line 224, in inspect_hardware
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager system.ethernet_interfaces.summary):
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/utils.py", line 233, in func_wrapper
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager cache_attr_val = res_accessor_method(res_selfie)
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/resources/system/ethernet_interface.py", line 71, in summary
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager for eth in self.get_members():
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/utils.py", line 233, in func_wrapper
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager cache_attr_val = res_accessor_method(res_selfie)
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/resources/base.py", line 843, in get_members
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager return [self.get_member(id_) for id_ in self.members_identities]
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/resources/base.py", line 843, in <listcomp>
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager return [self.get_member(id_) for id_ in self.members_identities]
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/resources/base.py", line 832, in get_member
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager return self._resource_type(
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/resources/base.py", line 553, in __init__
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager self.refresh(json_doc=json_doc)
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/resources/base.py", line 693, in refresh
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager attributes = self._parse_attributes(self._json)
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/resources/base.py", line 633, in _parse_attributes
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager setattr(self, attr, field._load(json_doc, self))
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager File "/usr/local/lib/python3.9/site-packages/sushy/resources/base.py", line 101, in _load
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager raise exceptions.MissingAttributeError(
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager sushy.exceptions.MissingAttributeError: The attribute Id is missing from the resource /redfish/v1/Systems/1/EthernetInterfaces/1
2024-03-01 16:27:48.498 1 ERROR ironic.conductor.manager
```

Sushy version is 4.8.0. Is it necessary for BMC server to have 'Id' attribute at interface /redfish/v1/Systems/1/EthernetInterfaces/1 ? Is it bug of the BMC server or sushy?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.