StarlingX Fault Management
Go to file
Shuicheng Lin 1faff551f2 catch the correct exception for alarm not found case
Issue:
for the alarm_show/alarm_delete/event_show api, if the input UUID
string is not valid, http server side will return error code 500
(Internal Server Error), due to the error code is not set correctly.
Solution:
Correct the error code in server, and add client code to handle
"HTTP 404 - Not Found" error code correctly.

Test:
Run "fm alarm-show/alarm-delete/event-show" with valid/invalid
UUID, and the response is correct. For invalid UUID, response
string will like below. "xxx" for the invalid UUID string.
"Alarm not found: xxx"
"Event log not found: xxx"

Closes-Bug: 1806927

Change-Id: I8d17c5bc55733f269d875ae835ab6295fed4d899
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2019-03-18 20:10:37 +08:00
api-ref/source [Doc] API Content Gaps 2019-01-28 09:12:32 -06:00
devstack Updates to include cgtsclient and install dirs 2019-03-13 00:39:50 +08: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 catch the correct exception for alarm not found case 2019-03-18 20:10:37 +08:00
python-fmclient catch the correct exception for alarm not found case 2019-03-18 20:10:37 +08: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 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_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