Add logic to the platform::kubernetes::configuration method
to generate the kubelet's systemd override file. This
change ensures the file is generated every time a host is
unlocked. This facilitates delivery of systemd service changes
via patches to existing installs.
This change is needed by bug 2027810 to ensure that the
orphan volume cleanup script is executed as part of the systemd
ExecStartPre kubelet service override.
Pass: - Update the kube-stx-override.conf.erb file
- Lock the AIO-SX host
- Unlock the AIO-SX host
- Verify that kube-stx-override.conf has been updated
- Verify AIO-SX fresh install
- Verify Standard Duplex lock/unlock and
verify that kube-stx-override.conf has been updated
- Verify Standard Duplex Install
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/896154 /opendev. org/starlingx/ stx-puppet/ commit/ f426f5c67a22d9e edd941b6033e24c f2cb25f61a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit f426f5c67a22d9e edd941b6033e24c f2cb25f61a
Author: Gleb Aronsky <email address hidden>
Date: Mon Sep 18 05:17:53 2023 -0700
Update kubelet system overrides on unlock
Add logic to the platform: :kubernetes: :configuration method
to generate the kubelet's systemd override file. This
change ensures the file is generated every time a host is
unlocked. This facilitates delivery of systemd service changes
via patches to existing installs.
This change is needed by bug 2027810 to ensure that the
orphan volume cleanup script is executed as part of the systemd
ExecStartPre kubelet service override.
This bug is an update for the this reverted commit: /review. opendev. org/c/starlingx /stx-puppet/ +/895364
https:/
Test Plan:
Pass: - Update the kube-stx- override. conf.erb file override. conf has been updated override. conf has been updated
- Lock the AIO-SX host
- Unlock the AIO-SX host
- Verify that kube-stx-
- Verify AIO-SX fresh install
- Verify Standard Duplex lock/unlock and
verify that kube-stx-
- Verify Standard Duplex Install
Partial-Bug: 2027810 96acb2e5f1540ca c0be3ed34ec
Change-Id: I4e47bce634c213
Signed-off-by: Gleb Aronsky <email address hidden>