-
Notifications
You must be signed in to change notification settings - Fork 7
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
SpinKube x Rancher Desktop integration throws inconsistent results for more complex apps #80
Comments
Thanks for opening this, @divya-mohan0209! Keeping this open until we create issues for each of these. Thanks! |
Okie dokie, thank you @radu-matei! I shall keep this in mind next time I open issues :) |
Hey, @divya-mohan0209 -- just tried all all applications you referenced on a cluster with the latest release of SpinKube and the latest release of the shim, and couldn't reproduce ti with any of the applications. The most likely cause here I think would be running an old version of the shim -- which might come pre-baked into Rancher Desktop. Could you please run |
It is listed as one of the steps, but how can I check if the version is updated? and what is the expected version it needs to be updated to? |
Also, the thing is it runs when you first run all the applications. But when you reset Rancher Desktop and retry the steps all over again, it doesn't work. |
Yeah, I think it has something to do with the shim version used. In the meantime, tagging @tpmccallum who wrote the instructions for Rancher Desktop, if we need to update them. |
I created the Rancher Desktop cluster, and noticed below (that it is indeed old version of shim). @divya-mohan0209, could you please verify this on your cluster as well.
|
Just supplementing the error logs here, as well.
|
It is!
But I have run the |
@divya-mohan0209 could you try:
And check the jobs in the |
Yep, not looking good still. The jobs:
The shim version:
|
Also, checked the kwasm logs for ya
|
it seems latest version as per kwasm-node-installer is indeed having said that, the instructions on https://www.spinkube.dev/docs/spin-operator/tutorials/integrating-with-rancher-desktop/, does refer to a different node-installer image which refers to latest spin-shim version. @divya-mohan0209, could you please confirm what is the command you used to install the kwasm-operator? or this is the default version that comes with Rancher Desktop? |
I used the one in the SpinKube docs that you've listed above. |
could you pls share the output of
|
I'll definitely do that once I login tomorrow and the app crashes. I had reset the entire thing for today's live code stream 🤣 |
Sorry for the delay in getting back! I had to re-do the steps :)
|
I've verified that this issue is caused by the old shim version and is fixed by using 0.14.1: rancher-sandbox/rancher-desktop#6785 (comment) My comment there also shows how you can upgrade the shim version in Rancher Desktop, which manages shims itself and shouldn't need kwasm at all as long as you use the right RuntimeClass name in your SpinAppExecutor ( Note that the next release of Rancher Desktop (1.14) will have an option to install |
Thank you @jandubois for the confirmation. I just checked our documentation and it looks like we ask the user to install the latest version of Rancher Desktop. We will keep this ticket open until Rancher Desktop 1.14 has been released. We really appreciate you chiming in here and helping us confirm the issue. :) |
Context:
I tried out the SpinKube x Rancher Desktop integration detailed on this page. It works seamlessly for the hello-world application detailed there & on the Fermyon blog.
However, when I tried installing some of the other complex templates and containerizing them, such as
or even templates of my own
there is inconsistent behaviour, i.e. they sometimes work and most of the time, they don't.
This is when the spin applications themselves work fine on my machine.
What is the error?
The pods enter the CrashLoopBackOff stage and are terminated with the following message: Last state: Terminated with 137: Error.
Some additional notes
Last state: Terminated with 137: Error - Since this error typically points to an error with memory. I tried increasing the memory assigned to pods and it didn't help.
I tried resetting the Kubernetes cluster and restoring Rancher Desktop to its factory settings (individually, of course). None of those approaches helped and in fact, had the opposite effect. If the templates were working before the factory reset or the cluster reset, they stopped working after. (Of course, I shouldn't have tried to fix what wasn't broken by resetting it 😆 But I did it anyway for the sake of reproducibility)
Lastly, I wasn't sure where the error was, so I filed it against this repo. I'll also open an issue against the Rancher Desktop issues GitHub repo.
Infrastructure details
The text was updated successfully, but these errors were encountered: