config/sysinv/sysinv/sysinv/sysinv/api
Al Bailey 4927790c0d Update sysinv tox for python3.9
sysinv will now use python3.9 for pylint, flake8, bandit

basepython is now set to python3.9

The zuul jobs for older versions are now updated or removed
The nodeset for python 3.9 jobs is set to debian-bullseye

pylint.rc changes include:
 - Upversion to latest pylint (2.16)
 - remove suppressions that no longer exist.
 - add suppressions for new checks added in recent pylint
 - update pylint.rc settings that no longer exist.
 - remove explicit enabling of pylint checkers from python2
   that are on by default in python3

Note: some of the newly suppressed pylint error codes will
be un-suppressed in later commits.

A subtle issue has also been fixed where a variable was
shadowing an imported method, and would have led to a
an exception when logging an error. The variable has been
renamed.

Example CLI service-parameter command for that code path:
 system service-parameter-modify kubernetes \
  kube_apiserver_volumes \
  default-audit-policy-file='{"hostPath":"x", "name":"y"}'

The CLI of the previous code would show the following
in its exception case without the fix
   'int' object is not callable

Test Plan:
  PASS: run tox in a debian build environment.
  PASS: build/install/unlock AIO-SX
  PASS: service-parameter CLI command still works

Story: 2010531
Task: 47279

Change-Id: I989ec6e75463be0a4dcd2c7727cd69584c2a20a2
Signed-off-by: Al Bailey <al.bailey@windriver.com>
2023-02-07 15:18:42 +00:00
..
controllers Update sysinv tox for python3.9 2023-02-07 15:18:42 +00:00
middleware Sysinv api load import improvements 2021-10-05 15:47:48 -04:00
policies Deprecate old policy engine and restrict access 2022-08-10 11:18:38 -03:00
__init__.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
acl.py Sysinv. Cleanup import statements for pep8 2018-06-29 13:43:53 -04:00
app.py Support access control for Service Parameter API 2022-07-23 23:16:42 -03:00
config.py Add api to query an upgrade is in progress 2022-02-18 16:28:49 -05:00
hooks.py Add ZeroMQ RPC backend 2022-11-24 13:28:01 -03:00