Skip to content
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

Can't terminate sync outside of sync window #20799

Open
hanikesn opened this issue Nov 14, 2024 · 2 comments
Open

Can't terminate sync outside of sync window #20799

hanikesn opened this issue Nov 14, 2024 · 2 comments
Assignees
Labels
bug Something isn't working component:sync version:2.12 Latest confirmed affected version is 2.12

Comments

@hanikesn
Copy link

Describe the bug

Can't terminate outstanding sync outside of sync window.

To Reproduce

  1. Configure a sync window for an application and enable auto sync
  2. Apply an update to the Application using kubectl with the following options:
    apiVersion: argoproj.io/v1alpha1
    kind: Application
    metadata:
      # ...
    operation: null
    spec:
      # ...
      source:
        # ...
      syncPolicy:
        automated:
          allowEmpty: false
          prune: true
          selfHeal: true
        syncOptions:
          - ApplyOutOfSyncOnly=true
          - FailOnSharedResource=true
          - PruneLast=true
          - RespectIgnoreDifferences=true
  3. The sync will get started, but is blocked Sync operation blocked by sync window
  4. Try terminating the sync in the web interface

Expected behavior

Even outside a sync window I'm able to terminate an outstanding sync.

Screenshots

image

Version

v2.12.6+4dab5bd
@hanikesn hanikesn added the bug Something isn't working label Nov 14, 2024
@andrii-korotkov-verkada andrii-korotkov-verkada added version:2.12 Latest confirmed affected version is 2.12 component:sync labels Nov 14, 2024
@andrii-korotkov-verkada andrii-korotkov-verkada added the more-information-needed Further information is requested label Nov 15, 2024
@andrii-korotkov-verkada
Copy link
Contributor

I've checked the code and it seems like TerminateOperation has a separate path from checking a sync window. I think Sync operation blocked by sync window refers to the sync attempt, not the termination attempt. Can you share more details about what happens after you terminate the sync? I see it's in the phase "Terminating", so it may take some time. But I'm curious what eventually happens after that.

@hanikesn
Copy link
Author

But I'm curious what eventually happens after that.

It's in this state until the sync window opens. I saw a pre-sync hook stuck in pending as well. I couldn't reproduce right now. But will closely monitor when it happens again in our CD pipeline.

@andrii-korotkov-verkada andrii-korotkov-verkada removed the more-information-needed Further information is requested label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:sync version:2.12 Latest confirmed affected version is 2.12
Projects
None yet
Development

No branches or pull requests

2 participants