PreSync phase gets confused (and then stuck) when deleting PreSync resources #15292
Open
3 tasks done
Labels
bug
Something isn't working
Checklist:
argocd version
.Describe the bug
Sometimes, when deleting PreSync hook resources with a BeforeHookCreation deletion policy, the whole sync can become stuck. The only fix is to manually delete the resource using kubectl which usually kicks the sync back into gear. Sometimes we need to do this and then manually terminate and start the sync again.
Possibly related to argoproj/gitops-engine#461 but really not sure.
To Reproduce
I've tried, really I have, to get some reproducible steps but I can't figure out what's going on.
Expected behavior
The PreSync resources should be deleted, then recreated, then the sync should continue as normal.
Version
Logs
You can see in the logs that the sync
00008-tkXZv
seems to delete the ServiceAccount and ExternalSecret ok:Then there's some weirdness... Maybe the selfHeal functionality is interfering here?
Then finally the sync reports it's complete, but it hasn't even started the sync phase yet:
After this another sync starts:
But this time it looks like it fails completely when it attempts to update the ServiceAccount:
This cycle just continues until I manually delete the ServiceAccount from the cluster and it suddenly kicks back into life.
The text was updated successfully, but these errors were encountered: