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
2.6 RC1: multi source application needs a hard refresh to deploy changes #11772
Comments
It also returns this log line #11770 (now fixed) |
Just confirmed that order doesn't matter. Even if the values-file source is first, the application controller doesn't catch the new commit. |
@marcportabellaclotet-mt what "hard-refresh" means ? you had to run argo CLI or use the web UI I ask this 'cause in my case, I don't use the CLI nor the web UI, so how to hard-refresh ? |
In my case, my Application stays in ...
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true Before, when I was using a |
@endersonmaia can you provide your full Application spec? I think @marcportabellaclotet-mt is probably triggering a hard refresh in the UI or CLI. So if you're running Argo CD headless, I think you're just stuck if the application controller doesn't see the new commit. |
It doesn't work even with the "original" commit, since I'm not even sending a new commit to the values repository. (should I open a new issue?) |
Yep! Sounds like a Different Thing. 🙂 |
This was generated from an apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: my-app
namespace: argocd
spec:
destination:
namespace: my-app
server: https://kubernetes.default.svc
project: default
sources:
- chart: my-chart
helm:
releaseName: my-app
valueFiles:
- $values/myorg-aws-dev.values.yaml
- $values/network.values.yaml
- $values/my-dapp/network.yaml
values: |
ingress:
subDomain: network.dev.myorg.io
repoURL: https://myorg.github.io/helm-charts
targetRevision: 0.4.1
- path: ./echo-python/
ref: values
repoURL: https://github.com/myorg-private-repo/deployments
targetRevision: poc/argocd-applicationset
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true |
@endersonmaia any chance you can put together an app to reproduce the bug which uses publicly-available sources? |
I am using hard-refresh from UI. It also can be done via cli. |
I'm facing the same problem with a simple app:
|
I can second that 😉 I can reproduce it with publicly-available sources like from @messiahUA, bt also with my companies apps ;) Cheers |
I'm also facing this issue |
Thanks for the confirmations! We'll get this sorted before 2.6 GA. |
any progress on this issue? |
No progress yet. 2.6 GA is currently anticipated Feb. 6. |
Michael, thank you for this update. |
@yebolenko yep! I consider this a blocking bug for the multi-source feature. |
Draft PR is up for the fix. This should work for non-webhook refreshes. Unfortunately, I think webhooks won't be fixed by 2.6 GA. Updates from referenced repos won't go out of sync until the next reconciliation cycle. |
Thanks @crenshaw-dev. Do you mean to say that webhooks are broken for multi source applications or across the board in 2.6 GA? I can live with it if it's just multi source ones. |
Not broken across the board, just for multi-source apps. And I believe the webhook will only be missed if it's for a referenced source. Top-level sources should be fine. |
* fix multi-source refresh Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * serialize nil and empty resolvedRevisions the same to avoid cache misses Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * more consistent naming Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * document duplication Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * add todo Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --------- Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
* fix multi-source refresh Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * serialize nil and empty resolvedRevisions the same to avoid cache misses Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * more consistent naming Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * document duplication Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * add todo Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --------- Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@crenshaw-dev I believe I've hit the same issue @endersonmaia did, which does not seem to be fixed by #12217 (or at least it was not fixed by the commit I built earlier today from it). I've opened #12301 about it with a reproducer. |
@crenshaw-dev I'm on v2.6.1+3f143c9 but this issue is still reproducible. Updating the values.yaml in GIT does not trigger a resync. |
* fix multi-source refresh Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * serialize nil and empty resolvedRevisions the same to avoid cache misses Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * more consistent naming Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * document duplication Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * add todo Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --------- Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Signed-off-by: schakrad <chakradari.sindhu@gmail.com>
@lsoica is this a case of a missed webhook, or does the 3min reconciliation also miss the change? |
@crenshaw-dev I think my comment was before this merge #12576 With that merge included, it does not reproduce anymore on my current use cases. |
I'm experiencing this issue on Here is the Application manifest:
|
Checklist:
argocd version
.Describe the bug
When creating a multi source application, argocd needs a hard refresh to deploy changes, when changes are applied in the sources.
To Reproduce
Create an application with helm source and values from git repo.
Once the app is deployed, upgrading the values in the git repo, does not trigger any change in argocd.
In order to make argocd aware of this change, a hard-refresh is needed.
Expected behavior
Argocd controller should note that the repo is out of sync, without the need of a hard-refresh.
The text was updated successfully, but these errors were encountered: