-
Notifications
You must be signed in to change notification settings - Fork 243
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 'hangs' after using a cluster that's no longer accessible #4046
Comments
@deboer-tim mentioned odo seems to hang when cluster is unreachable, even for error cases like
Ideally in this case odo should return instantly with error without hang or delay.
In this case, a little delay is justified as odo is trying to reach cluster, but when i run with verbose enabled before trying hitting openshift API's it hangs for a while. In a nutshell, odo hangs for a while when cluster in not reachable. I found out the reason is while initializing the commands few command initialization calls to IsCSVSupported, which tries to connect with cluster and odo seems to be hanged. |
Around 12 secs delay i got on my system with
|
odo link, unlink and odo service commands using |
This sucks. And it's a piece that I added. 😞 We faced a similar issue earlier #3825 (comment). This check for CSV support is my mistake. We were earlier working with the understanding that if the user is working on a cluster that supports Operators, we will not show anything related to Service Catalog in the help output. That assumption is no longer valid, and we have to fix this. |
We decided to remove |
/kind bug
What versions of software are you using?
Operating System:
MacBook Pro with Catalina
Output of
odo version
:odo v2.0.0 (6fbb9d9)
How did you run odo exactly?
I was using odo successfully, then installed CRC, used it for a bit, and then stopped the CRC cluster.
Actual behavior
Tried to use odo again and every command (even ones I would have thought are 'local') takes >1min to respond. No errors, but every time you think it's hung and not going to return, then finally does. Even things that should fail fast (e.g. current dir is not a component) hang for a while.
Expected behavior
I realize it's likely something underlying that is still trying to connect to my stopped cluster, but I didn't intentionally connect odo to it, nor is there any indication that's what the problem is: it just looks like odo performance is awful and it's my experience with odo that I associate with the problem.
There should be:
The text was updated successfully, but these errors were encountered: