config/sysinv/cgts-client/cgts-client/cgtsclient/v1
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
..
__init__.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
address.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
address_pool.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
address_pool_shell.py Accept additional attributes in addrpool-add CLI 2021-04-05 08:42:02 -04:00
address_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
app.py Send the binary data instead of path 2021-05-08 05:52:48 -03:00
app_shell.py Add support to preserve app attributes when updating app 2022-12-01 12:23:12 -03:00
ceph_mon.py Ceph for standard: System Inventory CLI, API, DB 2019-01-16 18:12:15 +02:00
ceph_mon_shell.py Improve <ceph-mon-modify> command output 2023-01-10 12:28:32 -05:00
certificate.py Support multiple CA certificates installation 2020-03-20 10:32:43 -04:00
certificate_shell.py Update not ssl_ca certificate removal message 2023-02-16 19:52:14 +00:00
client.py Add runtime reconfiguration of kubelet 2022-06-09 17:59:35 -04:00
cluster.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
cluster_shell.py Fix system cluster-show error updating string encoding 2022-12-06 09:47:54 -05:00
controller_fs.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
controller_fs_shell.py Allow yaml formatting for controllerfs-list 2020-04-21 13:24:11 +00:00
datanetwork.py Create DataNetworks modelling in System Configuration 2019-01-22 17:43:45 -05:00
datanetwork_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
device_image.py Preserve states for functional user and bmc image 2021-11-22 14:41:28 -05:00
device_image_shell.py Preserve states for functional user and bmc image 2021-11-22 14:41:28 -05:00
device_image_state.py Sysinv extensions for FPGA support 2020-05-13 16:20:37 -04:00
device_image_state_shell.py Sysinv extensions for FPGA support 2020-05-13 16:20:37 -04:00
device_label.py Sysinv extensions for FPGA support 2020-05-13 16:20:37 -04:00
device_label_shell.py Cleanup pylint error: redefined-outer-name 2021-11-25 18:07:46 +00:00
drbdconfig.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
drbdconfig_shell.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
ethernetport.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
ethernetport_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
fernet.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
health.py Add pod health status to kube rootca check 2023-11-17 17:19:42 -03:00
health_shell.py Add pod health status to kube rootca check 2023-11-17 17:19:42 -03:00
helm.py cleanup pylint error: dangerous-default-value 2021-11-17 18:18:43 +00:00
helm_shell.py debian: Fix helm-override-update warning 2022-05-25 12:56:43 +03:00
host_fs.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
host_fs_shell.py Add a new filesystem for image conversion 2020-04-29 09:52:35 +00:00
iHost_shell.py Merge "Remove the use of the mgmt_ip field in host table" 2023-11-02 19:48:28 +00:00
icpu.py py3: Fix for python2/python3 compatibility 2021-04-01 08:58:51 -04:00
icpu_shell.py add sysinv support for specifying cpu function by range 2021-03-31 15:00:30 -06:00
idisk.py Cleanup pylint error: redefined-outer-name 2021-11-25 18:07:46 +00:00
idisk_shell.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
idns.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
idns_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
iextoam.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
iextoam_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
ihost.py Remove the use of the mgmt_ip field in host table 2023-11-01 10:30:21 -04:00
iinterface.py Add bond option primary_reselect 2021-03-23 12:10:02 -04:00
iinterface_shell.py Merge "py3: Fix for python2/python3 compatibility" 2021-04-15 18:07:26 +00:00
ilvg.py Fixing variable renaming 2021-12-02 12:49:58 -03:00
ilvg_shell.py Add upgrade notification for system commands 2022-11-14 17:14:27 +00:00
imemory.py Hugepage percent allocation. 2019-12-16 15:16:56 -05:00
imemory_shell.py Hugepage percent allocation. 2019-12-16 15:16:56 -05:00
inode.py Fixing tox pylint errors in cgts-client component 2018-08-24 14:21:43 -04:00
inode_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
interface_datanetwork.py Remove datanetworks param from interface commands 2019-06-26 15:30:44 -04:00
interface_datanetwork_shell.py Create DataNetworks modelling in System Configuration 2019-01-22 17:43:45 -05:00
interface_network.py Clean up interface network assignment 2019-06-13 09:43:57 -04:00
interface_network_shell.py Fix 'print' issue for Python 2/3 compatible code. 2018-12-06 12:59:33 +08:00
intp.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
intp_shell.py Merge "Remove shebang from non-executable scripts in cgts-client" 2019-10-09 12:03:16 +00:00
ipv.py Fixing variable renaming on _find_ipv 2021-12-02 14:56:03 -03:00
ipv_shell.py Add upgrade notification for system commands 2022-11-14 17:14:27 +00:00
isensor.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
isensor_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
isensorgroup.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
isensorgroup_shell.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
iservice.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
iservice_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
iservicegroup.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
iservicegroup_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
istor.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
istor_shell.py py3: Fix for python2/python3 compatibility 2021-04-01 08:58:51 -04:00
isystem.py Cleanup pylint error: redefined-outer-name 2021-11-25 18:07:46 +00:00
isystem_shell.py Remove TPM mode support from certificate commands 2021-12-08 14:15:14 -03:00
iuser.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
iuser_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
kube_cluster.py Config API for Kubernetes cluster access information 2021-03-01 07:29:12 -06:00
kube_cluster_shell.py Config API for Kubernetes cluster access information 2021-03-01 07:29:12 -06:00
kube_cmd_version.py Add new kube_cmd_versions table and API endpoint 2021-08-04 16:31:25 +03:00
kube_config_kubelet.py Add runtime reconfiguration of kubelet 2022-06-09 17:59:35 -04:00
kube_config_kubelet_shell.py Add runtime reconfiguration of kubelet 2022-06-09 17:59:35 -04:00
kube_host_upgrade.py Provide infrastructure for kubernetes upgrades 2019-11-22 15:13:52 -06:00
kube_rootca_update.py Improve kube-rootca-get-id API and error handling 2023-11-24 09:16:48 -05:00
kube_rootca_update_shell.py API to get kube rootCA ID 2023-11-15 16:12:08 +00:00
kube_upgrade.py Kubernetes upgrades support (continued) 2019-12-03 15:11:55 -06:00
kube_upgrade_shell.py Typo fix in system help command output for kube-upgrade-failed 2023-11-07 05:10:11 +00:00
kube_version.py Adding support for displaying kubernetes versions 2019-10-23 14:10:10 -05:00
kube_version_shell.py Adding support for displaying kubernetes versions 2019-10-23 14:10:10 -05:00
label.py Add overwrite option to host-label-assign 2019-11-13 16:45:52 -05:00
label_shell.py Add overwrite option to host-label-assign 2019-11-13 16:45:52 -05:00
license.py Clean up licensing code 2019-10-01 08:52:43 -04:00
license_shell.py Merge "Remove shebang from non-executable scripts in cgts-client" 2019-10-09 12:03:16 +00:00
lldp_agent.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
lldp_agent_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
lldp_neighbour.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
lldp_neighbour_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
load.py Add inactive param for import-load on cgts-client 2023-03-07 19:11:11 +00:00
load_shell.py Add inactive param for import-load on cgts-client 2023-03-07 19:11:11 +00:00
network.py Display network name in interface show command 2018-09-14 12:08:14 -04:00
network_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
options.py py3: Fix for python2/python3 compatibility 2021-04-01 08:58:51 -04:00
partition.py Cleanup pylint error: redefined-outer-name 2021-11-25 18:07:46 +00:00
partition_shell.py Add upgrade notification for system commands 2022-11-14 17:14:27 +00:00
pci_device.py Sysinv extensions for FPGA support 2020-05-13 16:20:37 -04:00
pci_device_shell.py Merge "Re-enable important py3k checks for cgts-client" 2021-11-16 15:33:02 +00:00
port.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
port_shell.py Align with latest SR-IOV CNI and device plugin images 2019-10-10 13:30:29 -05:00
ptp.py Apply PTP configuration at runtime 2020-02-20 00:36:39 -05:00
ptp_ha_phc2sys_control.py Fix formatting in CLI for phc2sys-ha help commands 2023-10-25 14:44:04 +00:00
ptp_instance.py [PTP dual NIC config] Enable ptpinstance functionality 2022-01-20 12:20:14 -05:00
ptp_instance_shell.py Added synce4l configuration support 2023-02-21 09:37:28 -05:00
ptp_interface.py Fix ptp and kube_rootca paths 2022-05-05 18:05:39 -03:00
ptp_interface_shell.py [PTP dual NIC config] Manage parameter life-cycle 2022-01-19 13:18:24 -03:00
ptp_parameter.py [PTP dual NIC config] Changes from new data model 2021-12-23 15:59:02 -03:00
ptp_parameter_shell.py [PTP dual NIC config] Manage parameter life-cycle 2022-01-19 13:18:24 -03:00
ptp_shell.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
registry_image.py Add error message to system registry-image-delete 2023-10-05 10:29:29 -03:00
registry_image_shell.py Add error message to system registry-image-delete 2023-10-05 10:29:29 -03:00
remotelogging.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
remotelogging_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
restore.py Introduce CLI commands for system restore control 2020-10-09 16:54:04 +03:00
restore_shell.py Introduce CLI commands for system restore control 2020-10-09 16:54:04 +03:00
route.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
route_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
sdn_controller.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
sdn_controller_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
service_parameter.py Apply sssd service parameters without lock/unlock 2022-10-27 19:26:56 +00:00
service_parameter_shell.py Set section as optional parameter for apply cli 2022-11-01 20:12:52 +00:00
shell.py CLI commands for HA phc2sys control 2023-08-08 16:38:21 -04:00
sm_service.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
sm_service_nodes.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
sm_service_nodes_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
sm_service_shell.py F841 local variable 'X' is assigned to but never used 2021-12-20 13:17:26 -05:00
sm_servicegroup.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
sm_servicegroup_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
storage_backend.py Introduce rook ceph 2021-01-27 06:46:02 +08:00
storage_backend_shell.py Fix system cluster-show error updating string encoding 2022-12-06 09:47:54 -05:00
storage_ceph.py Allow configurable ceph storage backend network 2021-05-07 14:31:39 +03:00
storage_ceph_external.py Add support for external Ceph 2018-07-31 15:48:43 -04:00
storage_ceph_rook.py Introduce rook ceph 2021-01-27 06:46:02 +08:00
storage_external.py Convert cgtsclient from setuptools to pbr. Add tox. 2018-06-28 22:07:37 -04:00
storage_file.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
storage_lvm.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
storage_tier.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
storage_tier_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00
upgrade.py Add function to read output script for subclouds 2023-05-30 16:02:26 -03:00
upgrade_shell.py Remove shebang from non-executable scripts in cgts-client 2019-09-19 18:26:31 -05:00