commit 8170a07bca3e7e5c425240174c89cc1354d96696
Author: Rei Oliveira <email address hidden>
Date: Thu Aug 3 14:07:17 2023 -0300
Fix error when running k8s cert rotation on c1
Review https://review.opendev.org/c/starlingx/config/+/884627
introduced parameter --config /etc/kubernetes/kubeadm.yaml for
kubeadm certs check-expiration, which generates a better output
without warnings, that are print when run without.
File /etc/kubernetes/kubeadm.yaml, however, is not present on
controller-1 so this is not a good solution. This commit removes the
usage of the parameter so that the script can work on both environments.
This script runs as a cron job only on controller nodes.
PASS: Trigger execution of script kube-cert-rotation.sh on c0, verify
that it runs without error. Run 'fm alarm-list' and verify no 'Kubernetes certificates renewal failed are present'
PASS: Trigger execution of script kube-cert-rotation.sh on c1, verify
that it runs without error. Run 'fm alarm-list' and verify no 'Kubernetes certificates renewal failed are present'
Closes-Bug: 2029506
Closes-Bug: 2029378
Signed-off-by: Rei Oliveira <email address hidden>
Change-Id: I1ea458163dc4250a3bc3550eaaa68d314224023e
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/890442 /opendev. org/starlingx/ config/ commit/ 8170a07bca3e7e5 c425240174c89cc 1354d96696
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 8170a07bca3e7e5 c425240174c89cc 1354d96696
Author: Rei Oliveira <email address hidden>
Date: Thu Aug 3 14:07:17 2023 -0300
Fix error when running k8s cert rotation on c1
Review https:/ /review. opendev. org/c/starlingx /config/ +/884627 /kubeadm. yaml for
introduced parameter --config /etc/kubernetes
kubeadm certs check-expiration, which generates a better output
without warnings, that are print when run without.
File /etc/kubernetes /kubeadm. yaml, however, is not present on
controller-1 so this is not a good solution. This commit removes the
usage of the parameter so that the script can work on both environments.
This script runs as a cron job only on controller nodes.
PASS: Trigger execution of script kube-cert- rotation. sh on c0, verify
'Kubernetes certificates renewal failed are present' rotation. sh on c1, verify
'Kubernetes certificates renewal failed are present'
that it runs without error. Run 'fm alarm-list' and verify no
PASS: Trigger execution of script kube-cert-
that it runs without error. Run 'fm alarm-list' and verify no
Closes-Bug: 2029506
Closes-Bug: 2029378
Signed-off-by: Rei Oliveira <email address hidden> 0a3bc3550eaaa68 d314224023e
Change-Id: I1ea458163dc425