metal/mtce-common/cgts-mtce-common-1.0/maintenance
Eric MacDonald 083d38923a Mtce: Force enable failure of host that did not reboot during enable.
If the first mtcAlive message from a host that was supposed to be
rebooted reports uptime in excess of 40 minutes then that means it did
not reboot as expected.

This was seen to happen during an extended offline case where the host
failed heartbeat, then was reported offline during Graceful Recovery
which forced a full enable. When the host eventually came back online
its reported uptime made it clear that it never rebooted but mtce
allowed it to come into service anyway.

This is a security issue that can lead to a host disappearing, being
security hacked and brought back into the system without reboot.

To fix that, this update requires that a host's uptime, reported in its
first mtcAlive message, indicate that it has been up for less twice the
configured mtcAlive timeout or the enable will fail until it is proven
to reset.

Story: 2002882
Task: 22845

Change-Id: I9b3ff0bc1ba5af2ca5b07a58db9da9f288b59576
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-20 11:12:28 -04:00
..
Makefile StarlingX open source release updates 2018-05-31 07:36:43 -07:00
ipmiClient.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcAlarm.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcAlarm.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcBrdMgmt.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcBrdMgmt.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcCmdHdlr.cpp Add 90s delay before locking storage node for upgrade 2018-07-06 09:18:21 -04:00
mtcCompMsg.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcCtrlMsg.cpp Collectd+InfluxDb-RMON Replacement(ALL METRICS) P1 2018-07-03 11:04:27 -04:00
mtcHttpSvr.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcHttpSvr.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcHttpUtil.cpp Mtce: Stop calling 'event_base_loopbreak' for nonblocking http requests 2018-06-27 14:28:27 -04:00
mtcHttpUtil.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcInvApi.cpp Mtce: Avoid running subfunction FSM for AIO-DX compute only hosts 2018-06-27 15:32:08 -04:00
mtcInvApi.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcIpmiUtil.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcIpmiUtil.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcKeyApi.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcKeyApi.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcNodeComp.cpp Mtce: Avoid running subfunction FSM for AIO-DX compute only hosts 2018-06-27 15:32:08 -04:00
mtcNodeComp.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcNodeCtrl.cpp Merge "Mtce: Implement all token fetches as non-blocking operations." 2018-06-28 13:39:01 +00:00
mtcNodeFsm.cpp Collectd+InfluxDb-RMON Replacement(ALL METRICS) P1 2018-07-03 11:04:27 -04:00
mtcNodeFsm.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcNodeHdlrs.cpp Mtce: Force enable failure of host that did not reboot during enable. 2018-07-20 11:12:28 -04:00
mtcNodeHdlrs.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcNodeMnfa.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcNodeMsg.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcSmgrApi.cpp Mtce: Stop calling 'event_base_loopbreak' for nonblocking http requests 2018-06-27 14:28:27 -04:00
mtcSmgrApi.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcSubfHdlrs.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcThreads.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcThreads.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcVimApi.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcVimApi.h StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtcWorkQueue.cpp StarlingX open source release updates 2018-05-31 07:36:43 -07:00