AppFwk: No deletion order defined when removing a fluxcd application
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Triaged
|
Medium
|
Luan Nunes Utimura |
Bug Description
Brief Description
-----------------
When trying to create a cleanup Job for stx-openstack it was noticed that there is no order defined for the application helm release removal [1].
It looks like something that could be enhanced. If there is a dependsOn chain for installation, maybe that reverse chain should be respected for removal [2].
[1] https:/
[2] https:/
Severity
--------
Minor: It will only affect applications when it is needed to enforce a removal order.
Steps to Reproduce
------------------
* Install a system and apply an stx-openstack app with the following cherry pick: https:/
(It is a cleanup Job that relies on resources of other helm releases to perform its actions)
Expected Behavior
------------------
The dependsOn chain should be respected to remove helm releases and the Job would be able to spawn and run its script.
Application remove should work.
Actual Behavior
----------------
The dependsOn chain is not respected when removing helm releases, so the cleanup Job is hangs waiting for other helm releases' Services that are no longer running.
Application remove fails.
Reproducibility
---------------
Reproducible with a custom build of the stx-openstack that includes https:/
System Configuration
-------
AIO-SX
Branch/Pull Time/Commit
-------
master:
* starlingx/
+ https:/
Last Pass
---------
N/A - Although this Job used to work with Armada, now we need to adapt it to FluxCD.
Timestamp/Logs
--------------
sysinv 2022-12-19 20:01:29.772 103223 INFO sysinv.
sysinv 2022-12-19 20:01:29.931 103223 INFO sysinv.
sysinv 2022-12-19 20:01:29.931 103223 INFO sysinv.
sysinv 2022-12-19 20:01:31.370 103223 INFO sysinv.
sysinv 2022-12-19 20:01:31.380 103223 ERROR sysinv.
neutron-
Container
(...)
State: Waiting
Reason: PodInitializing
Ready: False
$ kubectl -n openstack logs -f neutron-
Entrypoint WARNING: 2022/12/21 16:57:27 entrypoint.go:72: Resolving dependency Service rabbitmq in namespace openstack failed: endpoints "rabbitmq" not found.
Entrypoint WARNING: 2022/12/21 16:57:27 entrypoint.go:72: Resolving dependency Service keystone-api in namespace openstack failed: endpoints "keystone-api" not found.
Entrypoint WARNING: 2022/12/21 16:57:27 entrypoint.go:72: Resolving dependency Service mariadb in namespace openstack failed: endpoints "mariadb" not found.
Entrypoint WARNING: 2022/12/21 16:57:27 entrypoint.go:72: Resolving dependency Service nova-api in namespace openstack failed: endpoints "nova-api" not found.
Test Activity
-------------
Developer Testing
Workaround
----------
None
tags: | added: stx.8 |
tags: | added: stx.apps stx.distro.openstack |
Changed in starlingx: | |
assignee: | nobody → Luan Nunes Utimura (lutimura) |
tags: |
added: stx.8.0 removed: stx.8 |
Changed in starlingx: | |
status: | In Progress → Triaged |
importance: | Undecided → Low |
importance: | Low → Medium |
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/868928
Review: https:/