Bug 1290985
| Summary: | ipmitool sel list last X fails in cases involving id wrap | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Martin Poole <mpoole> |
| Component: | ipmitool | Assignee: | Josef Ridky <jridky> |
| Status: | CLOSED ERRATA | QA Contact: | Rachel Sibley <rasibley> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | hmatsumo, jridky, myamazak, rasibley |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipmitool-1.8.15-7.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-03 23:30:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Martin Poole
2015-12-12 12:32:07 UTC
OK, to sum it up a bit. I've encountered several issues in code, here: 1) the way we compute delta for a negative count (last X), we get the ID of the first entry, the id of the next entry and we simply divide it, this breaks if we e.g. remove the second entry from the sel log as it will always request ~double the entries 2) the way we compute first next_id for a negative count a) if your last entry id is X and you request X+1 entries (assuming delta is 1), nothing gets printed out because we get next_id 0xffff and we won't even enter the while loop b) if the highest entry the sel log achieved is << 0xfffe and we request more entries than is the ID of the latest one, we try to access events with IDs like 0xffXY which obviously do not exist I've created an upstream bug report with two possible patches (one just lowers the impact of log rotation here and does not fix all the cases, it is more of a best effort solution, the other should provide a proper fix): https://sourceforge.net/p/ipmitool/bugs/408/ We'll see what upstream has to say about that. The patch was accepted upstream, we can probably still make it into the 7.3 time-frame. @Rachel: Are you ok with getting this into 7.3? Could you please qa_ack this if you are? Hi Boris, yes I have provided qa_ack+ ALL TESTS PASSED Before: ================================= ~]# rpm -q ipmitool ipmitool-1.8.13-8.el7_1.x86_64 ~]# ipmitool sel list last 5 1f7 | 06/08/2016 | 16:22:11 | Temperature #0x30 | Upper Critical going high | Asserted 1f8 | 06/08/2016 | 16:22:16 | Power Unit #0x01 | Power off/down | Asserted 1f9 | 06/08/2016 | 16:28:02 | Power Unit #0x01 | Power off/down | Deasserted 1fa | 06/08/2016 | 16:28:12 | System Firmware Progress #0xf5 | Unspecified | Asserted 1fb | 06/08/2016 | 16:32:26 | System Firmware Progress #0xf5 | System boot initiated | Asserted - Deleted 3rd before last: ~]# ipmitool sel delete 505 Deleted entry 505 ~]# ipmitool sel list last 5 1f7 | 06/08/2016 | 16:22:11 | Temperature #0x30 | Upper Critical going high | Asserted 1f8 | 06/08/2016 | 16:22:16 | Power Unit #0x01 | Power off/down | Asserted 1fa | 06/08/2016 | 16:28:12 | System Firmware Progress #0xf5 | Unspecified | Asserted 1fb | 06/08/2016 | 16:32:26 | System Firmware Progress #0xf5 | System boot initiated | Asserted ~]# ipmitool sel list | tail -n 5 1f6 | 06/06/2016 | 15:21:11 | Entity Presence #0x8b | Absent | Deasserted 1f7 | 06/08/2016 | 16:22:11 | Temperature #0x30 | Upper Critical going high | Asserted 1f8 | 06/08/2016 | 16:22:16 | Power Unit #0x01 | Power off/down | Asserted 1fa | 06/08/2016 | 16:28:12 | System Firmware Progress #0xf5 | Unspecified | Asserted 1fb | 06/08/2016 | 16:32:26 | System Firmware Progress #0xf5 | System boot initiated | Asserted - Delete next to last: ~]# ipmitool sel delete 506 Deleted entry 505 ~]# ipmitool sel list last 15 1df | 05/24/2016 | 19:25:14 | System Firmware Progress #0xf5 | System boot initiated | Asserted 1e0 | 05/24/2016 | 19:25:57 | OS Boot | | Asserted 1e1 | 05/24/2016 | 19:36:04 | OS Boot | | Asserted 1e2 | 05/24/2016 | 19:36:14 | System Firmware Progress #0xf5 | Unspecified | Asserted 1e3 | 05/24/2016 | 19:40:09 | System Firmware Progress #0xf5 | System boot initiated | Asserted 1e4 | 05/26/2016 | 13:17:33 | Power Unit #0x01 | Power off/down | Asserted 1e5 | 05/26/2016 | 13:17:49 | Power Unit #0x01 | Power off/down | Deasserted 1e6 | 05/26/2016 | 13:17:59 | System Firmware Progress #0xf5 | Unspecified | Asserted 1e7 | 05/26/2016 | 13:22:04 | System Firmware Progress #0xf5 | System boot initiated | Asserted 1e8 | 05/26/2016 | 13:31:44 | System Firmware Progress #0xf5 | Unspecified | Asserted 1e9 | 05/26/2016 | 13:35:49 | System Firmware Progress #0xf5 | System boot initiated | Asserted 1ea | 06/06/2016 | 14:59:31 | Power Unit #0x01 | Power off/down | Asserted 1eb | 06/06/2016 | 14:59:42 | Power Unit #0x01 | Power off/down | Deasserted 1ec | 06/06/2016 | 14:59:53 | System Firmware Progress #0xf5 | Unspecified | Asserted 1ed | 06/06/2016 | 15:04:13 | System Firmware Progress #0xf5 | System boot initiated | Asserted 1ee | 06/06/2016 | 15:04:57 | OS Boot | | Asserted 1ef | 06/06/2016 | 15:15:24 | OS Boot | | Asserted 1f0 | 06/06/2016 | 15:15:38 | System Firmware Progress #0xf5 | Unspecified | Asserted 1f1 | 06/06/2016 | 15:21:02 | System Firmware Progress #0xf5 | System boot initiated | Asserted 1f2 | 06/06/2016 | 15:21:02 | Event Logging Disabled #0xf6 | Log almost full | Asserted 1f3 | 06/06/2016 | 15:21:04 | Power Supply #0x7f | Redundancy Lost | Asserted 1f5 | 06/06/2016 | 15:21:10 | Entity Presence #0x89 | Absent | Deasserted 1f6 | 06/06/2016 | 15:21:11 | Entity Presence #0x8b | Absent | Deasserted 1f7 | 06/08/2016 | 16:22:11 | Temperature #0x30 | Upper Critical going high | Asserted 1f8 | 06/08/2016 | 16:22:16 | Power Unit #0x01 | Power off/down | Asserted 1fb | 06/08/2016 | 16:32:26 | System Firmware Progress #0xf5 | System boot initiated | Asserted ~]# ipmitool sel list | tail -n 15 1ea | 06/06/2016 | 14:59:31 | Power Unit #0x01 | Power off/down | Asserted 1eb | 06/06/2016 | 14:59:42 | Power Unit #0x01 | Power off/down | Deasserted 1ec | 06/06/2016 | 14:59:53 | System Firmware Progress #0xf5 | Unspecified | Asserted 1ed | 06/06/2016 | 15:04:13 | System Firmware Progress #0xf5 | System boot initiated | Asserted 1ee | 06/06/2016 | 15:04:57 | OS Boot | | Asserted 1ef | 06/06/2016 | 15:15:24 | OS Boot | | Asserted 1f0 | 06/06/2016 | 15:15:38 | System Firmware Progress #0xf5 | Unspecified | Asserted 1f1 | 06/06/2016 | 15:21:02 | System Firmware Progress #0xf5 | System boot initiated | Asserted 1f2 | 06/06/2016 | 15:21:02 | Event Logging Disabled #0xf6 | Log almost full | Asserted 1f3 | 06/06/2016 | 15:21:04 | Power Supply #0x7f | Redundancy Lost | Asserted 1f5 | 06/06/2016 | 15:21:10 | Entity Presence #0x89 | Absent | Deasserted 1f6 | 06/06/2016 | 15:21:11 | Entity Presence #0x8b | Absent | Deasserted 1f7 | 06/08/2016 | 16:22:11 | Temperature #0x30 | Upper Critical going high | Asserted 1f8 | 06/08/2016 | 16:22:16 | Power Unit #0x01 | Power off/down | Asserted 1fb | 06/08/2016 | 16:32:26 | System Firmware Progress #0xf5 | System boot initiated | Asserted ~]# ipmitool sel list last 3 Get SEL Entry 1f9 command failed: Requested sensor, data, or record not found Get SEL Entry 1f9 command failed: Requested sensor, data, or record not found ~]# ipmitool sel list | tail -n 3 1f8 | 06/08/2016 | 16:22:16 | Power Unit #0x01 | Power off/down | Asserted 1fa | 06/08/2016 | 16:28:12 | System Firmware Progress #0xf5 | Unspecified | Asserted 1fb | 06/08/2016 | 16:32:26 | System Firmware Progress #0xf5 | System boot initiated | Asserted After: ================================= ~]# yum update ipmitool-1.8.15-7.el7.x86_64.rpm ... ~]# rpm -q ipmitool ipmitool-1.8.15-7.el7.x86_64 ~]# ipmitool sel list last 5 1f6 | 06/06/2016 | 15:21:11 | Entity Presence #0x8b | Absent | Deasserted 1f7 | 06/08/2016 | 16:22:11 | Temperature #0x30 | Upper Critical going high | Asserted 1f8 | 06/08/2016 | 16:22:16 | Power Unit #0x01 | Power off/down | Asserted 1fa | 06/08/2016 | 16:28:12 | System Firmware Progress #0xf5 | Unspecified | Asserted 1fb | 06/08/2016 | 16:32:26 | System Firmware Progress #0xf5 | System boot initiated | Asserted ~]# ipmitool sel list last 15 1ea | 06/06/2016 | 14:59:31 | Power Unit #0x01 | Power off/down | Asserted 1eb | 06/06/2016 | 14:59:42 | Power Unit #0x01 | Power off/down | Deasserted 1ec | 06/06/2016 | 14:59:53 | System Firmware Progress #0xf5 | Unspecified | Asserted 1ed | 06/06/2016 | 15:04:13 | System Firmware Progress #0xf5 | System boot initiated | Asserted 1ee | 06/06/2016 | 15:04:57 | OS Boot | Installation started | Asserted 1ef | 06/06/2016 | 15:15:24 | OS Boot | Installation completed | Asserted 1f0 | 06/06/2016 | 15:15:38 | System Firmware Progress #0xf5 | Unspecified | Asserted 1f1 | 06/06/2016 | 15:21:02 | System Firmware Progress #0xf5 | System boot initiated | Asserted 1f2 | 06/06/2016 | 15:21:02 | Event Logging Disabled #0xf6 | Log almost full | Asserted 1f3 | 06/06/2016 | 15:21:04 | Power Supply #0x7f | Redundancy Lost | Asserted 1f5 | 06/06/2016 | 15:21:10 | Entity Presence #0x89 | Absent | Deasserted 1f6 | 06/06/2016 | 15:21:11 | Entity Presence #0x8b | Absent | Deasserted 1f7 | 06/08/2016 | 16:22:11 | Temperature #0x30 | Upper Critical going high | Asserted 1f8 | 06/08/2016 | 16:22:16 | Power Unit #0x01 | Power off/down | Asserted 1fb | 06/08/2016 | 16:32:26 | System Firmware Progress #0xf5 | System boot initiated | Asserted ~]# ipmitool sel list last 3 1f7 | 06/08/2016 | 16:22:11 | Temperature #0x30 | Upper Critical going high | Asserted 1f8 | 06/08/2016 | 16:22:16 | Power Unit #0x01 | Power off/down | Asserted 1fb | 06/08/2016 | 16:32:26 | System Firmware Progress #0xf5 | System boot initiated | Asserted Return back to ON_QA Moving back to Verified State as it was incorrectly moved back to Assigned when switching the package owner. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-2159.html |