-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Argo CD considers PreSync
phase finished even though the Job was just created
#10077
Comments
I've tracked down some of the responsible code, but found nothing wrong with it: |
There is also Kubernetes side code for our version (EKS 1.20.5):
|
Generally it seems like the only way:
|
Hi, can you please add the definition (YAML) of the PreSync job? |
done, you can find it collapsed at the bottom of description |
Could it be that events are received/processed out of order? |
maybe we could clear cache in here? https://github.com/argoproj/gitops-engine/blob/2bc3fef13e0712cf177ba6cbcfb52283f3d9ca73/pkg/sync/sync_context.go#L1085-L1112 |
this might be caused by hardcoded (low amount of) processors, see #10458 for a fix |
this is heavily related to:
|
note: seems as if the issue stopped happening after we switched to rendering helm templates ahead of time (committing manifests to git + using |
…ing until recreated fixes argoproj#10077 Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
fixes argoproj#446 closes argoproj/argo-cd#10579 closes argoproj/argo-cd#10077 Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
- fixes argoproj#446 - closes argoproj/argo-cd#10579 - original issue argoproj/argo-cd#10077 Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
- fixes argoproj#446 - closes argoproj/argo-cd#10579 - original issue argoproj/argo-cd#10077 Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
- fixes argoproj#446 - closes argoproj/argo-cd#10579 - original issue argoproj/argo-cd#10077 Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
- fixes argoproj#446 - closes argoproj/argo-cd#10579 - original issue argoproj/argo-cd#10077 Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
- fixes argoproj#446 - closes argoproj/argo-cd#10579 - original issue argoproj/argo-cd#10077 Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
Signed-off-by: Thomas Bernhard <thomas_bernhard@live.at>
Signed-off-by: Thomas Bernhard <thomas_bernhard@live.at>
Checklist:
argocd version
.Describe the bug
I've noticed a weird behavior blocking our deployments every now and then (couple times a day), where ArgoCD considers
PreSync
hook finished even thoughJob
was just created. TheJob
sPod
hangs up on lack ofSecret
(throughExternalSecret
), that was deleted becausePreSync
supposedly finished.I've asked about it on Slack at https://cloud-native.slack.com/archives/C01TSERG0KZ/p1658409808237339 , but didn't find the cause.
Example timeline
Extra info:
Seems more or less related to:
To Reproduce
No idea, it happens randomly in the ballpark of once every 10 deployments
Expected behavior
Argo CD does not consider
PreSync
phase finished until theJob
has started and completed (by either success or failure).Version
image:
quay.io/argoproj/argocd:v2.3.3
, not sure why argocd version posts 2.4.4 (it's the CLI's version).Logs
Google Sheet gathering following information:
Job manifest
The text was updated successfully, but these errors were encountered: