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

odo preference view -o json takes a long time if cluster is inaccessible #7205

Open
datho7561 opened this issue Feb 5, 2024 · 5 comments
Open
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@datho7561
Copy link

datho7561 commented Feb 5, 2024

/kind bug

What versions of software are you using?

Operating System: Fedora 39

Output of odo version:

===============================================
⚠  unable to fetch the cluster server version
===============================================
odo v3.15.0 (10b5e8a8f)

Podman Client: 4.9.0

How did you run odo exactly?

Set my ~/.kube/config to point to my crc cluster, which is stopped. Then I run : odo preference view -o json

Actual behavior

Takes around 40 seconds

Expected behavior

Takes < 1 second

Any logs, error output, etc?

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 5, 2024
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label Feb 5, 2024
@datho7561
Copy link
Author

It seems like it's checking the status of the cluster, but I don't see why this would be needed for this command.

@rm3l
Copy link
Member

rm3l commented Feb 5, 2024

odo preference view lists all the Devfile Registries odo can use, and (since odo v3.8.0) it also tries to list those coming from the current cluster. That's why it is trying to contact the current cluster.
More details in https://odo.dev/docs/user-guides/advanced/using-in-cluster-devfile-registry/

Actual behavior

Takes around 40 seconds

I guess any oc/kubectl command communicating with the cluster would take the same amount of time, right?

@datho7561
Copy link
Author

Okay, thanks! I didn't know that the cluster could provide Devfiles

I guess any oc/kubectl command communicating with the cluster would take the same amount of time, right?

Yes, odo version takes around the same amount of time as odo preference view.

Copy link
Contributor

github-actions bot commented May 6, 2024

A friendly reminder that this issue had no activity for 90 days. Stale issues will be closed after an additional 30 days of inactivity.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 6, 2024
@rm3l
Copy link
Member

rm3l commented May 6, 2024

/remove-lifecycle stale
/lifecycle frozen

@openshift-ci openshift-ci bot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 6, 2024
@rm3l rm3l removed the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label May 6, 2024
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/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
Status: No status
Development

No branches or pull requests

2 participants