- **status**: assigned --> duplicate
- **Milestone**: 4.5.FC --> never
- **Comment**:
Ticket #713 will be used to push the change.
---
** [tickets:#920] amf: Initialize current assignment attributes in SU
constructor.**
**Status:** duplicate
**Milestone:** never
**Created:** Wed May 21, 2014 09:27 AM UTC by Praveen
**Last Updated:** Wed May 21, 2014 11:13 AM UTC
**Owner:** Praveen
In 4.5 branch saAmfSUNumCurrActiveSIs and saAmfSUNumCurrStandbySIs are not
initialized in
constructor AVD_SU(const SaNameT *dn). This causes no assignment of SIs when a
SU is unlocked because SG fsm includes check like this:
sg_2n_fsm.cc:avd_sg_2n_su_chose_asgn()
if ((i_si->saAmfSIAdminState == SA_AMF_ADMIN_UNLOCKED) &&
(i_si->list_of_csi != NULL) &&
(i_si->si_dep_state != AVD_SI_SPONSOR_UNASSIGNED) &&
(i_si->si_dep_state != AVD_SI_UNASSIGNING_DUE_TO_DEP) &&
(i_si->si_dep_state != AVD_SI_READY_TO_UNASSIGN) &&
(i_si->list_of_sisu == AVD_SU_SI_REL_NULL) &&
(a_su->saAmfSUNumCurrActiveSIs <
sg->saAmfSGMaxActiveSIsperSU)) {
Patch:
diff --git a/osaf/services/saf/amf/amfd/su.cc b/osaf/services/saf/amf/amfd/su.cc
--- a/osaf/services/saf/amf/amfd/su.cc
+++ b/osaf/services/saf/amf/amfd/su.cc
@@ -42,6 +42,8 @@ AVD_SU::AVD_SU(const SaNameT *dn) {
saAmfSUOperState = SA_AMF_OPERATIONAL_DISABLED;
saAmfSUPresenceState = SA_AMF_PRESENCE_UNINSTANTIATED;
saAmfSuReadinessState = SA_AMF_READINESS_OUT_OF_SERVICE;
+ saAmfSUNumCurrActiveSIs = 0;
+ saAmfSUNumCurrStandbySIs = 0;
su_is_external = false;
sg_of_su = NULL;
su_on_node = NULL;
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets