Package: ipmiutil
Version: 3.1.8-4

Hi,

In some cases (Intel S2600STB boards), ipmiutil fails to install the first time:
Setting up ipmiutil (3.1.8-4) ...
SDR record 61 is malformed, length 12 is less than minimum 12
0061 GetSDR error -25, rlen = 10
dpkg: error processing package ipmiutil (--configure):
 installed ipmiutil package post-installation script subprocess returned error exit status 231
Processing triggers for man-db (2.11.2-2) ...
Errors were encountered while processing:
 ipmiutil
E: Sub-process /usr/bin/dpkg returned an error code (1)

The second time around, it works because /var/lib/ipmiutil/sensor_out.txt now exists.

The issue can be reproduced by removing /var/lib/ipmiutil/sensor_out.txt and running the postinst script again (with -x added here to highlight the problem):
# dpkg-reconfigure ipmiutil
+ sbindir=/usr/bin
+ vardir=/var/lib/ipmiutil
+ sensorout=/var/lib/ipmiutil/sensor_out.txt
+ mkdir -p /var/lib/ipmiutil
+ IPMIcmd=true
+ /usr/bin/ipmiutil sel -v
+ true
+ [ ! -f /var/lib/ipmiutil/sensor_out.txt ]
+ /usr/bin/ipmiutil sensor -q
SDR record 61 is malformed, length 12 is less than minimum 12
0061 GetSDR error -25, rlen = 10

The issue here is that "ipmiutil sel" works but "ipmi sensor" does not.
https://jff.email/cgit/ipmiutil.git/tree/debian/postinst?h=debian/3.1.9-1#n16
https://jff.email/cgit/ipmiutil.git/tree/debian/postinst?h=debian/3.1.9-1#n22

The fact that a failing "ipmiutil sensor" command prevents the installation is problematic. Would it please be possible to make this failure non-fatal?

https://bugs.launchpad.net/ubuntu/+source/ipmiutil/+bug/1786562 seems to be the same issue, it concerns the same error message with an Intel S2600STB.


PS: maybe there is also an upstream ipmiutil bug to report here? "length 12 is less than minimum 12" sounds like an off-by-one error.

Kind regards,

Louis

Reply via email to