The problem is caused by an incorrect for loop termination condition when looking for custom fields
in the chassis info area. The function failing is init_inventory_area() in plugins/ipmi/ipmi_inventory_event.c.
The if statement for loop termination should be a != test instead of an == test. The exact same for loop
logic exists for the board info area and the product info area in init_inventory_area routine and the if statements
for these two cases correctly use ==.
A delay at startup will occur If the chassis info area does not contain any custom fields.
When there are no custom fields in the chassis info area, the loop runs through
32 bits of iterating at which point the loop variable "i" becomes negative and the loop terminates. This causes
the first request for inventory information to take many minutes to complete.
Attached is a patch to 2.14.0 to fix this.
Bryan Sutula
OpenIPMI plugin
3.2.0
Public
|
Date: 2012-06-29 11:15:11 PDT Fixed in 2.14.x with checkin revision 7476 |
|
Date: 2012-06-29 10:31:47 PDT Mohan, feel free if you wish. To do Jim any good, will you also plan to |
|
Date: 2012-06-29 10:04:15 PDT Looks like this plug-in is already deprecated. If this bug is found in |
|
Date: 2012-06-26 10:06:48 PDT This is fixed in trunk revision 7474. Because 2.14 is so old, it doesn't |
|
Date: 2012-06-26 09:28:29 PDT Patch looks good. ipmi_fru_get_chassis_info_custom_len() returns ENOSYS |
| Filename | Description | Download |
|---|---|---|
| 0001-Fix-Long-Delay-Getting-Initial-Inventory-Info-from-o.patch | patch to 2.14.0 | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| artifact_group_id | 3.1.x | 2012-07-12 22:14:32 PDT | avpak |
| status_id | Open | 2012-06-26 10:06:48 PDT | sutula |
| resolution_id | None | 2012-06-26 10:06:48 PDT | sutula |
| artifact_group_id | 2.14.0 | 2012-06-26 10:06:48 PDT | sutula |
| allow_comments | 1 | 2012-06-26 10:06:48 PDT | sutula |
| close_date | - | 2012-06-26 10:06:48 PDT | sutula |
| assigned_to | nobody | 2012-06-26 10:06:48 PDT | sutula |
| File Added | 447113: 0001-Fix-Long-Delay-Getting-Initial-Inventory-Info-from-o.patch | 2012-06-26 07:50:34 PDT | jmankovich |