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

Dashboard step output doesn't appear when stdoutConfig or stderrConfig is used in task definition #2840

Closed
kaktusztea opened this issue Apr 3, 2023 · 2 comments

Comments

@kaktusztea
Copy link

kaktusztea commented Apr 3, 2023

I use stdoutConfig or stderrConfig features in my task definition at steps to redirect and collect all logs on a dedicated logstore workspace. In this case outputs on Tekton Dashboard also disappears unfortunately.

Is there a way to "tee" this output or still have the Dashboard output somehow?

Expected behavior

Still see steps' output in Tekton Dashboard.

Actual behaviour

No logs appear in Dashboard's task steps' output (shows only "no log available").
In case (for testing this) I use only stdoutConfig redirection then error outputs are there in step output, so it looks like Dashboard is tapped on stdout and stderr as well.
I can still see container outputs in Kubernetes of course, but losing Dashboard monitoring feature is less than ideal.

Additional info

Kubernetes version: 1.24.2

Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.6", GitCommit:"ad3338546da947756e8a88aa6822e9c11e7eac22", GitTreeState:"clean", BuildDate:"2022-04-14T08:49:13Z", GoVersion:"go1.17.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.2", GitCommit:"60d6794382fe229fcf97000e8175c0315ebe8863", GitTreeState:"clean", BuildDate:"2022-09-09T08:30:58Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}

Tekton versions:

Pipeline version: v0.42.0
Triggers version: -
Dashboard version: v0.31.0

code snippet from mytask.yaml

- name: mystep
  image: ubuntu
  stdoutConfig:
        path: "$(workspaces.logstore.path)/task_logs/mytask/mystep.log"
  stderrConfig:
        path: "$(workspaces.logstore.path)/task_logs/mytask/mystep.log"
  script: |
{{ .Files.Get "scripts/mystep.bash-tpl" | indent 8 }}
@kaktusztea kaktusztea added the kind/bug Categorizes issue or PR as related to a bug. label Apr 3, 2023
@AlanGreene
Copy link
Member

AlanGreene commented Apr 3, 2023

Hi @kaktusztea, thanks for reporting this, however it's not an issue with the Dashboard itself and can be reproduced using kubectl logs etc. as the logs are not being returned on the pod logs API.

There was a bug in Tekton Pipelines which has been fixed recently and will be included in the next Pipelines release (v0.47), see tektoncd/pipeline#6136 for more details.

If you want to test the latest nightly release you can use https://storage.googleapis.com/tekton-releases-nightly/pipeline/latest/release.yaml. Bear in mind this is not an official release and not recommended for production use, but can be used for testing to confirm your issue is resolved.

@AlanGreene AlanGreene removed the kind/bug Categorizes issue or PR as related to a bug. label Apr 3, 2023
@kaktusztea
Copy link
Author

Hi Alan,

thank you for the info.
It's a very good news 🙂

I'm closing this now, will uplift on test env when new release with the fix is out and may reopen if there is still some issue.

Thanks.

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

2 participants