config/sysinv/sysinv/sysinv/scripts
Carmen Rata 8cd5f76083 Fix subcloud going offline if certificates expire
K8s certificates rotation after they reach the expiry date requires
restart of sysinv services, both sysinv-conductor and sysinv-inv.
The sysinv services cache k8s client object and get credentials
from admin.conf. Restaring only the sysinv-conductor and missing the
restart of the sysinv api causes the certificates not to be updated
and this way affecting subcloud management functionality.
The fix updates the script "kube-cert-rotation.sh" to restart all
sysinv services and not only sysinv-conductor.
The script "kube-cert-rotation.sh" requires to be installed with
"700" permission.

Tests performed:
PASS: kube-cert-rotation.sh script gets installed correctly in
directory /usr/bin and is set with permissions "700".
PASS: kube-cert-rotation.sh script executes without errors when run
to renew K8s certificates.
PASS: After K8s certificates are renewed, all sysinv services get
restarted.
PASS: Executed successfully kube-cert-rotation.sh in AIO-SX and DC
system configurations.

Closes-Bug: 2002452
Signed-off-by: Carmen Rata <carmen.rata@windriver.com>
Change-Id: Ie74a47226280b9362558ebfa158a4bf91209e957
2023-01-20 02:57:01 +00:00
..
ceph_k8s_update_monitors.sh Adding AIO-SX to AIO-DX migration steps patching existing PVs 2021-05-09 10:58:59 -04:00
kube-cert-rotation.sh Fix subcloud going offline if certificates expire 2023-01-20 02:57:01 +00:00
manage-partitions Add ZeroMQ RPC backend 2022-11-24 13:28:01 -03:00
partition_info.sh Fix the partition_info.sh script 2022-12-07 22:26:07 +00:00
query_pci_id Address python3 string issues with subprocess 2021-08-11 10:59:49 -04:00
sysinv-api Improve log messages on sysinv-api ocf script 2022-11-07 10:26:21 -03:00
sysinv-api.service StarlingX open source release updates 2018-05-31 07:35:52 -07:00
sysinv-conductor debian: Update sysinv OCF scripts to handle python3 2022-03-31 14:57:13 -04:00
sysinv-conductor.service StarlingX open source release updates 2018-05-31 07:35:52 -07:00
validate-platform-backup.sh Support SX upgrades starting with 30GB partition 2021-11-24 17:47:13 -06:00