Last Sync Result: Sync failed with multi level root-app-of-apps & sync-waves #9988
Closed
1 task done
Labels
bug
Something isn't working
Checklist:
argocd version
.Describe the bug
We have a self-managed, multi (2) level app-of-app setup which utilizes sync-waves for initial bootstrapping. More ore less one can thinks of:
Root-App-Of-Apps->Intermediated-App-Of-Apps->Leaf-Apps
As pointed out the Root-App-Of-Apps is a self-managed ArgoCD. In addition to the Intermediated-App-Of-Apps it also manages several base apps.
So to be able to work with sync-waves we added a custom health check, as the base code got removed 3781.
Now what happens is when a Leaf-Apps fails to deploy, it gets degraded. The health state gets properly propagated upwards the App-Of-App chain and the corresponding Intermediated-App-Of-Apps and the Root-App-Of-Apps get degraded too.
The interesting part is actually the
operationState
(Last Sync Result). The failing Leaf-Apps is synced ok (aka.operationState.phase: Succeeded
). The corresponding Intermediated-App-Of-App also gets synced ok. BUT the Root-App-Of-Apps fails with: "one or more synchronization tasks completed unsuccessfully" (aka.operationState.phase: Failed
).Once I remove the degraded Intermediated-App-Of-App the operationState of the Root-App-Of-Apps succeeds. The same thing happens once I remove the lua health script.
What I noticed is that the status that the Root-App-Of-Apps
operationState.syncResult[name==Root-App-Of-Apps].hookPhase: Failed
.To Reproduce
Basically the description should provided valid steps to reproduce the issue. Otherwise please get back to me so I can enhance the description or provide more input.
Expected behavior
I would expect that the Root-App-Of-Apps
operationState
succeeds, as it got synced ok.Screenshots
Root-App-Of-Apps:
![grafik](https://user-images.githubusercontent.com/4414974/178955791-7e43404f-b86a-45ae-ae09-83e66c855f5d.png)
Intermediated-App-Of-App
![grafik](https://user-images.githubusercontent.com/4414974/178955953-052ceca0-9358-45d6-82c9-de41c3d648c5.png)
Leaf-App
![grafik](https://user-images.githubusercontent.com/4414974/178956098-86815168-1f9f-405c-b4ce-e6aaf91ed2cb.png)
Version
The text was updated successfully, but these errors were encountered: