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
[BUG] Restarting CodeReady Container does leave pods in unusable state #2474
Comments
|
@steinrr I tried to reproduce it but not able to on my mac machine. following is what I did, let me know if I am missing some steps.
Stop the instance using tray and started it again. I can still access to my application without deleting the pods or anything. Can you provide following output when you hit this issue? |
|
I can see respective bug redhat-developer/odo#4822 so it might be something with odo? |
|
For the nodejs example, odo starts a dev container based on a vanilla node image + a volume with the code. I believe this directory is filled by odo during the push. I think this kind of directory (emptyDir) are temporary and doesn't survive a reboot. |
This is the same case. It is registered by me as you can see. |
Try using odo and node example. That is the one I have issues with. I see that @guillaumerose has a theory here as well. |
@steinrr I thought you said even an hello world program it is not working so I used sample app not with |
Ok - sorry - I wrote:
I am not sure where the fault is, I use odo to push the application to OpenShift. When I restart CRC, I observe that it does not work anymore. If it is odo, OpenShift or CRC - I do not know. |
No issue, we want to understand where is the issue.
I would suggest close look on issue created on the odo side, we will also try to communicate with odo team to debug it more. |
|
I did take som status when the pod is NOT WORKING: |
|
Same debug for a new and WORKING pod: |
|
@steinrr redhat-developer/odo#4822 (comment) looks like this is not issue with CRC but how odo is working right now with mounts. I am closing this issue from here and let's track it on odo side only. |
Still does not work after the advice form odo github. Updated the post there with more information. |
General information
crc setupbefore starting it (Yes/No)? NoCRC version
CRC status
CRC config
Host Operating System
Steps to reproduce
Description of problem:
Running latest CodeReady Container version of OpenShift on my Mac. I am able to push applications to the cluster and they are working fine.
When I stop the CodeReady Container (crc stop), and start it again (crc start) - the pods are starting and seems to run fine. But when I open the URL of any of them - I get "Application is not available". I get the same on all applications - even "Hello World" kind of applications.
So somehow shutting down CRC and starting it again creates some "strange status" on the pods. I have tried to delete the pods and also to scale to 0 instances and then add instances, but they still do not work. So even if OpenShift removes the pods and start new instances - they fail. Logs do not give any info. They only way to "fix" the application is to do a "odo push -f" that forces rebuild and redeploy of the application in the OpenShift cluster.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Additional info:
Expected
Page of web application to show
Actual
Page showing "Application is not available" showing
Logs
N/A
The text was updated successfully, but these errors were encountered: