-
Notifications
You must be signed in to change notification settings - Fork 7.3k
CLI app sync --retry-limit does not work #4505
Copy link
Copy link
Open
Labels
answeredQuestions/Issues that are answered awaiting to be closedQuestions/Issues that are answered awaiting to be closedcannot-reproduceWorks as intended, or unable to reproduceWorks as intended, or unable to reproducequestionIssue is a question or reach for supportIssue is a question or reach for support
Metadata
Metadata
Assignees
Labels
answeredQuestions/Issues that are answered awaiting to be closedQuestions/Issues that are answered awaiting to be closedcannot-reproduceWorks as intended, or unable to reproduceWorks as intended, or unable to reproducequestionIssue is a question or reach for supportIssue is a question or reach for support
Type
Fields
Give feedbackNo fields configured for issues without a type.
Checklist:
argocd version.Describe the bug
argocd app sync myapp --retry-limit 5 does not work as expected. It does not seem to retry at all if another sync or operation is in progress. If another sync is running already via autosync or manually started in the UI the CLI will error out and exit without completing the sync.
To Reproduce
Start manual sync of an app in the ui, at the same time slightly after the ui sync has started manually sync the app with the command argocd app sync myapp --retry-limit 5. The CLI will not retry the sync and exit with a code of 20 and output the following:
Expected behavior
CLI retries the sync properly with backoffs and does not exit with an error code.
Version
argocd: v1.7.7+33c93ae BuildDate: 2020-09-29T04:59:10Z GitCommit: 33c93aea0b9ee3d02fb9703cd82cecce3540e954 GitTreeState: clean GoVersion: go1.14.1 Compiler: gc Platform: windows/amd64 argocd-server: v1.7.7+33c93ae BuildDate: 2020-09-29T04:56:23Z GitCommit: 33c93aea0b9ee3d02fb9703cd82cecce3540e954 GitTreeState: clean GoVersion: go1.14.1 Compiler: gc Platform: linux/amd64 Ksonnet Version: v0.13.1 Kustomize Version: {Version:kustomize/v3.6.1 GitCommit:c97fa946d576eb6ed559f17f2ac43b3b5a8d5dbd BuildDate:2020-05-27T20:47:35Z GoOs:linux GoArch:amd64} Helm Version: version.BuildInfo{Version:"v3.2.0", GitCommit:"e11b7ce3b12db2941e90399e874513fbd24bcb71", GitTreeState:"clean", GoVersion:"go1.13.10"} Kubectl Version: v1.17.8