Summary: amf: Add support for cloud resilience [#1620] Review request for Trac Ticket(s): 1620 Peer Reviewer(s): AMF contributors Pull request to: AMF maintainers Affected branch(es): default Development branch: default
-------------------------------- Impacted area Impact y/n -------------------------------- Docs n Build system n RPM/packaging n Configuration files n Startup scripts n SAF services y OpenSAF services n Core libraries n Samples n Tests n Other n Comments (indicate scope for each "y" above): --------------------------------------------- This patch series is consolidated version of patches attached in ticket #1620. Please refer to original patches attached to ticket which have the commit history and descriptions along the changes for more info changeset 7edea60f9786f1eaaca79a6736ac478ec7f4b20a Author: Minh Hon Chau <[email protected]> Date: Wed, 06 Jan 2016 00:10:44 +1100 amfd: Add README file for cloud resilience support [#1620] changeset cc768f5ce161443c014962f09adcdc2d377fb32f Author: Minh Hon Chau <[email protected]> Date: Wed, 06 Jan 2016 00:10:48 +1100 amfd: Add saAmfUnassignedAlarmStatus attribute to memorize the alarm_sent status [#1620] If the SI Unassigned Alarm is raised before headless by locking SU for instance, then after cluster recovers from headless and unlocking the SU, this alarm is not cleared. As the application can reside in PL nodes and it's right to expect the previous raised alarm should be cleared once the SI gets back assignments. The patch adds new attribute saAmfUnassignedAlarmStatus attribute to SaAmfSI class to memorize the variable alarm_sent for headless. changeset 12895c783a450e060605e5434bc80b3144f79449 Author: Minh Hon Chau <[email protected]> Date: Wed, 06 Jan 2016 00:10:52 +1100 amfd: Add support for cloud resilience at common libs [#1620] Outlined changes: . Introduce messages sisu_state_info and csicomp_state_info to carry sync information which are sent to amfd to recover from headless . Some encode/decode functions for these 2 new messages changeset c22544fa39ecbcb0aee3450a34cd657c5d86730d Author: Minh Hon Chau <[email protected]> Date: Wed, 06 Jan 2016 00:10:55 +1100 amfnd: Add support for cloud resilience at node director [#1620] Outline changes: . amfnd does not reboot if amfd is down . Failover/switchover recovery is limited during headless, only componentRestart and suRestart is supported . SC absence timer is introduced, node will reboot if timeout . amfnd sends sync information if amfd is up after headless changeset 4aebe0f36602fa541bede73e86388688a6e02cd4 Author: Minh Hon Chau <[email protected]> Date: Wed, 06 Jan 2016 00:10:59 +1100 amfd: Add support for cloud resilience at director [#1620] Outlined changes: . node_up_msg event handling has changed so that amfd can collect the sync information sent from amfnd . Node Sync timer is introduced as a window of amfnd sync from headless . Failover may happens during headless, adjust_delayed_failover() to balance the assignment in term of active/standby availability . SI dependencies also can change due to assignment removal during headless adjust_delayed_sidep() to update the si dependencies Complete diffstat: ------------------ osaf/libs/common/amf/d2nedu.c | 311 ++++++++++++++++- osaf/libs/common/amf/d2nmsg.c | 266 +++++++++++++++ osaf/libs/common/amf/include/Makefile.am | 1 + osaf/libs/common/amf/include/amf_d2nedu.h | 16 + osaf/libs/common/amf/include/amf_d2nmsg.h | 61 +++ osaf/libs/common/amf/include/amf_defs.h | 3 + osaf/libs/common/amf/include/amf_si_assign.h | 49 ++ osaf/services/saf/amf/README-HEADLESS | 62 +++ osaf/services/saf/amf/amfd/cluster.cc | 69 +++- osaf/services/saf/amf/amfd/comp.cc | 8 +- osaf/services/saf/amf/amfd/csi.cc | 107 ++++++ osaf/services/saf/amf/amfd/imm.cc | 58 +++ osaf/services/saf/amf/amfd/include/cb.h | 5 + osaf/services/saf/amf/amfd/include/cluster.h | 1 + osaf/services/saf/amf/amfd/include/csi.h | 2 + osaf/services/saf/amf/amfd/include/db_template.h | 1 + osaf/services/saf/amf/amfd/include/evt.h | 3 + osaf/services/saf/amf/amfd/include/mds.h | 7 +- osaf/services/saf/amf/amfd/include/msg.h | 2 +- osaf/services/saf/amf/amfd/include/node.h | 3 + osaf/services/saf/amf/amfd/include/proc.h | 7 + osaf/services/saf/amf/amfd/include/sg.h | 16 +- osaf/services/saf/amf/amfd/include/si.h | 1 + osaf/services/saf/amf/amfd/include/susi.h | 3 + osaf/services/saf/amf/amfd/include/timer.h | 1 + osaf/services/saf/amf/amfd/include/util.h | 2 +- osaf/services/saf/amf/amfd/main.cc | 24 + osaf/services/saf/amf/amfd/mds.cc | 4 +- osaf/services/saf/amf/amfd/ndfsm.cc | 325 +++++++++++++++++- osaf/services/saf/amf/amfd/ndmsg.cc | 18 +- osaf/services/saf/amf/amfd/ndproc.cc | 103 +++++- osaf/services/saf/amf/amfd/node.cc | 9 +- osaf/services/saf/amf/amfd/sg.cc | 57 +++ osaf/services/saf/amf/amfd/sg_2n_fsm.cc | 140 ++++++++ osaf/services/saf/amf/amfd/sg_nored_fsm.cc | 6 + osaf/services/saf/amf/amfd/sg_npm_fsm.cc | 24 + osaf/services/saf/amf/amfd/sg_nway_fsm.cc | 24 + osaf/services/saf/amf/amfd/sg_nwayact_fsm.cc | 6 + osaf/services/saf/amf/amfd/sgproc.cc | 49 ++- osaf/services/saf/amf/amfd/si.cc | 45 +- osaf/services/saf/amf/amfd/siass.cc | 123 +++++++ osaf/services/saf/amf/amfd/su.cc | 19 +- osaf/services/saf/amf/amfnd/clc.cc | 100 +++-- osaf/services/saf/amf/amfnd/clm.cc | 11 +- osaf/services/saf/amf/amfnd/comp.cc | 46 ++- osaf/services/saf/amf/amfnd/compdb.cc | 45 ++- osaf/services/saf/amf/amfnd/di.cc | 419 +++++++++++++++++++++++- osaf/services/saf/amf/amfnd/err.cc | 111 +++++- osaf/services/saf/amf/amfnd/evt.cc | 2 + osaf/services/saf/amf/amfnd/hcdb.cc | 8 +- osaf/services/saf/amf/amfnd/include/avnd_cb.h | 13 +- osaf/services/saf/amf/amfnd/include/avnd_comp.h | 17 +- osaf/services/saf/amf/amfnd/include/avnd_di.h | 4 + osaf/services/saf/amf/amfnd/include/avnd_evt.h | 2 + osaf/services/saf/amf/amfnd/include/avnd_mds.h | 4 +- osaf/services/saf/amf/amfnd/include/avnd_proc.h | 1 + osaf/services/saf/amf/amfnd/include/avnd_su.h | 4 +- osaf/services/saf/amf/amfnd/include/avnd_tmr.h | 1 + osaf/services/saf/amf/amfnd/include/avnd_util.h | 4 + osaf/services/saf/amf/amfnd/main.cc | 103 +++++- osaf/services/saf/amf/amfnd/mds.cc | 19 +- osaf/services/saf/amf/amfnd/sidb.cc | 9 +- osaf/services/saf/amf/amfnd/su.cc | 39 +- osaf/services/saf/amf/amfnd/susm.cc | 103 +++-- osaf/services/saf/amf/amfnd/tmr.cc | 1 + osaf/services/saf/amf/amfnd/util.cc | 153 ++++++++- osaf/services/saf/amf/config/amf_classes.xml | 8 + 67 files changed, 3021 insertions(+), 247 deletions(-) Testing Commands: ----------------- To test this feature, needs patches of #1625, #1646 as minimal and preferly to have patches of #1179, #1180 and #1621 Test: bring down both SCs, and start SCs back Testing, Expected Results: -------------------------- PL nodes do not reboot, and cluster comes back healthy after SCs come back from headless Conditions of Submission: ------------------------- ack from reviewers Arch Built Started Linux distro ------------------------------------------- mips n n mips64 n n x86 n n x86_64 y y powerpc n n powerpc64 n n Reviewer Checklist: ------------------- [Submitters: make sure that your review doesn't trigger any checkmarks!] Your checkin has not passed review because (see checked entries): ___ Your RR template is generally incomplete; it has too many blank entries that need proper data filled in. ___ You have failed to nominate the proper persons for review and push. ___ Your patches do not have proper short+long header ___ You have grammar/spelling in your header that is unacceptable. ___ You have exceeded a sensible line length in your headers/comments/text. ___ You have failed to put in a proper Trac Ticket # into your commits. ___ You have incorrectly put/left internal data in your comments/files (i.e. internal bug tracking tool IDs, product names etc) ___ You have not given any evidence of testing beyond basic build tests. Demonstrate some level of runtime or other sanity testing. ___ You have ^M present in some of your files. These have to be removed. ___ You have needlessly changed whitespace or added whitespace crimes like trailing spaces, or spaces before tabs. ___ You have mixed real technical changes with whitespace and other cosmetic code cleanup changes. These have to be separate commits. ___ You need to refactor your submission into logical chunks; there is too much content into a single commit. ___ You have extraneous garbage in your review (merge commits etc) ___ You have giant attachments which should never have been sent; Instead you should place your content in a public tree to be pulled. ___ You have too many commits attached to an e-mail; resend as threaded commits, or place in a public tree for a pull. ___ You have resent this content multiple times without a clear indication of what has changed between each re-send. ___ You have failed to adequately and individually address all of the comments and change requests that were proposed in the initial review. ___ You have a misconfigured ~/.hgrc file (i.e. username, email etc) ___ Your computer have a badly configured date and time; confusing the the threaded patch review. ___ Your changes affect IPC mechanism, and you don't present any results for in-service upgradability test. ___ Your changes affect user manual and documentation, your patch series do not contain the patch that updates the Doxygen manual. ------------------------------------------------------------------------------ _______________________________________________ Opensaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-devel
