App w/ "timing: pre" updating when new version does not support current k8s version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Brief Description
-----------------
When doing a k8s upgrade, an app that has a new version in the /usr/local/
Severity
-----------------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
-----------------
check current k8s version
[sysadmin@
+------
| version | target | state |
+------
| v1.24.4 | False | unavailable |
| v1.25.3 | False | unavailable |
| v1.26.1 | True | active |
| v1.27.5 | False | available |
| v1.28.4 | False | available |
| v1.29.2 | False | available |
+------
create an app or update the metadata of an available app, e.g : metrics-server:
metadata:
app_name: metrics-server
app_version: 24.09-54
helm_repo: stx-platform
maintain_
upgrades:
auto_update: true
k8s_upgrades:
auto_update: true
timing: pre
supported_
minimum: 1.24.4
maximum: 1.27.5
behavior:
platform_
upload and apply the app
create an updated version of the same app with timing: pre in the metadata and the minimum supported_
metadata:
app_name: metrics-server
app_version: 24.09-55
helm_repo: stx-platform
maintain_
upgrades:
auto_update: true
k8s_upgrades:
auto_update: true
timing: pre
supported_
minimum: 1.27.5
behavior:
platform_
start a k8s upgrade to the intended version, 1.27.5 in this scenario
system kube-upgrade-start v1.27.5
system kube-pre-
Expected Behavior
-----------------
app should not update
Actual Behavior
-----------------
app is updated to the newer version
Reproducibility
-----------------
Reproducible
System Configuration
-----------------
AIO-SX
Load info (eg: 2022-03-
sysadmin@
SW_VERSION="24.09"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID=
SRC_BUILD_
BUILD_BY="jenkins"
BUILD_NUMBER="769"
BUILD_DATE=
Last Pass
-----------------
N/A
Timestamp/Logs
-----------------
some upgrade logs:
Every 2.0s: system kube-upgrade-show controller-0: Fri Jun 7 17:20:18 2024+--
| Property | Value |
+------
| uuid | 340d8ec6-
| from_version | v1.26.1 |
| to_version | v1.27.5 |
| state | pre-updated-apps |
| created_at | 2024-06-
| updated_at | 2024-06-
+------
| metrics-server | 24.09-55 | metrics-
| fluxcd-manifests | applied | Application update from version 24.09
-54 to version 24.09-55 completed. |[sysadmin@
[sysadmin@
[sysadmin@
+------
| Property | Value |
+------
| uuid | 340d8ec6-
| from_version | v1.26.1 |
| to_version | v1.27.5 |
| state | upgrade-aborted |
| created_at | 2024-06-
| updated_at | 2024-06-
+------
Alarms
-----------------
N/A
Test Activity
-----------------
Feature Testing
Workaround
-----------------
N/A
Changed in starlingx: | |
status: | New → In Progress |