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

Getting Started: "tkn task start hello --dry-run" fails with "Error: task name hello does not exist in namespace default" #199

Closed
florath opened this issue Nov 6, 2020 · 9 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@florath
Copy link

florath commented Nov 6, 2020

Expected Behavior

tkn task start hello --dry-run

should behave as described and output the taskrun resource description

Actual Behavior

tkn task start hello --dry-run

logs

Error: task name hello does not exist in namespace default

Steps to Reproduce the Problem

  1. Use the provided ppa for Ubuntu to install the tkn binary
  2. Install an up to date version of the tekton pipeline

Additional Info

It looks that the binary in the ppa is (very) old and does not work with current tekton pipelines.

# tkn version
Client version: 2020-04-01T10:57:38Z
Pipeline version: unknown

After using an up-to date tkn binary, everything works fine

# tkn version
Client version: 0.13.1
Pipeline version: v0.17.3

Suggestion: Either update the version in the ppa or remove the section in flavor of using the package from github.

@AlanGreene
Copy link
Member

AlanGreene commented Nov 6, 2020

tkn 0.13.1 does appear to be available in the ppa

Tested on Ubuntu 20.04 (Focal Fossa)

$ sudo add-apt-repository ppa:tektoncd/cli
...
$ sudo apt-get update
...
$ sudo apt-get install tektoncd-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  tektoncd-cli
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 8952 kB of archives.
After this operation, 42.4 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/tektoncd/cli/ubuntu focal/main amd64 tektoncd-cli amd64 0.13.1-0 [8952 kB]
...

However following the instructions on https://tekton.dev/docs/getting-started/ I get 0.8.0
Updating the instructions to use focal instead of eoan yields 0.13.1.

-echo "deb http://ppa.launchpad.net/tektoncd/cli/ubuntu eoan main"|sudo tee /etc/apt/sources.list.d/tektoncd-ubuntu-cli.list
+echo "deb http://ppa.launchpad.net/tektoncd/cli/ubuntu focal main"|sudo tee /etc/apt/sources.list.d/tektoncd-ubuntu-cli.list

https://github.com/tektoncd/website/blob/master/content/en/docs/Getting%20Started/_index.md#set-up-the-cli

Is this expected? Do we only ship newer tkn releases for focal or newer? @chmouel @piyush-garg

@chmouel
Copy link
Member

chmouel commented Nov 6, 2020

We only use what PPA gives us, I am not really sure how to make PPA generating for multiple distribution, so I guess the packages will only targets the latest LTS (which is focal)

I'll see if we can do some documentation update,

@chmouel
Copy link
Member

chmouel commented Nov 6, 2020

Maybe we should use https://build.opensuse.org/ in the future, which seems more maintained and featurefull than launchpad.

chmouel added a commit to chmouel/tektoncd-cli that referenced this issue Nov 6, 2020
- Use a base latest for the distribution not rolling,
- Update README.

Related: tektoncd/website#199
tekton-robot pushed a commit to tektoncd/cli that referenced this issue Nov 6, 2020
- Use a base latest for the distribution not rolling,
- Update README.

Related: tektoncd/website#199
@afrittoli
Copy link
Member

So, is the issue only related to the version of tkn? Does it work fine with the latest tkn?

@chmouel
Copy link
Member

chmouel commented Nov 11, 2020

@afrittoli yes should be fixed using the version from focal,

@tekton-robot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 9, 2021
@tekton-robot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle rotten

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 11, 2021
@tekton-robot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

@tekton-robot
Copy link

@tekton-robot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants