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

"tkn pipeline start --showlog" not exit even after PipelineRun completed #2156

Closed
ileixe opened this issue Oct 25, 2023 · 1 comment
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@ileixe
Copy link

ileixe commented Oct 25, 2023

Versions and Operating System

  • Kubernetes version:
build-and-publish$ kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.3", GitCommit:"9e644106593f3f4aa98f8a84b23db5fa378900bd", GitTreeState:"clean", BuildDate:"2023-03-15T13:40:17Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.9", GitCommit:"9710807c82740b9799453677c977758becf0acbb", GitTreeState:"clean", BuildDate:"2022-12-08T10:08:06Z", GoVersion:"go1.18.9", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.26) and server (1.24) exceeds the supported minor version skew of +/-1
  • Tekton Pipeline version:
 build-and-publish$ tkn version
Client version: dev
Chains version: v0.15.0
Pipeline version: v0.45.0
Triggers version: v0.23.0
Dashboard version: v0.33.0
Operator version: v0.66.0
  • Operating System:
Ubuntu 22.04

Expected Behavior

tkn pipeline start \
--filename ./pipeline.yaml \
--serviceaccount build-bot \
--showlog 

returns right after the created PipelineRun completed.

Actual Behavior

tkn CLI did not exit for a while (looks like a hang, but I found the process exits after a longtime, finally). Not sure it's consistent to be completed.

Steps to Reproduce the Problem

  1. Create a pipeline having several tasks (My case was ~10)
  2. Start pipeline with showlog option
  3. You can see the CLI did not return well

Additional Info

At the beginning of the CLI, there was a suspicious log like

failed to get logs for task clone-device-api : error in getting logs for step clone: error getting logs for pod wheel-build-run-ckvvf-clone-device-api-pod(step-clone) : container "step-clone" in pod "wheel-build-run-ckvvf-clone-device-api-pod" is waiting to start: PodInitializing

Even the error exists, PipelineRun will run well (pod is created after that) and be completed with success. (Maybe it looks like CLI is waiting for the error Pod?)

@ileixe ileixe added the kind/bug Categorizes issue or PR as related to a bug. label Oct 25, 2023
@vinamra28
Copy link
Member

resolved in #2251, @ileixe can you please try the CLI version v0.36.0 or above and see if this is resolved? Feel free to re-open in either case, for now I am marking this as done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants