ha/service-mgmt/sm-db-1.0.0/database
Bin Qian 133da10b08 split-brain avoidance improvement
This change enables one way communication via BMC (if configured)
through mtce.
when 2 controllers lost all communications to each other.
The algorithm is:
when communications all lost,
both active and standby controllers, verify its interfaces (mgmt,
infra, and oam)
if active controller is healthy, it will request a bmc reset
thorugh mtce, against standby controller.
if standby controller is healthy, it will active itself and wait
a total 45 seconds before requesting a bmc reset through mtce,
against the active controller.

Changes also include:
1. adding new initial failover state.
   initial state is a state before the node is enabled
2. remove failover thread.
   using worker thread action to perform time consuming operations
3. remove entire failover action table

Story: 2003577
Task:  24901
Change-Id: I7d294d40e84469df6b6a6f6dd490cf3c4557b711
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2018-11-08 20:18:43 +00:00
..
Makefile StarlingX open source release updates 2018-05-31 07:36:26 -07:00
README StarlingX open source release updates 2018-05-31 07:36:26 -07:00
create_sm_db.sql split-brain avoidance improvement 2018-11-08 20:18:43 +00:00
create_sm_hb_db.sql StarlingX open source release updates 2018-05-31 07:36:26 -07:00
sm-patch.sql StarlingX open source release updates 2018-05-31 07:36:26 -07:00
sm_database.xlsb StarlingX open source release updates 2018-05-31 07:36:26 -07:00

README

The SM database is generated by the corresponding SQL scripts:
create_sm_db.sql -> sm.db
create_sm_hb_db.sql -> sm.db.hb

Instructions:
1. Update the SM excel spreadsheet (sm_database.xlsb) with your changes,
2. Update the corresponding SQL script i.e, create_sm_db.sql or create_sm_hb_db.sql:
    Add proper SQL statement(s) (insert, update, delete) to the sql file.