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

Wrong log format #3041

Closed
kdanyliuk opened this issue Sep 15, 2023 · 1 comment · Fixed by #3493
Closed

Wrong log format #3041

kdanyliuk opened this issue Sep 15, 2023 · 1 comment · Fixed by #3493
Labels
bug Something isn't working no-issue-activity

Comments

@kdanyliuk
Copy link

This is a direct follow-up for #3006, as it has been suggested to reopen that issue if the problem persists in version 1.6.x.

Describe the bug

  • We configured the argo rollouts' log format to be JSON.
        chart_values:
          controller:
            extraArgs:
              - "--logformat"
              - "json"
              - "--loglevel"
              - "warn"

To Reproduce

  • Configure logformat=json

Expected behavior

  • All messages are in JSON format

Version

  • application version 1.6.0
  • chart version 2.32.0

Logs

{"generation":1,"level":"error","msg":"roCtx.reconcile err Operation cannot be fulfilled on replicasets.apps \"tm-tm-upgrade-dev-7d5c95ddd7\": the object has been modified; please apply your changes to the latest version and try again","namespace":"tm-tm-upgrade-dev","resourceVersion":"150709083","rollout":"tm-tm-upgrade-dev","time":"2023-09-01T08:41:48Z"}
{"level":"error","msg":"rollout syncHandler error: Operation cannot be fulfilled on replicasets.apps \"tm-tm-upgrade-dev-7d5c95ddd7\": the object has been modified; please apply your changes to the latest version and try again","namespace":"tm-tm-upgrade-dev","rollout":"tm-tm-upgrade-dev","time":"2023-09-01T08:41:48Z"}
time="2023-09-01T08:41:48Z" level=error msg="Operation cannot be fulfilled on replicasets.apps \"tm-tm-upgrade-dev-7d5c95ddd7\": the object has been modified; please apply your changes to the latest version and try again\n" error="<nil>"
...
time="2023-09-01T08:46:29Z" level=info msg="unknown field \"spec.template.metadata.creationTimestamp\"\n"
time="2023-09-01T08:46:29Z" level=info msg="unknown field \"spec.template.metadata.creationTimestamp\"\n"
time="2023-09-01T08:46:36Z" level=info msg="unknown field \"spec.template.metadata.creationTimestamp\"\n"
time="2023-09-01T08:46:36Z" level=info msg="unknown field \"spec.template.metadata.creationTimestamp\"\n"
@kdanyliuk kdanyliuk added the bug Something isn't working label Sep 15, 2023
Copy link
Contributor

This issue is stale because it has been open 60 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant