-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync waves complete when objects are still "Progressing" #4577
Comments
Because of numerous bugs like this with the app-of-apps pattern, we're actually removing the health status for Application resources in the v1.8 release -- we can't seem to get the sync waves with apps working correctly. The long term solution is to introduce a AppSync CRD which can deal with coordinating syncing of multiple apps, correctly. |
Thanks for the heads up Jesse, we were investigating a design that relied on that status being accurate so very glad to know early. Looking forward to reading the spec mentioned in #1283. |
@jessesuen Is there any known workaround to orchestrate the deployment order of applications in the meantime? |
We created a custom health check for the argoproj.io/Application:
health.lua: |
hs = {}
if obj.status ~= nil then
if obj.status.sync.comparedTo.source.targetRevision ~= obj.spec.source.targetRevision then
hs.status = "Progressing"
hs.message = "Application Syncing"
return hs
else
if obj.status.health.status == "Healthy" and obj.status.sync.status == "Synced" then
hs.status = "Healthy"
hs.message = "Application Ready"
return hs
end
end
end
hs.status = "Progressing"
hs.message = "Waiting for Application"
return hs |
@ronaldour I have replaced the default application health check logic with yours and all apps got stuck in "Progressing" and "Waiting for Application" status , even though they are synced correctly. So, looks like there is something wrong with your code where as with the below code status is being reported correctly
And if you notice, all of them are synced, |
If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a
question in argocd slack channel.
Checklist:
argocd version
.Describe the bug
When using the app of apps pattern with sync waves the sync waves completes when the application is marked as "Synced" but doesn't wait for the application to be "Healthy". If the application contains a deployment this results in the sync wave progressing when the new pods are not in a healthy state.
To Reproduce
Clone https://github.com/hintofbasil/ArgoCD-sync-waves-test
Apply
app_of_apps.yaml
into a cluster with ArgoCD. The app of apps will behave as expected - it will sync the first application, wait for the pod to reach a ready state, sync the second application, wait for the pod to reach a ready state, then mark itself as healthy and synced.Change the delay parameter in
app_of_apps.yaml
then apply the resource. This time the pods will be updated at the same time.Expected behavior
On the second apply of the app of apps I would expect the first pod to reach a ready state before the second sync wave beings.
Screenshots
If applicable, add screenshots to help explain your problem.
Version
Logs
The text was updated successfully, but these errors were encountered: