14 Commits

Author SHA1 Message Date
Zuul
e0c93659ec Merge "Add fm-rest-api docker image directives files" 2019-03-22 16:14:37 +00:00
Erich Cordoba
a318debe7f Add notices to Intel authored files.
Story: 2005265
Task: 30087

Change-Id: If7ae800feba773442e452b3183107696e2e6f88e
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-03-20 10:14:21 -06:00
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
Mario Alfredo Carrillo Arevalo
20da548651 Add fm-rest-api docker image directives files
This commit adds the required files to build the
docker image that will be used for enabling fm-rest-api as
a service in a container.

Story: 2004008
Task: 28874
Depends-On: https://review.openstack.org/635695/

Change-Id: I87900fcd939024dffc41869cf62c1dd29d5c1f90
Signed-off-by: Mario Alfredo Carrillo Arevalo <mario.alfredo.c.arevalo@intel.com>
2019-02-26 19:17:18 +00:00
Kristine Bujold
80a9ad661f Enhance get list APIs for alarms and events
Include the optional “expand” option to the get list for alarms and
events so the entire set of data can be returned and not just a
subset. “expand” is and optional parameter and defaults to False.

Story: 2004818
Task: 29096

Change-Id: Ife3b900d90c56564e9aeaa820e57f69d15194eb3
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
2019-01-25 10:43:57 -05:00
zhangzs
e8d9da24c8 Fix a spelling mistake
Change-Id: I31f5560d2c4bb2932bbca4baed279f32a99eb955
2018-12-14 18:13:50 +00:00
Shuicheng Lin
aebc9ee1fa Enable fm-rest-api to return json format error message
Closes-Bug: 1789979

fm-rest-api returns json format message for the correct api
access. For the invalid api access, the message is with html
format, need add wrap_app to convert it to json format.
Fix:
The implementation code is copied from upstream Ironic API,
and minor modification to pass tox pep8 check.
Also remove "x" attribute for the py file.
Test:
Pass build and multi node deploy test. Confirmed the return
message is json format.

Change-Id: I36fa89b82377d52008a467316c42c06caa65cd90
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2018-12-03 22:14:21 +08:00
Zuul
e196077d84 Merge "Update the outdated URL" 2018-11-23 14:27:06 +00:00
brandonzhao
2e41ac07d5 Fix the conflict of urlparse between python2 and python3
Story: 2003310
Task: 27860

Change-Id: Ib8e3932526af47ca0a7306b74000f8e108bd211d
Signed-off-by: brandonzhao <zhaolong@inspur.com>
2018-11-09 09:43:49 +08:00
Don Penney
4d82104ecf Add hooks for python wheel generation
This update adds hooks to the spec files for the following packages
to generate wheels for the python modules:
- fm-api
- fm-common
- fm-rest-api
- python-fmclient

Change-Id: I0542650b52b9c5b0627023a2ce1996176135411d
Story: 2003907
Task: 27525
Signed-off-by: Don Penney <don.penney@windriver.com>
2018-10-24 17:12:50 +00:00
melissaml
9ee56d2dd9 Update the outdated URL
Change-Id: I31da5a42fa08e377ed050f8b9b8482bb9c8475a6
2018-09-23 16:32:20 +08:00
Tao Liu
80afa6133f Update the License in FM packages
The fm-rest-api setup.py and fm-mgr spec file have incorrect
License.

This update changes the license to Apache-2.0 in setup.py and
and the spec file.

Change-Id: Id923baac0c54fb1feb38069dad73dfd13dbf1d39
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2018-09-05 21:35:07 -04:00
Tao Liu
66d6e6eca8 Update the License in FM packages
The fm-rest-api and python-fmclient packages have incorrect License
in the PKG-INFO and spec files.

This update changes the license to Apache-2.0 in the PKG-INFO and
spec files.

Change-Id: I012c87818d87d1f55032241cd15ff90ad82ef661
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2018-09-05 14:54:00 -04:00
Tao Liu
c8159ea6cb Decouple Fault Management from stx-config
Create fault management REST API service
Create fault management client and CLI shell
Add a python extension for fault management application APIs
Update fault management python APIs to use the python extension
Update fault manager to retrieve the SNMP configuration from the config file

Story: 2002828
Task: 22747

Depends-On: https://review.openstack.org/#/c/592176/
Change-Id: I888d8d23edf75d05d51594ccca55570ae366c848
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2018-08-16 13:23:33 -04:00