openhpi2 / Open-HPI

Open HPI is an open source implementation of the SA Forum's Hardware Platform Interface (HPI). HPI provides an abstracted interface to managing computer hardware, typically for chassis and rack based servers
Other
3 stars 1 forks source link

sometimes, RPT could be NULL for OA #2526

Closed openhpi2 closed 8 years ago

openhpi2 commented 10 years ago

After several manual operations (OA switch over, reset, pulling out active oa, standby oa and both) it is possible to see a state where the OA is not present in the RPT table. This condition persists as all events are ignored even after 8 minutes.

The following is the part of the message.

Jan 31 12:41:40 dl380g8 openhpid: oa_soap: oa_soap_sensor.c:2017: resource RPT is NULL Jan 31 12:41:40 dl380g8 openhpid: oa_soap: oa_soap_oa_event.c:500: processing the sensor event for sensor 0 has failed Jan 31 12:41:43 dl380g8 openhpid: oa_soap: oa_soap_sensor.c:2017: resource RPT is NULL Jan 31 12:41:43 dl380g8 openhpid: oa_soap: oa_soap_oa_event.c:500: processing the sensor event for sensor 0 has failed ... ... ... Jan 31 12:49:01 dl380g8 openhpid: oa_soap: oa_soap_callsupport.c:983: OA SOAP error 201: Could not open event pipe for reading. Jan 31 12:49:02 dl380g8 openhpid: oa_soap: oa_soap_sensor.c:2017: resource RPT is NULL Jan 31 12:49:02 dl380g8 openhpid: oa_soap: oa_soap_oa_event.c:500: processing the sensor event for sensor 0 has failed Jan 31 12:49:02 dl380g8 openhpid: oa_soap: oa_soap_sensor.c:2017: resource RPT is NULL Jan 31 12:49:02 dl380g8 openhpid: oa_soap: oa_soap_oa_event.c:500: processing the sensor event for sensor 0 has failed Jan 31 12:49:02 dl380g8 openhpid: oa_soap: oa_soap_sensor.c:2017: resource RPT is NULL Jan 31 12:49:02 dl380g8 openhpid: oa_soap: oa_soap_oa_event.c:601: processing the sensor event for sensor 19 has failed Jan 31 12:49:02 dl380g8 openhpid: oa_soap: oa_soap_callsupport.c:983: OA SOAP error 201: Could not open event pipe for reading.

The could not open event pipe for reading may be coming from some other thread. But that is also repeating every second. That could be related to the same issue or a different issue.

Looks like the status event needs to check for the RPT and add it if it is not there. Only info event adds the rpt now. This RPT corresponds to the Active OA as Standby OA is present in the hpitree output.

Reported by: dr_mohan

openhpi2 commented 10 years ago

*_ATTENTION_** This account is disabled and is no longer accessed by the recipient. Please remove it from your address book.

Thanks

Original comment by: tariqx

openhpi2 commented 10 years ago

Original comment by: dr_mohan

openhpi2 commented 9 years ago

Original comment by: dr_mohan

openhpi2 commented 9 years ago

Fix for #1856 is expected to fix this bug also. We will keep a close eye on this if there is any other reason for this bug.

Original comment by: dr_mohan