To fix this we added a new state to kube_host_upgrade.status
defined as kubernetes.KUBE_HOST_UPGRADED_KUBELET. This state will
indicate that the kubelet was upgraded for a certain host.
When we complete the upgrade (i.e system kube-upgrade-complete)
the per-host kube_host_upgrade.status values will be set to None
so that they're blank in prep for the next k8s upgrade.
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/809158 /opendev. org/starlingx/ config/ commit/ 02535937a26c752 4207468efe66dc5 2dd72bb95f
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 02535937a26c752 4207468efe66dc5 2dd72bb95f
Author: Mihnea Saracin <email address hidden>
Date: Wed Sep 15 12:06:27 2021 +0300
Use upgraded kubelet on unlock after kubelet upgrade
When unlocking after kubelet upgrade, there is a problem here: /opendev. org/starlingx/ config/ src/commit/ c784e1ca9a8bd82 e86f889b7f621d2 363b1393af/ sysinv/ sysinv/ sysinv/ sysinv/ puppet/ kubernetes. py#L383 HOST_UPGRADING_ KUBELET and the kubelet version is taken from complete)
https:/
the kube_host_upgrade status is no longer equal to
KUBE_
the DB which is the old one.
The kubelet value from the DB is updated when the k8s upgrade is
complete. (i.e after doing: system kube-upgrade-
To fix this we added a new state to kube_host_ upgrade. status KUBE_HOST_ UPGRADED_ KUBELET. This state will
defined as kubernetes.
indicate that the kubelet was upgraded for a certain host.
When we complete the upgrade (i.e system kube-upgrade- complete) upgrade. status values will be set to None
the per-host kube_host_
so that they're blank in prep for the next k8s upgrade.
Closes-Bug: 1943690 eed76ab9a5370cd 293f8a5784a
Change-Id: Ifdb5c51649831d
Signed-off-by: Mihnea Saracin <email address hidden>