metal/mtce/src/hwmon
Eric MacDonald 7539d36c3f Prevent mtcClient from sending to uninitialized socket in AIO SX
The mtcClient will perform a socket reinit if it detects a socket
failure. The mtcClient also avoids setting up its controller-1
cluster network socket for the AIO SX system type ; because there
is no controller-1 provisioned.

Most AIO SX systems have the management/cluster networks set to
the 'loopback' interface. However, when an AIO SX system is setup
with its management and cluster networks on physical interfaces,
with or without vlan, the mtcAlive send message utility will try
to send to the uninitialized controller-1 cluster socket. This
leads to a socket error that triggers a socket reinitialization
loop which causes log flooding.

This update adds a check to the mtcAlive send utility to avoid
sending mtcAlive to controller-1 for AIO SX system type where
there is no controller-1 provisioned; no send,no error,no flood.

Since this update needed to add a system type check, this update
also implemented a system type definition rename from CPE to AIO.
Other related definitions and comments were also changed to make
the code base more understandable and maintainable

Test Plan:

PASS: Verify AIO SX with mgmnt/clstr on physical (failure mode)
PASS: Verify AIO SX Install with mgmnt/clstr on 'lo'
PASS: Verify AIO SX Lock msg and ack over mgmnt and clstr
PASS: Verify AIO SX locked-disabled-online state
PASS: Verify mtcClient clstr socket error detect/auto-recovery (fit)
PASS: Verify mtcClient mgmnt socket error detect/auto-recovery (fit)

Regression:

PASS: Verify AIO SX Lock and Unlock (lazy reboot)
PASS: Verify AIO DX and DC install with pv regression and sanity
PASS: Verify Standard system install with pv regression and sanity

Change-Id: I658d33a677febda6c0e3fcb1d7c18e5b76cb3762
Closes-Bug: 1897334
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2021-04-21 10:20:10 -04:00
..
scripts Modify mtce daemon log rotation config files 2021-04-07 20:47:54 +00:00
Makefile Redfish support for Sensor Monitoring in hwmond 2019-09-12 01:56:42 +08:00
hp380.cpp Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
hwmon.h Add redfish power/reset/reinstall bmc support to maintenance 2019-09-26 15:59:35 -04:00
hwmonAlarm.cpp Fix format-truncation warnings 2019-09-26 17:43:28 -05:00
hwmonAlarm.h Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
hwmonBmc.cpp Redfish support for Sensor Monitoring in hwmond 2019-09-12 01:56:42 +08:00
hwmonBmc.h Redfish support for Sensor Monitoring in hwmond 2019-09-12 01:56:42 +08:00
hwmonClass.cpp Fix BMC access loss handling 2020-01-03 09:34:37 -05:00
hwmonClass.h Refactor BMC provisioning in Maintenance 2019-12-09 09:39:49 -05:00
hwmonFsm.cpp Fix BMC access loss handling 2020-01-03 09:34:37 -05:00
hwmonGroup.cpp Refactor BMC provisioning in Maintenance 2019-12-09 09:39:49 -05:00
hwmonGroup.h Redfish support for Sensor Monitoring in hwmond 2019-09-12 01:56:42 +08:00
hwmonHdlr.cpp Fix BMC access loss handling 2020-01-03 09:34:37 -05:00
hwmonHttp.cpp Maintenance Redfish support useability enhancements. 2019-10-03 11:57:58 -04:00
hwmonHttp.h Remove references to ceilometer in maintenance 2019-04-30 14:28:12 -04:00
hwmonHttpClient.cpp Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
hwmonInit.cpp Maintenance Redfish support useability enhancements. 2019-10-03 11:57:58 -04:00
hwmonJson.cpp Refactor BMC provisioning in Maintenance 2019-12-09 09:39:49 -05:00
hwmonJson.h Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
hwmonModel.cpp Refactor BMC provisioning in Maintenance 2019-12-09 09:39:49 -05:00
hwmonModel.h Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
hwmonMsg.cpp Refactor BMC provisioning in Maintenance 2019-12-09 09:39:49 -05:00
hwmonParse.cpp Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
hwmonSensor.cpp Prevent mtcClient from sending to uninitialized socket in AIO SX 2021-04-21 10:20:10 -04:00
hwmonSensor.h Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
hwmonThreads.cpp Add NonRecoverable property to Hardware Monitor's Redfish 2021-03-11 11:13:59 -05:00
hwmonThreads.h Add NonRecoverable property to Hardware Monitor's Redfish 2021-03-11 11:13:59 -05:00
hwmonUtil.cpp Redfish support for Sensor Monitoring in hwmond 2019-09-12 01:56:42 +08:00
hwmonUtil.h Redfish support for Sensor Monitoring in hwmond 2019-09-12 01:56:42 +08:00