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

Application sync loops leaving the App in OutOfSync status #21497

Open
offzale opened this issue Jan 15, 2025 · 3 comments
Open

Application sync loops leaving the App in OutOfSync status #21497

offzale opened this issue Jan 15, 2025 · 3 comments
Labels
bug Something isn't working component:application-controller more-information-needed Further information is requested version:2.13 Latest confirmed affected version is 2.13

Comments

@offzale
Copy link

offzale commented Jan 15, 2025

Context

We have an app of apps, with auto-sync enabled, managing several appsets, which represent a service each. These appsets are composed of two applications that are rolled out using rollingSync. The former application deploys infra resources (DBs, buckets, etc with crossplane). The latter deploys the service per se (deployments, services, cronjobs, configmaps, etc), and has a pre-sync hook to run database migrations. Both applications in the appsets are composed of multiple sources, an OCI helm chart plus sourcing values.yaml files stored in a GitHub repository.

Describe the bug

Sometimes (I could not find anything in common yet), when the latter app sources have been updated and the app sync gets triggered, the pre-sync hook runs successfully, but at this point the sync finishes "successfully" without applying any of the resources in the main Sync stage. Therefore, it finishes the sync leaving the app in an outofsync state. So, the app sync gets triggered again, with the same result. The loop continues endlessly.

The workaround to get the app synced correctly is non-cascade deleting the buggy app. Then, the appset creates the app again and the sync runs successfully this time.

Custom configuration

argo-cd helm chart custom values
configs:
  cm:
    timeout.reconciliation: 120s
    timeout.reconciliation.jitter: 60s

  params:
    applicationsetcontroller.enable.progressive.syncs: true
    controller.k8sclient.retry.max: "3"
    reposerver.parallelism.limit: 10
    server.k8sclient.retry.max: "3"
    server.insecure: true

controller:
  env:
    - name: WORKQUEUE_BASE_DELAY_NS
      value: "5000000000"
    - name: WORKQUEUE_MAX_DELAY_NS
      value: "25000000000"
    - name: WORKQUEUE_FAILURE_COOLDOWN_NS
      value: "60000000000"

repoServer:
  env:
    - name: ARGOCD_GIT_ATTEMPTS_COUNT
      value: "3"
    - name: ARGOCD_HELM_ALLOW_CONCURRENCY
      value: "true"

Screenshots

ArgoCD notifications screenshot Image

Version

v2.13.3+a25c8a0

Logs

ArgoCD application controller logs
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Refreshing app status (controller refresh requested), level (1)","project":"services","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Resuming in-progress operation. phase: Running, message: waiting for completion of hook batch/Job/accounting-svc-migration","project":"services","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":30,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:06:38Z","time_ms":30}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":27,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:06:38Z","time_ms":27}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Syncing","skipHooks":false,"started":true,"syncId":"00036-Lmypm","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Tasks","syncId":"00036-Lmypm","tasks":"[PreSync/-2 hook /ConfigMap:services/accounting-svc-migration-migrate obj-\u003eobj (,Succeeded,accounting-svc-migration-migrate created), PreSync/-1 hook batch/Job:services/accounting-svc-migration obj-\u003eobj (Synced,Running,job.batch/accounting-svc-migration created), Sync/0 resource /ServiceAccount:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-partner-commissions-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-retry-events-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-dashboard-main obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-partner-commissions obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-retry-events obj-\u003eobj (,,), Sync/0 resource networking.istio.io/VirtualService:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-sidecar obj-\u003eobj (,,)]","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","kind":"Job","level":"info","msg":"Updating resource result, status: 'Synced' -\u003e '', phase 'Running' -\u003e 'Succeeded', message 'job.batch/accounting-svc-migration created' -\u003e 'Reached expected number of succeeded pods'","name":"accounting-svc-migration","namespace":"services","phase":"PreSync","syncId":"00036-Lmypm","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Update successful","project":"services","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","app_status_update_ms":0,"application":"accounting-svc-app","auto_sync_ms":0,"compare_app_state_ms":240,"comparison-level":1,"comparison_with_nothing_ms":0,"dedup_ms":0,"dest-name":"in-cluster","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","diff_ms":200,"git_ms":31,"health_ms":6,"level":"info","live_ms":2,"msg":"Reconciliation completed","normalize_application_ms":2,"patch_ms":22,"persist_app_status_ms":24,"process_finalizers_ms":0,"project":"services","refresh_app_conditions_ms":0,"set_app_managed_resources_ms":48,"setop_ms":0,"settings_ms":0,"sync_ms":0,"time":"2025-01-15T10:06:38Z","time_ms":315}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Succeeded, message: 'waiting for completion of hook batch/Job/accounting-svc-migration' -\u003e 'successfully synced (no more tasks)'","syncId":"00036-Lmypm","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","duration":68122742,"level":"info","msg":"sync/terminate complete","syncId":"00036-Lmypm","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"updated 'argo/accounting-svc-app' operation (phase: Succeeded)","project":"services","time":"2025-01-15T10:06:38Z"}
argocd-application-controller-0 application-controller {"application":"accounting-svc-app","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","level":"info","msg":"Sync operation to  succeeded","reason":"OperationCompleted","time":"2025-01-15T10:06:38Z","type":"Normal"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Refreshing app status (controller refresh requested), level (3)","project":"services","time":"2025-01-15T10:06:54Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:06:54Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":570,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:06:54Z","time_ms":570}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Update successful","project":"services","time":"2025-01-15T10:06:55Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","app_status_update_ms":0,"application":"accounting-svc-app","auto_sync_ms":0,"compare_app_state_ms":1115,"comparison-level":3,"comparison_with_nothing_ms":0,"dedup_ms":1,"dest-name":"in-cluster","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","diff_ms":534,"git_ms":571,"health_ms":3,"level":"info","live_ms":4,"msg":"Reconciliation completed","normalize_application_ms":3,"patch_ms":79,"persist_app_status_ms":81,"process_finalizers_ms":0,"project":"services","refresh_app_conditions_ms":0,"set_app_managed_resources_ms":85,"setop_ms":0,"settings_ms":0,"sync_ms":0,"time":"2025-01-15T10:06:55Z","time_ms":1286}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"updated 'argo/accounting-svc-app' operation (phase: Running)","project":"services","time":"2025-01-15T10:07:03Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Initialized new operation: {\u0026SyncOperation{Revision:,Prune:true,DryRun:false,SyncStrategy:nil,Resources:[]SyncOperationResource{},Source:nil,Manifests:[],SyncOptions:[ApplyOutOfSyncOnly=true CreateNamespace=false FailOnSharedResource=true PruneLast=true],Sources:[]ApplicationSource{},Revisions:[],SelfHealAttemptsCount:0,} {applicationset-controller true} [\u0026Info{Name:Reason,Value:ApplicationSet RollingSync triggered a sync of this Application resource.,}] {-1 \u0026Backoff{Duration:5m,Factor:*1,MaxDuration:5m,}}}","project":"services","time":"2025-01-15T10:07:03Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:07:03Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":661,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:07:04Z","time_ms":661}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Syncing","skipHooks":false,"started":false,"syncId":"00037-OEHXR","time":"2025-01-15T10:07:04Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Tasks (dry-run)","syncId":"00037-OEHXR","tasks":"[PreSync/-2 hook /ConfigMap:services/accounting-svc-migration-migrate nil-\u003eobj (,,), PreSync/-1 hook batch/Job:services/accounting-svc-migration nil-\u003eobj (,,), Sync/0 resource /ServiceAccount:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-partner-commissions-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-retry-events-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-dashboard-main obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-partner-commissions obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-retry-events obj-\u003eobj (,,), Sync/0 resource networking.istio.io/VirtualService:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-sidecar obj-\u003eobj (,,)]","time":"2025-01-15T10:07:04Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc-migration-migrate in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:04Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Job/accounting-svc-migration in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:04Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ServiceAccount/accounting-svc in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:04Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:04Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc-cron-retry-events-main in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:04Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc-dashboard-main in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:04Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc-cron-partner-commissions-main in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Service/accounting-svc-server in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Service/accounting-svc-dashboard in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Service/accounting-svc-sidecar in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Deployment/accounting-svc-dashboard in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Deployment/accounting-svc-sidecar in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Deployment/accounting-svc-server in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource CronJob/accounting-svc-cron-partner-commissions in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource CronJob/accounting-svc-cron-retry-events in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource VirtualService/accounting-svc-dashboard in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ServiceEntry/accounting-svc-dashboard in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ServiceEntry/accounting-svc-server in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ServiceEntry/accounting-svc-sidecar in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Running, message: '' -\u003e 'one or more tasks are running'","syncId":"00037-OEHXR","time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"dry-run":"none","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc-migration-migrate in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","kind":"ConfigMap","level":"info","msg":"Adding resource result, status: 'Synced', phase: 'Running', message: 'configmap/accounting-svc-migration-migrate created'","name":"accounting-svc-migration-migrate","namespace":"services","phase":"PreSync","syncId":"00037-OEHXR","time":"2025-01-15T10:07:05Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Running, message: 'one or more tasks are running' -\u003e 'waiting for completion of hook /ConfigMap/accounting-svc-migration-migrate and 18 more hooks'","syncId":"00037-OEHXR","time":"2025-01-15T10:07:07Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","duration":3391139517,"level":"info","msg":"sync/terminate complete","syncId":"00037-OEHXR","time":"2025-01-15T10:07:07Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"updated 'argo/accounting-svc-app' operation (phase: Running)","project":"services","time":"2025-01-15T10:07:07Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Refreshing app status (controller refresh requested), level (1)","project":"services","time":"2025-01-15T10:07:14Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:07:14Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":33,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:07:14Z","time_ms":33}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Update successful","project":"services","time":"2025-01-15T10:07:15Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","app_status_update_ms":0,"application":"accounting-svc-app","auto_sync_ms":0,"compare_app_state_ms":268,"comparison-level":1,"comparison_with_nothing_ms":0,"dedup_ms":0,"dest-name":"in-cluster","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","diff_ms":226,"git_ms":33,"health_ms":1,"level":"info","live_ms":6,"msg":"Reconciliation completed","normalize_application_ms":1,"patch_ms":24,"persist_app_status_ms":25,"process_finalizers_ms":0,"project":"services","refresh_app_conditions_ms":0,"set_app_managed_resources_ms":19,"setop_ms":0,"settings_ms":0,"sync_ms":0,"time":"2025-01-15T10:07:15Z","time_ms":315}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Resuming in-progress operation. phase: Running, message: waiting for completion of hook /ConfigMap/accounting-svc-migration-migrate and 18 more hooks","project":"services","time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":16,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:07:28Z","time_ms":16}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Syncing","skipHooks":false,"started":true,"syncId":"00038-QABLb","time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Tasks","syncId":"00038-QABLb","tasks":"[PreSync/-2 hook /ConfigMap:services/accounting-svc-migration-migrate obj-\u003eobj (Synced,Running,configmap/accounting-svc-migration-migrate created), PreSync/-1 hook batch/Job:services/accounting-svc-migration nil-\u003eobj (,,), Sync/0 resource /ServiceAccount:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-partner-commissions-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-retry-events-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-dashboard-main obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-partner-commissions obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-retry-events obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/VirtualService:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-sidecar obj-\u003eobj (,,)]","time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","kind":"ConfigMap","level":"info","msg":"Updating resource result, status: 'Synced' -\u003e '', phase 'Running' -\u003e 'Succeeded', message 'configmap/accounting-svc-migration-migrate created' -\u003e 'accounting-svc-migration-migrate created'","name":"accounting-svc-migration-migrate","namespace":"services","phase":"PreSync","syncId":"00038-QABLb","time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Running, message: 'waiting for completion of hook /ConfigMap/accounting-svc-migration-migrate and 18 more hooks' -\u003e 'one or more tasks are running'","syncId":"00038-QABLb","time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"dry-run":"none","level":"info","manager":"argocd-controller","msg":"Applying resource Job/accounting-svc-migration in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","kind":"Job","level":"info","msg":"Adding resource result, status: 'Synced', phase: 'Running', message: 'job.batch/accounting-svc-migration created'","name":"accounting-svc-migration","namespace":"services","phase":"PreSync","syncId":"00038-QABLb","time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Running, message: 'one or more tasks are running' -\u003e 'waiting for completion of hook batch/Job/accounting-svc-migration'","syncId":"00038-QABLb","time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","duration":70796173,"level":"info","msg":"sync/terminate complete","syncId":"00038-QABLb","time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"updated 'argo/accounting-svc-app' operation (phase: Running)","project":"services","time":"2025-01-15T10:07:28Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Refreshing app status (controller refresh requested), level (1)","project":"services","time":"2025-01-15T10:07:40Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:07:40Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":29,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:07:40Z","time_ms":29}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Update successful","project":"services","time":"2025-01-15T10:07:40Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","app_status_update_ms":0,"application":"accounting-svc-app","auto_sync_ms":0,"compare_app_state_ms":181,"comparison-level":1,"comparison_with_nothing_ms":0,"dedup_ms":0,"dest-name":"in-cluster","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","diff_ms":145,"git_ms":30,"health_ms":1,"level":"info","live_ms":3,"msg":"Reconciliation completed","normalize_application_ms":1,"patch_ms":29,"persist_app_status_ms":31,"process_finalizers_ms":0,"project":"services","refresh_app_conditions_ms":0,"set_app_managed_resources_ms":45,"setop_ms":0,"settings_ms":0,"sync_ms":0,"time":"2025-01-15T10:07:40Z","time_ms":259}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Resuming in-progress operation. phase: Running, message: waiting for completion of hook batch/Job/accounting-svc-migration","project":"services","time":"2025-01-15T10:08:05Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:08:05Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":15,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:08:05Z","time_ms":15}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Syncing","skipHooks":false,"started":true,"syncId":"00039-AoVva","time":"2025-01-15T10:08:05Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Tasks","syncId":"00039-AoVva","tasks":"[PreSync/-2 hook /ConfigMap:services/accounting-svc-migration-migrate obj-\u003eobj (,Succeeded,accounting-svc-migration-migrate created), PreSync/-1 hook batch/Job:services/accounting-svc-migration obj-\u003eobj (Synced,Running,job.batch/accounting-svc-migration created), Sync/0 resource /ServiceAccount:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-partner-commissions-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-retry-events-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-dashboard-main obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-partner-commissions obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-retry-events obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/VirtualService:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-sidecar obj-\u003eobj (,,)]","time":"2025-01-15T10:08:05Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","kind":"Job","level":"info","msg":"Updating resource result, status: 'Synced' -\u003e '', phase 'Running' -\u003e 'Succeeded', message 'job.batch/accounting-svc-migration created' -\u003e 'Reached expected number of succeeded pods'","name":"accounting-svc-migration","namespace":"services","phase":"PreSync","syncId":"00039-AoVva","time":"2025-01-15T10:08:05Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Succeeded, message: 'waiting for completion of hook batch/Job/accounting-svc-migration' -\u003e 'successfully synced (no more tasks)'","syncId":"00039-AoVva","time":"2025-01-15T10:08:05Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","duration":47396676,"level":"info","msg":"sync/terminate complete","syncId":"00039-AoVva","time":"2025-01-15T10:08:05Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"updated 'argo/accounting-svc-app' operation (phase: Succeeded)","project":"services","time":"2025-01-15T10:08:05Z"}
argocd-application-controller-0 application-controller {"application":"accounting-svc-app","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","level":"info","msg":"Sync operation to  succeeded","reason":"OperationCompleted","time":"2025-01-15T10:08:05Z","type":"Normal"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Refreshing app status (controller refresh requested), level (3)","project":"services","time":"2025-01-15T10:08:30Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:08:30Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":635,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:08:31Z","time_ms":635}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Update successful","project":"services","time":"2025-01-15T10:08:31Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","app_status_update_ms":0,"application":"accounting-svc-app","auto_sync_ms":0,"compare_app_state_ms":972,"comparison-level":3,"comparison_with_nothing_ms":0,"dedup_ms":0,"dest-name":"in-cluster","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","diff_ms":331,"git_ms":635,"health_ms":3,"level":"info","live_ms":1,"msg":"Reconciliation completed","normalize_application_ms":7,"patch_ms":60,"persist_app_status_ms":61,"process_finalizers_ms":0,"project":"services","refresh_app_conditions_ms":0,"set_app_managed_resources_ms":93,"setop_ms":0,"settings_ms":0,"sync_ms":0,"time":"2025-01-15T10:08:31Z","time_ms":1135}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-infra","application":"accounting-svc-infra","level":"info","msg":"Refreshing app status (comparison expired, requesting refresh. reconciledAt: 2025-01-15 10:04:32 +0000 UTC, expiry: 2m0s), level (2)","project":"services","time":"2025-01-15T10:08:42Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-infra","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:08:42Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-infra","build_options_ms":0,"level":"info","manifests_ms":758,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:08:42Z","time_ms":759}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-infra","application":"accounting-svc-infra","level":"info","msg":"Update successful","project":"services","time":"2025-01-15T10:08:43Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-infra","app_status_update_ms":0,"application":"accounting-svc-infra","auto_sync_ms":0,"compare_app_state_ms":884,"comparison-level":2,"comparison_with_nothing_ms":0,"dedup_ms":4,"dest-name":"in-cluster","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","diff_ms":116,"git_ms":759,"health_ms":1,"level":"info","live_ms":1,"msg":"Reconciliation completed","normalize_application_ms":2,"patch_ms":34,"persist_app_status_ms":38,"process_finalizers_ms":0,"project":"services","refresh_app_conditions_ms":0,"set_app_managed_resources_ms":32,"setop_ms":0,"settings_ms":0,"sync_ms":0,"time":"2025-01-15T10:08:43Z","time_ms":958}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"updated 'argo/accounting-svc-app' operation (phase: Running)","project":"services","time":"2025-01-15T10:08:56Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Initialized new operation: {\u0026SyncOperation{Revision:,Prune:true,DryRun:false,SyncStrategy:nil,Resources:[]SyncOperationResource{},Source:nil,Manifests:[],SyncOptions:[ApplyOutOfSyncOnly=true CreateNamespace=false FailOnSharedResource=true PruneLast=true],Sources:[]ApplicationSource{},Revisions:[],SelfHealAttemptsCount:0,} {applicationset-controller true} [\u0026Info{Name:Reason,Value:ApplicationSet RollingSync triggered a sync of this Application resource.,}] {-1 \u0026Backoff{Duration:5m,Factor:*1,MaxDuration:5m,}}}","project":"services","time":"2025-01-15T10:08:56Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:08:56Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":585,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:08:57Z","time_ms":585}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Syncing","skipHooks":false,"started":false,"syncId":"00040-xyAtv","time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Tasks (dry-run)","syncId":"00040-xyAtv","tasks":"[PreSync/-2 hook /ConfigMap:services/accounting-svc-migration-migrate nil-\u003eobj (,,), PreSync/-1 hook batch/Job:services/accounting-svc-migration nil-\u003eobj (,,), Sync/0 resource /ServiceAccount:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-partner-commissions-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-retry-events-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-dashboard-main obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-partner-commissions obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-retry-events obj-\u003eobj (,,), Sync/0 resource networking.istio.io/VirtualService:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-sidecar obj-\u003eobj (,,)]","time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc-migration-migrate in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Job/accounting-svc-migration in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ServiceAccount/accounting-svc in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc-cron-partner-commissions-main in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc-cron-retry-events-main in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc-dashboard-main in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Service/accounting-svc-dashboard in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Service/accounting-svc-server in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Service/accounting-svc-sidecar in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:57Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Deployment/accounting-svc-dashboard in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Deployment/accounting-svc-server in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource Deployment/accounting-svc-sidecar in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource CronJob/accounting-svc-cron-partner-commissions in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource CronJob/accounting-svc-cron-retry-events in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource VirtualService/accounting-svc-dashboard in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ServiceEntry/accounting-svc-dashboard in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ServiceEntry/accounting-svc-server in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"dry-run":"client","level":"info","manager":"argocd-controller","msg":"Applying resource ServiceEntry/accounting-svc-sidecar in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Running, message: '' -\u003e 'one or more tasks are running'","syncId":"00040-xyAtv","time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"dry-run":"none","level":"info","manager":"argocd-controller","msg":"Applying resource ConfigMap/accounting-svc-migration-migrate in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","kind":"ConfigMap","level":"info","msg":"Adding resource result, status: 'Synced', phase: 'Running', message: 'configmap/accounting-svc-migration-migrate created'","name":"accounting-svc-migration-migrate","namespace":"services","phase":"PreSync","syncId":"00040-xyAtv","time":"2025-01-15T10:08:58Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Running, message: 'one or more tasks are running' -\u003e 'waiting for completion of hook /ConfigMap/accounting-svc-migration-migrate and 18 more hooks'","syncId":"00040-xyAtv","time":"2025-01-15T10:09:00Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","duration":3313491078,"level":"info","msg":"sync/terminate complete","syncId":"00040-xyAtv","time":"2025-01-15T10:09:00Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"updated 'argo/accounting-svc-app' operation (phase: Running)","project":"services","time":"2025-01-15T10:09:00Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Resuming in-progress operation. phase: Running, message: waiting for completion of hook /ConfigMap/accounting-svc-migration-migrate and 18 more hooks","project":"services","time":"2025-01-15T10:09:21Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:09:21Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":13,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:09:21Z","time_ms":13}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Syncing","skipHooks":false,"started":true,"syncId":"00041-dIdlo","time":"2025-01-15T10:09:21Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Tasks","syncId":"00041-dIdlo","tasks":"[PreSync/-2 hook /ConfigMap:services/accounting-svc-migration-migrate obj-\u003eobj (Synced,Running,configmap/accounting-svc-migration-migrate created), PreSync/-1 hook batch/Job:services/accounting-svc-migration nil-\u003eobj (,,), Sync/0 resource /ServiceAccount:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-partner-commissions-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-retry-events-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-dashboard-main obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-partner-commissions obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-retry-events obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/VirtualService:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-sidecar obj-\u003eobj (,,)]","time":"2025-01-15T10:09:21Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","kind":"ConfigMap","level":"info","msg":"Updating resource result, status: 'Synced' -\u003e '', phase 'Running' -\u003e 'Succeeded', message 'configmap/accounting-svc-migration-migrate created' -\u003e 'accounting-svc-migration-migrate created'","name":"accounting-svc-migration-migrate","namespace":"services","phase":"PreSync","syncId":"00041-dIdlo","time":"2025-01-15T10:09:21Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Running, message: 'waiting for completion of hook /ConfigMap/accounting-svc-migration-migrate and 18 more hooks' -\u003e 'one or more tasks are running'","syncId":"00041-dIdlo","time":"2025-01-15T10:09:21Z"}
argocd-application-controller-0 application-controller {"dry-run":"none","level":"info","manager":"argocd-controller","msg":"Applying resource Job/accounting-svc-migration in cluster: https://172.20.0.1:443, namespace: services","serverSideApply":false,"serverSideDiff":false,"time":"2025-01-15T10:09:21Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Refreshing app status (controller refresh requested), level (1)","project":"services","time":"2025-01-15T10:09:22Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:09:22Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","kind":"Job","level":"info","msg":"Adding resource result, status: 'Synced', phase: 'Running', message: 'job.batch/accounting-svc-migration created'","name":"accounting-svc-migration","namespace":"services","phase":"PreSync","syncId":"00041-dIdlo","time":"2025-01-15T10:09:22Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Running, message: 'one or more tasks are running' -\u003e 'waiting for completion of hook batch/Job/accounting-svc-migration'","syncId":"00041-dIdlo","time":"2025-01-15T10:09:22Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","duration":76257452,"level":"info","msg":"sync/terminate complete","syncId":"00041-dIdlo","time":"2025-01-15T10:09:22Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":15,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:09:22Z","time_ms":15}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"updated 'argo/accounting-svc-app' operation (phase: Running)","project":"services","time":"2025-01-15T10:09:22Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Update successful","project":"services","time":"2025-01-15T10:09:22Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","app_status_update_ms":0,"application":"accounting-svc-app","auto_sync_ms":0,"compare_app_state_ms":138,"comparison-level":1,"comparison_with_nothing_ms":0,"dedup_ms":0,"dest-name":"in-cluster","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","diff_ms":116,"git_ms":15,"health_ms":2,"level":"info","live_ms":3,"msg":"Reconciliation completed","normalize_application_ms":2,"patch_ms":20,"persist_app_status_ms":21,"process_finalizers_ms":0,"project":"services","refresh_app_conditions_ms":0,"set_app_managed_resources_ms":29,"setop_ms":0,"settings_ms":0,"sync_ms":0,"time":"2025-01-15T10:09:22Z","time_ms":191}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Refreshing app status (controller refresh requested), level (1)","project":"services","time":"2025-01-15T10:09:36Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:09:36Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":25,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:09:36Z","time_ms":25}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"No status changes. Skipping patch","project":"services","time":"2025-01-15T10:09:36Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","app_status_update_ms":0,"application":"accounting-svc-app","auto_sync_ms":0,"compare_app_state_ms":299,"comparison-level":1,"comparison_with_nothing_ms":0,"dedup_ms":0,"dest-name":"in-cluster","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","diff_ms":261,"git_ms":26,"health_ms":4,"level":"info","live_ms":6,"msg":"Reconciliation completed","normalize_application_ms":3,"patch_ms":0,"persist_app_status_ms":1,"process_finalizers_ms":0,"project":"services","refresh_app_conditions_ms":0,"set_app_managed_resources_ms":45,"setop_ms":0,"settings_ms":0,"sync_ms":0,"time":"2025-01-15T10:09:36Z","time_ms":350}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"Resuming in-progress operation. phase: Running, message: waiting for completion of hook batch/Job/accounting-svc-migration","project":"services","time":"2025-01-15T10:09:47Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Comparing app state (cluster: https://kubernetes.default.svc, namespace: services)","time":"2025-01-15T10:09:47Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","build_options_ms":0,"level":"info","manifests_ms":23,"msg":"GetRepoObjs stats","plugins_ms":0,"repo_ms":0,"time":"2025-01-15T10:09:47Z","time_ms":23}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Syncing","skipHooks":false,"started":true,"syncId":"00042-mLNmp","time":"2025-01-15T10:09:47Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Tasks","syncId":"00042-mLNmp","tasks":"[PreSync/-2 hook /ConfigMap:services/accounting-svc-migration-migrate obj-\u003eobj (,Succeeded,accounting-svc-migration-migrate created), PreSync/-1 hook batch/Job:services/accounting-svc-migration obj-\u003eobj (Synced,Running,job.batch/accounting-svc-migration created), Sync/0 resource /ServiceAccount:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-partner-commissions-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-cron-retry-events-main obj-\u003eobj (,,), Sync/0 resource /ConfigMap:services/accounting-svc-dashboard-main obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource /Service:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource apps/Deployment:services/accounting-svc-sidecar obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-partner-commissions obj-\u003eobj (,,), Sync/0 resource batch/CronJob:services/accounting-svc-cron-retry-events obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/VirtualService:services/accounting-svc-dashboard obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-server obj-\u003eobj (,,), Sync/0 resource networking.istio.io/ServiceEntry:services/accounting-svc-sidecar obj-\u003eobj (,,)]","time":"2025-01-15T10:09:47Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","kind":"Job","level":"info","msg":"Updating resource result, status: 'Synced' -\u003e '', phase 'Running' -\u003e 'Succeeded', message 'job.batch/accounting-svc-migration created' -\u003e 'Reached expected number of succeeded pods'","name":"accounting-svc-migration","namespace":"services","phase":"PreSync","syncId":"00042-mLNmp","time":"2025-01-15T10:09:47Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","level":"info","msg":"Updating operation state. phase: Running -\u003e Succeeded, message: 'waiting for completion of hook batch/Job/accounting-svc-migration' -\u003e 'successfully synced (no more tasks)'","syncId":"00042-mLNmp","time":"2025-01-15T10:09:47Z"}
argocd-application-controller-0 application-controller {"application":"argo/accounting-svc-app","duration":53540223,"level":"info","msg":"sync/terminate complete","syncId":"00042-mLNmp","time":"2025-01-15T10:09:47Z"}
argocd-application-controller-0 application-controller {"app-namespace":"argo","app-qualified-name":"argo/accounting-svc-app","application":"accounting-svc-app","level":"info","msg":"updated 'argo/accounting-svc-app' operation (phase: Succeeded)","project":"services","time":"2025-01-15T10:09:47Z"}
argocd-application-controller-0 application-controller {"application":"accounting-svc-app","dest-namespace":"services","dest-server":"https://kubernetes.default.svc","level":"info","msg":"Sync operation to  succeeded","reason":"OperationCompleted","time":"2025-01-15T10:09:47Z","type":"Normal"}
@offzale offzale added the bug Something isn't working label Jan 15, 2025
@nitishfy nitishfy added component:application-controller version:2.13 Latest confirmed affected version is 2.13 labels Jan 15, 2025
@agaudreault agaudreault added the more-information-needed Further information is requested label Jan 16, 2025
@agaudreault
Copy link
Member

I think to help understand the issue, you should add screenshots of your Apps of apps structure, as well as Application/AppSet example manifests so it is easier to visualize and reproduce.

From what I understand from the description, the flow would be:
code changed -> App-service detect diff -> App-service runs pre-sync -> pre-sync completed? -> NOT syncing diff

How do you determine that "the sync finishes successfully"? What is the status of your resource at that moment?

@offzale
Copy link
Author

offzale commented Jan 17, 2025

@agaudreault here are the example manifests with the exact spec we deploy, all appset we deploy have this spec, only names and paths for sources change. It did not allow me to add it to the first message because of length limitations

ApplicationSet generated Applications example screenshot Image
App of apps example manifest
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: services
  namespace: argocd
spec:
  project: default
  sources:
  - repoURL: https://github.com/example/argocd-applications.git
    targetRevision: main
    path: .environments/staging # kustomization that generates the appsets manifests
  destination:
    server: https://kubernetes.default.svc
    namespace: argocd
  revisionHistoryLimit: 5
  syncPolicy:
    automated:
      prune: true
ApplicationSet example manifest
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  annotations:
    baseChartVersion: '>=2.0.0'
  labels:
    argocd.argoproj.io/instance: services
  name: example-svc
  namespace: argocd
spec:
  generators:
    - list:
        elements:
          - infra: true
            type: infra
          - infra: false
            type: app
  goTemplate: true
  strategy:
    rollingSync:
      steps:
        - matchExpressions:
            - key: appType
              operator: In
              values:
                - infra
        - matchExpressions:
            - key: appType
              operator: In
              values:
                - app
    type: RollingSync
  template:
    metadata:
      annotations:
        argocd.argoproj.io/manifest-generate-paths: /example-svc/staging
      labels:
        appType: '{{.type}}'
      name: example-svc-{{.type}}
      namespace: argocd
    spec:
      destination:
        namespace: services
        server: https://kubernetes.default.svc
      ignoreDifferences:
        - jsonPointers:
            - /data/password
          kind: Secret
          name: accounting-svc-db-creds
        - group: iam.aws.crossplane.io
          jqPathExpressions:
            - .spec.forProvider.tags[] | select(.key | startswith("crossplane"))
          kind: Role
      project: services
      revisionHistoryLimit: 5
      sources:
        - chart: '{{.type}}-chart'
          helm:
            ignoreMissingValueFiles: true
            parameters:
              - name: global.environment
                value: staging
              - name: global.owner
                value: team-example
            releaseName: example-svc
            valueFiles:
              - $values/example-svc/staging/values.yaml
              - $values/example-svc/staging/secrets.yaml
          repoURL: 000000000000.dkr.ecr.eu-west-1.amazonaws.com
          targetRevision: '>=2.0.0'
        - ref: values
          repoURL: https://github.com/example/argocd-applications
          targetRevision: main
      syncPolicy:
        automated:
          allowEmpty: true
          prune: true
          selfHeal: true
        retry:
          backoff:
            duration: 5m
            factor: 1
            maxDuration: 5m
          limit: -1
        syncOptions:
          - ApplyOutOfSyncOnly=true
          - CreateNamespace=false
          - FailOnSharedResource=true
          - PruneLast=true

@offzale
Copy link
Author

offzale commented Jan 17, 2025

The flow you describe is exactly what happens. Then, after the last step, it returns to the second step you described, and it loops endlessly.

I determine that "the sync finishes successfully" when the diff of all Sync stages and waves have been applied and, therefore, the application is 100% synced (App status is Synced). When we face this issue the App status is always OutOfSync unless the app is non-cascade deleted, then after the appset re-creates it, it is synced correctly on the first run.

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:application-controller more-information-needed Further information is requested version:2.13 Latest confirmed affected version is 2.13
Projects
None yet
Development

No branches or pull requests

3 participants