config/sysinv/sysinv/sysinv/sysinv/api
Yuxing Jiang bc40879eca Improve kube-rootca-get-id API and error handling
This commit corrects a error in the API reference introduced in:
Ie78121d0c21d2c6033c8b5d4919e251fc4d98050.

This commit also improves the error handling to return understandable
error message, avoids print exception if the cert missed in the
file system.

Reduces the info logs from utils to prevent the dc audit dump too many
logs into the sysiv.log.

Test plan:
Passed - deploy an AIOSX, check the cert id by:
         system kube-rootca-get-cert-id.
Passed - manually remove the kube-rootca cert and key from the system,
         check the output of "system kube-rootca-get-cert-id", verified
         the error message w/o exceptions.
Passed - verify the dc audit doesn't dump logs about the cert id in
         sysinv.log.

Story: 2010852
Task: 49091

Signed-off-by: Yuxing Jiang <Yuxing.Jiang@windriver.com>
Change-Id: I47f1a9ca617bf0daf9c25e7b4552e52d3e9d1811
2023-11-24 09:16:48 -05:00
..
controllers Improve kube-rootca-get-id API and error handling 2023-11-24 09:16:48 -05: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 Load-import clean up temp folder 2023-11-01 16:09:03 +00:00