Hi Neel,

Attachment is the dummy campaign that you can use to reproduce the issue on 
node level.
I guess we may need another campaign to verify the final solution on SU/Comp 
level.

Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO Remove duplicates from the merged DU 
list
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO Optimize AU/DU
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO PROC: Procedure init actions 
completed
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO PROC: Start executing the steps
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO STEP: Executing AU lock activation 
step 
safSmfStep=0001,safSmfProc=SmfSSMergedProc,safSmfCampaign=ERIC-TestOneStepUpgrade,safApp=safSmfService
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO STEP: Online installation of new 
software
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO Waiting for bundle command execution 
to finish on all affected nodes
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO STEP: Lock deactivation units
Dec  2 17:26:31 SC-2-1 osafamfd[16100]: ER Duplicate nodes in saAmfNGNodeList 
of 'safAmfNodeGroup=smfLockAdmNg1,safAmfCluster=myAmfCluster'
Dec  2 17:26:31 SC-2-1 osafimmnd[16025]: NO Validation error (BAD_OPERATION) 
reported by implementer 'safAmfService', Ccb 134 will be aborted
Dec  2 17:26:31 SC-2-1 osafimmnd[16025]: NO Ccb 134 aborted in COMPLETED 
processing (validation)
Dec  2 17:26:31 SC-2-1 osafimmnd[16025]: NO Ccb 134 ABORTED 
(smfSetAdminStateOwner)
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO createNodeGroup: saImmOmCcbApply() 
Fail 'SA_AIS_ERR_FAILED_OPERATION (21)'
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO changeNodeGroupAdminState: 
createNodeGroup() Fail SA_AIS_ERR_FAILED_OPERATION (21)
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO lock: changeNodeGroupAdminState() 
Fail SA_AIS_ERR_FAILED_OPERATION (21)
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: ER Failed to Lock deactivation units in 
step=safSmfStep=0001
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: ER Step execution failed, Try undoing 
the step
Dec  2 17:26:31 SC-2-1 osafsmfd[16142]: NO SmfStepStateUndoing::execute start 
undoing step.

/Tai


Attachments:

- 
[campaign.xml](https://sourceforge.net/p/opensaf/tickets/_discuss/thread/36d8abe6/bf32/attachment/campaign.xml)
 (2.8 kB; text/xml)


---

** [tickets:#2209] SMF: ONE-STEP upgrade failed due to duplicated entities in 
AU/DU**

**Status:** accepted
**Milestone:** 5.1.1
**Created:** Mon Nov 28, 2016 07:01 AM UTC by Tai Dinh
**Last Updated:** Fri Dec 02, 2016 06:08 AM UTC
**Owner:** Neelakanta Reddy
**Attachments:**

- 
[one_step_upgrade_fix.patch](https://sourceforge.net/p/opensaf/tickets/2209/attachment/one_step_upgrade_fix.patch)
 (3.0 kB; application/octet-stream)


Execution of ONE-STEP upgrade will fail if the original campaign contains 
forAddRemove Single Step procedure that have duplicated entities with another 
procedure.

Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: NO STEP: Lock deactivation units
Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: NO createNodeGroup: saImmOmCcbApply() 
Fail 'SA_AIS_ERR_FAILED_OPERATION (21)'
Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: NO changeNodeGroupAdminState: 
createNodeGroup() Fail SA_AIS_ERR_FAILED_OPERATION (21)
Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: NO lock: changeNodeGroupAdminState() 
Fail SA_AIS_ERR_FAILED_OPERATION (21)
Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: ER Failed to Lock deactivation units in 
step=safSmfStep=0001
Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: ER Step execution failed, Try undoing 
the step
Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: NO SmfStepStateUndoing::execute start 
undoing step.
Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: ER Rollback of cluster reboot activate 
step is not implemented
Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: ER Step undoing failed
Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: NO Step safSmfStep=0001 in procedure 
safSmfProc=SmfSSMergedProc failed, step result 5
Nov 26 18:30:02 SC-2-2 osafsmfd[4929]: NO CAMP: Procedure 
safSmfProc=SmfSSMergedProc returned FAILED
Nov 26 18:30:11 SC-2-2 osafsmfd[4929]: ER Failed to rollback campaign, wrong 
state 10

The reason of this is because during calculating/optimizing the AU/DU of the 
merged procedure, the original AU/DU of that single step procedure is always 
appended into the result procedure without checking for duplicated entities.

This need to be fixed by removing any duplicated entities that is already 
presented in the tmpDU before optimization.

See attachment for a proposed fix.


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to