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

Incorrect error message relating to default project #4342

Closed
sympatheticmoose opened this issue Jan 4, 2021 · 5 comments
Closed

Incorrect error message relating to default project #4342

sympatheticmoose opened this issue Jan 4, 2021 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@sympatheticmoose
Copy link

/kind bug

Not severe. Just a bit of a gotcha which I keep hitting since I often run odo pointing at docker-desktop, but frequently kill docker when not in use. Partly relates to #4309

What versions of software are you using?

Operating System: macOS

Output of odo version: odo v2.0.3 (9ae7540)

How did you run odo exactly?

kube context set to docker-desktop, but not currently running docker
odo create [any]

Actual behavior

Error msg:
✗ You don't have permission to create or set project 'default' or the project doesn't exist. Please create or set a different project
odo project create|set <project_name>

Which is completely unrelated to the actual problem but seeing it as a fatal error reminds me to check docker is running, and sure enough that will fix it. Otherwise I'd guess a user would try that project create cmd, and then hit the connection refused error:
✗ Get "https://kubernetes.docker.internal:6443/apis/project.openshift.io/v1?timeout=32s": dial tcp 127.0.0.1:6443: connect: connection refused

Which is a bit clearer towards what the issue is, but still doesn't guide the user to resolve.

Expected behavior

Perhaps something similar to the check we had in Appsody which would give the following output on appsody init:
[Warning] Failed to check prerequisites: docker does not seem to be installed or running - failed to execute docker ps
...
[Error] Could not inspect the image: exit status 1: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Any logs, error output, etc?

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 4, 2021
@kadel
Copy link
Member

kadel commented Jan 6, 2021

The plan is to stop checking the cluster on odo create (#4096).
odo create should work even if the cluster is not running,There is no real reason why the cluster should be required for odo create.
The cluster connection should be required only once odo needs to perform or fetch information from cluster.

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 6, 2021
@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot 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 May 6, 2021
@openshift-bot
Copy link

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci
Copy link

openshift-ci bot commented Jun 6, 2021

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

@openshift-ci openshift-ci bot closed this as completed Jun 6, 2021
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. 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

4 participants