osaf/libs/common/immsv/immpbe_dump.cc | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
when IMMND is down TRY_AGAIN is returned for classdescripton. with this error imm.db will be Renamed form imm.db to imm.db.failed_immdump. when the node reboots and comes up node will come up with default imm.xml instead of PBE. The solution is to exit immpbed when classdescripton returns TRY_AGAIN.Because, cl_node->isPbe is set only when implementer is set. Implementer is set only when verification of classes is success when the PBE is re-attached. diff --git a/osaf/libs/common/immsv/immpbe_dump.cc b/osaf/libs/common/immsv/immpbe_dump.cc --- a/osaf/libs/common/immsv/immpbe_dump.cc +++ b/osaf/libs/common/immsv/immpbe_dump.cc @@ -1192,8 +1192,10 @@ static ClassInfo* verifyClassPBE(std::st &attrDefinitions); if(errorCode != SA_AIS_OK) { - TRACE_4("Failed to get class description for class %s from imm", - classNameString.c_str()); + TRACE_4("Failed to get class description for class %s from imm with error=%d", + classNameString.c_str(), errorCode); + if(errorCode == SA_AIS_ERR_TRY_AGAIN) + exit(1); goto bailout; } ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel