NACK

I bumped into a  issue.


1. start a campaign

2. complete campaign (not commited yet)

3. cluster reboot or opensafd restart on all nodes

4. rollback for campaign fails with:

    osafsmfd[1288]: ER Failed to rollback campaign, campaign not executing



On 10/31/2017 12:46 PM, Lennart Lund wrote:
Ack

Thanks
Lennart

-----Original Message-----
From: Alex Jones [mailto:[email protected]]
Sent: den 25 oktober 2017 20:21
To: [email protected]; Lennart Lund <[email protected]>;
Rafael Odzakow <[email protected]>
Cc: [email protected]; Alex Jones
<[email protected]>
Subject: [PATCH 1/1] smfd: after cluster reboot, don't re-execute a campaign
which has already completed [#2648]

smfd crashes after cluster reboot when campaign has completed but not
been committed

When the cluster is coming back up, and smfd gets active assignment,
it will immediately start executing the campaign. If the other SC is
not up yet, and PBE is enabled, then writes to IMM will fail with
NO_RESOURCES, and smfd will crash in updateImmAttr.

Don't re-execute a campaign that has already completed.
---
  src/smf/smfd/SmfCampaign.cc | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/src/smf/smfd/SmfCampaign.cc b/src/smf/smfd/SmfCampaign.cc
index 6f51483..e3019dc 100644
--- a/src/smf/smfd/SmfCampaign.cc
+++ b/src/smf/smfd/SmfCampaign.cc
@@ -580,6 +580,10 @@ SaAisErrorT SmfCampaign::adminOpVerify(void) {
   * initializes the execution
   */
  SaAisErrorT SmfCampaign::initExecution(void) {
+  // if the campaign has already completed no need to re-execute
+  if (m_cmpgState == SA_SMF_CMPG_EXECUTION_COMPLETED)
+    return SA_AIS_OK;
+
    // reset the object counter of upgrade procedures (used for procedure OI
    // naming)
    SmfUpgradeProcedure::resetProcCounter();
--
2.9.5



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to