11 Commits

Author SHA1 Message Date
Eric Barrett
8142803bfd Enable Python3 Compatibility
Flake8 currently ignores the following errors:
H233: Python 3.x incompatible use of print operator
H236: Python 3.x incompatible __metaclass__
H238: Old style class declaration, use new style
Enable them for python3 compability

Change-Id: I8959f3a78ce683eb93a16234908662189dd7c8a5
Story: 2004515
Task: 29304
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
2019-06-07 13:35:58 +00:00
Dean Troyer
91fb95eae5 Use DevStack's setup_*() functions for Python packages
These functions do a number of things, specifically they handles the
DevStack USE_PYTHON3 switch transparently so we can run both major
Python versions.

The new setup.cfg files are only used by setup_*() right now, making
the switch to use pbr is beyond what I want to do here.

Change-Id: Ib9753119235b1ce23030a2b3de0169ed6f8819e0
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-05-17 13:11:58 -05:00
Kristine Bujold
9ee0149bfe Remove remote-clients SDK Module from StarlingX
Spec files no longer requires specific remote-clients SDK actions.

With the StarlingX move to supporting pure upstream OpenStack, the
majority of the SDK Modules are related to functionality no longer
supported. The remaining SDK Modules will be moved to StarlingX
documentation.

Story: 2005275
Task: 30154

Change-Id: I6ed8de0f8ba438088aff27b1d1947c428e79fb4b
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
2019-03-25 09:51:49 -04: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
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
ZhijunWei
cb0c7c68b1 Change openstack-dev to openstack-discuss
Signed-off-by: ZhijunWei <wzj334965317@outlook.com>

Change-Id: Ibad2a3fd9899ec69cc5291d930d6315b02ecc011
2018-12-07 02:10:10 +00: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
Tao Liu
994aef7216 Remove version from fmclient setup.cfg
This update removes the version from fmclient setup metadata.
The fmclient setup will use the build tag instead

Change-Id: Iee2d1ffab867279a6700325b46a79decdbb97b7a
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2018-09-12 16:35:28 -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
a384dbbef3 Decouple Fault Management from stx-config
Add bash completion script for FM shell.

Story: 2002828
Task: 22747

Change-Id: I3ac3262573d198ab5b9cfe8bcfd5e52dd9910ebd
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2018-08-20 15:00:38 -05: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