StarlingX Fault Management
Go to file
Eric MacDonald 7ae75e24c8 Protect FM API shared data with thread locking
Collectd runs all its python plugins concurrently.

With the expansion of collectd python plugins due
to the obsolesence of rmon collectd core dumps are
being reported during collectd startup when the FM
service on the controller is not running.

Debug of the issue revealed that the core dumps are
due to having no mutex around FM API's shared data.

The required mutex is provided by this update by
adding a while locked expression to the start of
each API.

Also fixed 3 pep8 errors.

Closes-Bug: 1819473

Test Plan:
PASS: Test before and after cases to confirm that without
      the change we see core dumps but with the change the
      API and collectd plugin behavior is correct without
      the core dumps.
PASS: System install with current collectd plugins and fm's
      python API enhanced with locking.
PASS: Have sm stop managing the fmManager process, kill it
      and then restart collectd over and over.
      Should not see any collectd core dumps.
PASS: Verify nfv alarming still works

Change-Id: I3d5ef0bd9cb774299b4c0f3b9e33cddb7c0f776c
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2019-04-09 20:32:26 +00:00
api-ref/source [Doc] API Content Gaps 2019-01-28 09:12:32 -06:00
devstack [devstack] fmManager process launch 2019-03-28 06:13:32 +08:00
doc Clean up and standardize landing pages 2018-12-27 16:59:48 -08:00
fm-api Protect FM API shared data with thread locking 2019-04-09 20:32:26 +00:00
fm-common Fix clear_fault/clear_all in FaultAPIsV2 raise exception when alarm is 2019-04-01 01:31:49 +08:00
fm-doc Add PTP monitoring to collectd 2019-03-25 13:25:30 -04:00
fm-mgr Improve security by avoiding buffer overflows 2019-01-08 09:55:07 -06:00
fm-rest-api Create the stable wheel and image build files 2019-03-24 21:08:19 -04:00
python-fmclient Remove remote-clients SDK Module from StarlingX 2019-03-25 09:51:49 -04:00
releasenotes Update config 2019-01-30 16:11:23 -08:00
snmp-audittrail Improve security by avoiding buffer overflows 2019-01-08 09:55:07 -06:00
snmp-ext Remove wrs-snmp-mib SDK Module from StarlingX 2019-03-26 16:14:17 -04:00
.gitignore [Doc] OpenStack API Reference Guide 2018-09-25 15:55:02 -07:00
.gitreview Add .gitreview 2018-05-31 07:36:00 -07:00
.zuul.yaml Updates to include cgtsclient and install dirs 2019-03-13 00:39:50 +08:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-05-31 07:36:00 -07:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:00 -07:00
README.rst StarlingX open source release updates 2018-05-31 07:36:00 -07:00
centos_iso_image.inc Decouple Fault Management from stx-config 2018-08-17 15:25:35 -04:00
centos_master_docker_images.inc Add fm-rest-api docker image directives files 2019-02-26 19:17:18 +00:00
centos_pike_docker_images.inc Add fm-rest-api docker image directives files 2019-02-26 19:17:18 +00:00
centos_pike_wheels.inc Rename centos_wheels.inc to centos_pike_wheels.inc 2018-11-14 15:06:43 -06:00
centos_pkg_dirs Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
centos_stable_docker_images.inc Create the stable wheel and image build files 2019-03-24 21:08:19 -04:00
centos_stable_wheels.inc Create the stable wheel and image build files 2019-03-24 21:08:19 -04:00
test-requirements.txt Enable additional flake8 checks 2019-02-01 17:07:53 -06:00
tox.ini Merge "DevStack cleanups" 2019-02-06 14:26:19 +00:00

README.rst

stx-fault

StarlingX Fault Management