Hello,

On calling the saHpiResourceFailedRemove() SAF HPI API, it raises the HPI
hotswap removal event for failed FRU (as requested by user). This hotswap
event will remove the failed FRU's RPT entry and RDRs from the openhpi
framework rptcache.

But, the plugin which is responsible for that particular FRU is not aware
of the changes and the RPT entry and RDRs are not removed from the plugin
rptcache. This leads to discrepancy between plugin rptcache and
infrastructure rptcache.

To overcome this problem, the openhpi can define a 'resource_failed_remove'
ABI. Instead of openhpi infrastructure itself raising the hotswap event, it
can call the plugin (resource_failed_remove) ABI. The plugin ABI can remove
the entries from the plugin rptcache and it can raise the HPI hotswap
removal event. Then, it can take any other actions as appropriate (listed
below).

If the plugin has not implemented the resource_failed_remove ABI, then openhpi
infrastructure can proceed with the existing logic.

Below are the some of the actions that can be done by plugin
resource_failed_remove ABI
1. Plugin will remove the failed FRU's RPT entry and RDRs from the
rptcache.
2. If some of the sensors of the failed FRU's are asserted, then it can
raise the deassert sensor event before removing the entries.
3. If the failed FRU is a carrier for some of the resources (Eg: blade's
subcomponents memory, HD, etc are modeled in OpenHPI), then these
resources needs to be removed. The infrastructure is not tracks the
association/relation, while plugin knows the relation and take decision
accordingly.
4. Raise the HPI hotswap removal event.

Any suggestions/thoughts?

The patch is attached for the above problem.

Regards,
PG

NOTE: This is raised as bug #2220086 in openhpi tracker.

Attachment: resource_failed_remove_abi.patch
Description: resource_failed_remove_abi.patch

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel

Reply via email to