You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing intermittent stack traces when reading sensor values:
File "//test.py", line 21, in <module>
for sensor in iter_func():
File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pyipmi/sensor.py", line 149, in device_sdr_entries
record = self.get_device_sdr(record_id, reservation_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pyipmi/sensor.py", line 133, in get_device_sdr
get_sdr_data_helper(self.reserve_device_sdr_repository,
File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pyipmi/helper.py", line 85, in get_sdr_data_helper
(next_id, data) = get_fn(reservation_id, record_id, offset, length)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pyipmi/sensor.py", line 120, in _get_device_sdr_chunk
rsp = get_sdr_chunk_helper(self.send_message, req,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pyipmi/helper.py", line 30, in get_sdr_chunk_helper
rsp = send_fn(req)
^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pyipmi/__init__.py", line 196, in send_message
rsp = self.interface.send_and_receive(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pyipmi/interfaces/ipmitool.py", line 179, in send_and_receive
rsp_data = self.send_and_receive_raw(req.target, req.lun, req.netfn,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pyipmi/interfaces/ipmitool.py", line 154, in send_and_receive_raw
cc, rsp = self._parse_output(output)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pyipmi/interfaces/ipmitool.py", line 135, in _parse_output
rsp = array('B', [
^
File "/root/.pyenv/versions/3.11.8/lib/python3.11/site-packages/pyipmi/interfaces/ipmitool.py", line 136, in <listcomp>
int(value, 16) for value in hexstr.split(' ')
^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 16: 'Received'
I added a debug print near the failure:
if len(hexstr):
+ log().debug(f'{hexstr=}')
rsp = array('B', [
int(value, 16) for value in hexstr.split(' ')
])
I'm seeing intermittent stack traces when reading sensor values:
I added a debug print near the failure:
The output on failure:
Appears to be related to this issue: ipmitool/ipmitool#399
I think it would be sensible to match and handle this output equivalent to the 'failure' lines.
The text was updated successfully, but these errors were encountered: