AppFmwk: FluxCD to FluxCD application update doesn't clean up chart releases that are no longer managed from the previous version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Bob Church |
Bug Description
Brief Description
-----------------
While testing application updates, I found that if the new version of the app stops managing a helm chart, the released chart version from the previous version is not cleaned up.
Severity
--------
Major: System/Feature is usable but degraded
Steps to Reproduce
------------------
Create an application update by removing one of the charts in the fluxcd-
With the new application tarball, perform and application-update
Expected Behavior
-----------------
After application-update only the helm releases that are expected to be deployed are present in the helm ls -a -A command. Any helm release only associated with the old application version is removed
Actual Behavior
---------------
All helm releases only associated with the old application are still present
Reproducibility
---------------
100% reproducable
System Configuration
-------
Any (but observed on an AIO-DX)
Last Pass
---------
Previously worked with Armada based applications
Timestamp/Logs
--------------
Error would be produced is:
sysinv 2022-11-07 18:59:44.750 80063 ERROR sysinv.
command terminated with exit code 1
: sysinv.
command terminated with exit code 1
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
2022-11-07 18:59:44.750 80063 ERROR sysinv.
Alarms
------
N/A
Test Activity
-------------
Developer Testing
Workaround
----------
Use helm delete command to clean up old helm releases. Use kubectl to clean up helmrelease CRDs
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/882947
Review: https:/