StarlingX Fault Management
Go to file
Shuicheng Lin cca4dc0c54 Implement FaultAPIsV2 to distinguish fail and no data case
Current FaultAPIs (get_fault/get_faults/get_faults_by_id) cannot
distinguish error and no data case. None will be returned for both
case. To separate these two cases, and implement the code more as
pythonic way, FaultAPIsV2 is added, which will raise exception for
error case.
In order to separate the cases, the C functions called by API are
modified to return FALSE for error, and return None for no data.

Test:
Pass basic deploy test, and "fm alarm-*" cmd work as before.
Use fm_api_test.py/fm_api_v2_test.py to manual trigger API call,
confirm alarm could be created/get/deleted, and value is the same
as "fm alarm-list".
Modify fmManager to simulate error case, confirm exception is
generated for FaultAPIsV2, and behavior is not changed for
FaultAPIs.

Story: 2004859
Task: 29097

Change-Id: Ic1c0a15eb8dfec6c368099b096d6a158da0d3c77
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2019-03-05 20:14:49 +08:00
api-ref/source [Doc] API Content Gaps 2019-01-28 09:12:32 -06:00
devstack Set a fixed install dir and add specific prereqs 2019-02-19 09:33:06 -06:00
doc Clean up and standardize landing pages 2018-12-27 16:59:48 -08:00
fm-api Implement FaultAPIsV2 to distinguish fail and no data case 2019-03-05 20:14:49 +08:00
fm-common Implement FaultAPIsV2 to distinguish fail and no data case 2019-03-05 20:14:49 +08:00
fm-doc [fm-doc] bug-fix: change a "dictionary" while iterating it 2018-12-20 00:49:21 +00:00
fm-mgr Improve security by avoiding buffer overflows 2019-01-08 09:55:07 -06:00
fm-rest-api Enhance get list APIs for alarms and events 2019-01-25 10:43:57 -05:00
python-fmclient Enhance get list APIs for alarms and events 2019-01-25 10:43:57 -05: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 Standardize makefile for snmp-ext 2019-01-30 12:31:51 -06: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 Convert DevStack jobs to master & bionic 2019-02-08 15:42:06 -06: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_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
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