- If SC-2 start before SC-1 start in relaxed node promotion with
consensus unavailable, cluster will have no active node at all, both
SCs opensaf start fail timeout. Because SC-2 wait for seen SC-1 but
SC-2 is not candidate (not lowest id), it don't become Active.
At this time, clmna SC-1 also not start promotion since it seen SC-2.
- Allow node in state NotActive to be a candidate to promote active.
---
 src/rde/rded/role.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rde/rded/role.cc b/src/rde/rded/role.cc
index e68b66da7..ae588780f 100644
--- a/src/rde/rded/role.cc
+++ b/src/rde/rded/role.cc
@@ -262,8 +262,8 @@ bool Role::IsCandidate() {
   // if relaxed node promotion is enabled, allow this node to be promoted
   // active if it can see a peer SC and this node has the lowest node ID
   if (consensus_service.IsRelaxedNodePromotionEnabled() == true &&
-      cb->state == State::kNotActiveSeenPeer &&
-      IsLowestNodeid() == true) {
+      (cb->state == State::kNotActive ||
+       (cb->state == State::kNotActiveSeenPeer && IsLowestNodeid()))) {
     LOG_NO("Relaxed node promotion enabled. This node is a candidate.");
     result = true;
   }
-- 
2.17.1



_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to