Mtce: Hosts in MNFA pool are reported to be in Graceful Recovery during wait period
Story: 2002882 Task: 22845 Change-Id: Icbdf21d51f4b41192ed49f40bbe76f462e5aaba9 Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
parent
23d9dd711c
commit
f649c5b9b4
|
@ -112,6 +112,8 @@ void nodeLinkClass::mnfa_add_host ( struct nodeLinkClass::node * node_ptr , ifac
|
||||||
added = true ;
|
added = true ;
|
||||||
mnfa_awol_list.push_back(node_ptr->hostname);
|
mnfa_awol_list.push_back(node_ptr->hostname);
|
||||||
mnfa_awol_list.unique();
|
mnfa_awol_list.unique();
|
||||||
|
if ( node_ptr->task != MTC_TASK_RECOVERY_WAIT )
|
||||||
|
mtcInvApi_update_task ( node_ptr, MTC_TASK_RECOVERY_WAIT );
|
||||||
}
|
}
|
||||||
else if (( mnfa_active == false ) &&
|
else if (( mnfa_active == false ) &&
|
||||||
( mnfa_host_count[iface] >= mnfa_calculate_threshold( node_ptr->hostname )))
|
( mnfa_host_count[iface] >= mnfa_calculate_threshold( node_ptr->hostname )))
|
||||||
|
@ -227,6 +229,9 @@ void nodeLinkClass::mnfa_enter ( void )
|
||||||
ptr->mnfa_graceful_recovery = true ;
|
ptr->mnfa_graceful_recovery = true ;
|
||||||
|
|
||||||
mnfa_awol_list.push_back(ptr->hostname);
|
mnfa_awol_list.push_back(ptr->hostname);
|
||||||
|
if ( ptr->task != MTC_TASK_RECOVERY_WAIT )
|
||||||
|
mtcInvApi_update_task ( ptr, MTC_TASK_RECOVERY_WAIT );
|
||||||
|
|
||||||
}
|
}
|
||||||
if (( ptr->next == NULL ) || ( ptr == tail ))
|
if (( ptr->next == NULL ) || ( ptr == tail ))
|
||||||
break ;
|
break ;
|
||||||
|
|
Loading…
Reference in New Issue