commit 948c93ae7355daf17633304a56bcc11bf4fffc86
Author: Igor Soares <email address hidden>
Date: Wed Oct 25 16:06:48 2023 -0300
Mark config as incomplete when shutting down k8s
Delete /etc/platform/.initial_k8s_config_complete file to signal that
configuration is incomplete when shutting down Kubernetes during
bootstrap replays.
The bootstrap playbook creates the
/etc/platform/.initial_k8s_config_complete file when bringing Kubernetes
up. This file, however, was not being removed when bringing it down
during replays which, in turn, was preventing bootstrap from succeeding.
Deleting service parameters during bootstrap replays relies on the
.initial_k8s_config_complete file to tell whether configmaps should be
deleted. If the file is not removed then the service parameter delete
function mistakenly considers that Kubernetes is running when it is not,
thus causing a failure when attempting to delete configmaps.
Test Plan:
PASS: build-pkgs -a && build-image
PASS: AIO-SX full deployment without bootstrap replay
PASS: AIO-SX full deployment with bootstrap replay
PASS: Install AIO-SX load
Add apiserver_extra_args:default-not-ready-toleration-seconds
to localhost.yml
Run boostrap playbook
Replay boostrap playbook
Run 'system service-parameter-list' and check if default-not-ready-toleration-seconds is listed
Check if default-not-ready-toleration-seconds was added to kube-apiserver parameters
Unlock node
Closes-Bug: 2039863
Change-Id: I29f7cc1766cb8c218908bfb1c130b0a8507a9965
Signed-off-by: Igor Soares <email address hidden>
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/899303 /opendev. org/starlingx/ ansible- playbooks/ commit/ 948c93ae7355daf 17633304a56bcc1 1bf4fffc86
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 948c93ae7355daf 17633304a56bcc1 1bf4fffc86
Author: Igor Soares <email address hidden>
Date: Wed Oct 25 16:06:48 2023 -0300
Mark config as incomplete when shutting down k8s
Delete /etc/platform/ .initial_ k8s_config_ complete file to signal that
configuration is incomplete when shutting down Kubernetes during
bootstrap replays.
The bootstrap playbook creates the platform/ .initial_ k8s_config_ complete file when bringing Kubernetes
/etc/
up. This file, however, was not being removed when bringing it down
during replays which, in turn, was preventing bootstrap from succeeding.
Deleting service parameters during bootstrap replays relies on the k8s_config_ complete file to tell whether configmaps should be
.initial_
deleted. If the file is not removed then the service parameter delete
function mistakenly considers that Kubernetes is running when it is not,
thus causing a failure when attempting to delete configmaps.
Test Plan: extra_args: default- not-ready- toleration- seconds parameter- list' and check if
default- not-ready- toleration- seconds is listed not-ready- toleration- seconds was added to
kube- apiserver parameters
PASS: build-pkgs -a && build-image
PASS: AIO-SX full deployment without bootstrap replay
PASS: AIO-SX full deployment with bootstrap replay
PASS: Install AIO-SX load
Add apiserver_
to localhost.yml
Run boostrap playbook
Replay boostrap playbook
Run 'system service-
Check if default-
Unlock node
Closes-Bug: 2039863
Change-Id: I29f7cc1766cb8c 218908bfb1c130b 0a8507a9965
Signed-off-by: Igor Soares <email address hidden>