StarlingX Fault Management
Go to file
Joao Victor Portal 7fd26e0d15 Fault Management API request audit logging
Here is added a hook to the WSGI compliant Pecan server that receives
the Fault Management API requests. This hook logs the needed request
data to "/var/log/fm-api.log". All requests are logged except the
ones of "GET" type.

The code is a port from the same hook that exists in
"starlingx/config" repository, also called "AuditLogging".

Note: there are no "POST" or "PUT" requests available in Fault
Management API v1.

Test Plan:

PASS: Successfully deploy an AIO-SX and verify that the logs of
"fm-api" service are present in file "/var/log/fm-api.log".
PASS: In the deployed AIO-SX, execute command "fm alarm-list" and
check that no GET requests was logged in "fm-api.log".
PASS: In the deployed AIO-SX, execute command "fm alarm-delete 1111"
and check that a "DELETE /v1/alarms/1111" request was logged in
"fm-api.log" with status "404".
PASS: In the deployed AIO-SX, execute command
"fm event-suppress --alarm_id <alarm_id>" and check that a
"PATCH /v1/event_suppression/<uuid>" request was logged in
"fm-api.log" with status "200".
PASS: Successfully build all packages of this repository as Debian
packages: fm-api, fm-common, fm-doc, fm-mgr, fm-rest-api and
python-fmclient.

Story: 2009824
Task: 44468

Depends-On: https://review.opendev.org/c/starlingx/config-files/+/828200
Signed-off-by: Joao Victor Portal <Joao.VictorPortal@windriver.com>
Change-Id: I25bf662ed9e792b30ae1f90329bd35b918f0a5f7
2022-02-18 00:39:43 -03:00
api-ref/source Removing system uuid from alarms summary 2021-08-12 19:55:39 -04:00
devstack Use DevStack's setup_*() functions for Python packages 2019-05-17 13:11:58 -05:00
doc Reimplementation logic for trap generation 2020-12-08 18:37:50 -03:00
fm-api Add debian package infra for fm-api 2021-09-27 12:53:01 -04:00
fm-common Fixing logging for python scripts - FM 2021-12-23 14:49:21 -03:00
fm-doc Add debian package for fm-doc 2022-01-20 13:20:18 +00:00
fm-mgr Fault Management API request audit logging 2022-02-18 00:39:43 -03:00
fm-rest-api Fault Management API request audit logging 2022-02-18 00:39:43 -03:00
python-fmclient Add support to --insecure parameter in fmclient 2022-01-20 11:56:43 -03:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-06-04 14:20:25 +02:00
.gitignore Create test framework for python with stestr. 2020-01-16 16:45:45 +08:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:34 +00:00
.zuul.yaml Removing py36 gates from zuul for fault 2021-09-30 10:14:06 -03: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 Followup opendev cleanup and test jobs 2019-04-20 20:26:25 -05:00
bindep.txt py3: Add support for python 3.9 2021-09-01 08:58:34 -04:00
centos_build_layer.cfg Build layering, add layer build config file 2019-10-15 19:41:08 +08:00
centos_iso_image.inc Remove snmp-ext and snmp-audittrail from FM 2021-01-04 14:57:33 -03:00
centos_pkg_dirs Remove snmp-ext and snmp-audittrail from FM 2021-01-04 14:57:33 -03: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
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-28 15:26:08 -04:00
debian_iso_image.inc Add debian_iso_image.inc file 2021-10-27 02:24:07 -04:00
debian_pkg_dirs Update debian-pkg-dirs with fm-doc library 2022-02-04 02:02:56 +00:00
pylint.rc Re-enable important py3k checks for fault 2021-11-09 14:09:17 -03:00
requirements.txt Adding pylint zuul and tox target 2020-03-11 09:05:18 -05:00
test-requirements.txt Attempt to fix zuul jobs from timing out 2021-08-10 07:32:57 -05:00
tox.ini Add debian package infra for fm-api 2021-09-27 12:53:01 -04:00

README.rst

fault

StarlingX Fault Management