Commit Graph

9 Commits

Author SHA1 Message Date
Erich Cordoba c8735e882a Remove version from sm folder
The sm component had the 1.0.0 version in the folder name, this
change removes that version and updates the centos_pkg_dirs.

Story: 2006623
Task: 36827

Depends-On: https://review.opendev.org/#/c/685128/
Change-Id: I6725d1f961c2a82275da5fabbff8e89a8dd6f245
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-09-26 14:11:31 -05:00
Bin Qian 720232befe Enable configurable sm process priority through sm-configure
In some cases sm will need to adjust its process priority. This
change enables the configuring sm priority as part of sm at runtime

Partial-Bug: 1816764
Change-Id: I860759621c0d1389ca5a3c947d7973c185274bdd
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2019-02-22 10:37:24 -05:00
Bin Qian 0641b4a44e Fix h/w subsystem duplicated initialization
h/w subsystem is mistakenly initialized twice. It causes the
interface operational state changed events not being passed to
the listener. In the event an interface operational state changed,
i.e, cable is pulled, the system could not react to it.

Change-Id: I014d25befda536265c9c588a156ce411d01147cf
Closes-Bug: 1812019
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2019-01-28 13:02:32 -05:00
Bin Qian 28e293bda5 Retrieve hbs cluster info
This change includes:
1. adds code to receive cluster info update from hbsAgent.
2. support of ondemand hbs cluster info query (asynchronous).

Depends-On: I7d294d40e84469df6b6a6f6dd490cf3c4557b711

Story: 2003577
Task: 27816

Change-Id: Idb65abc58b4afe9649aba442f0798c24d9fffb10
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2018-11-30 11:59:23 -05:00
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
Bin Qian a0c243b4a3 Create worker thread
This change list is to create worker thread mechanism for the
upcoming one time tasks to run in separated thread.

Story: 2003577
Task: 24898
Change-Id: I5378b80763b104bcf0af95cb083de0cf61463788
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2018-09-04 15:08:48 -04:00
Jack Ding a1f2589486 Cleanup internal references
Story: 2002971
Task: 22979

Change-Id: I618d707ef141e8bd029b0fc80b4eaf34bacc7bf4
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-23 12:15:39 -04:00
Bin Qian 0cd2e361ab Fix sm-trap
Move the log subsystem finalize code to the end after all other
subsystem finalize. Correct logging typos.

Change-Id: Ibb9f7f7b0056da83d09490c879ee2db9b1bae0f9
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
2018-06-27 15:52:11 -04:00
Dean Troyer 17c909ec83 StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:36:26 -07:00