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

Weird behavior of notification-service #167

Open
Miekus opened this issue Mar 16, 2023 · 2 comments
Open

Weird behavior of notification-service #167

Miekus opened this issue Mar 16, 2023 · 2 comments

Comments

@Miekus
Copy link

Miekus commented Mar 16, 2023

Describe the bug
Our notification-controller continuously sends errors :
" level=error msg="failed to execute when condition: cannot fetch phase from <nil> (1:27)\n | app.status.operationState.phase in ['Running']\n | ..........................^"

" level=error msg="failed to execute oncePer condition: cannot fetch revision from <nil> (1:38)\n | app.status.operationState.syncResult.revision\n | .....................................^"
Its throwing this kind of errors for almost all triggers

From argo ui i don't see any sync problems also the notification-service pods seems working as the should so .
Can anyone explain why the errors are send?

Triggers section:
triggers:
trigger.on-deployed: |
- description: Application is synced and healthy. Triggered once per commit.
oncePer: app.status.operationState.syncResult.revision
send:
- app-deployed
when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status == 'Healthy'
trigger.on-health-degraded: |
- description: Application has degraded
send:
- app-health-degraded
when: app.status.health.status == 'Degraded'
trigger.on-sync-failed: |
- description: Application syncing has failed
send:
- app-sync-failed
when: app.status.operationState.phase in ['Error', 'Failed']
trigger.on-sync-running: |
- description: Application is being synced
oncePer: app.status.sync.revision
send:
- app-sync-running
when: app.status.operationState.phase in ['Running']
trigger.on-sync-status-unknown: |
- description: Application status is 'Unknown'
send:
- app-sync-status-unknown
when: app.status.sync.status == 'Unknown'
trigger.on-sync-succeeded: |
- description: Application syncing has succeeded
send:
- app-sync-succeeded
when: app.status.operationState.phase in ['Succeeded']

We have following set up:
Argo: 2.6.4
Argo helm chart: 5.26.0

Istio: 1.14
Private GKE cluster: 1.23

@surreal-xiyichan
Copy link

I have same issue.

@pasha-codefresh
Copy link
Member

I think it is duplicated with #71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants