-
Notifications
You must be signed in to change notification settings - Fork 59
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
InstantOn app image fails to restore on OCP if deploy with /logs persistence #550
Comments
This problem was discussed in slack https://ibm-cloud.slack.com/archives/C03MR7EC3NG/p1717621969960729?thread_ts=1717187652.885869&cid=C03MR7EC3NG |
@tam512 do you see any logs persisted with a container image that doesn't use InstantOn in this setup? I see no way logs can be persisted if the mount of the |
I can recreate outside of OCP if I mount a directory which is not writable by the user in the container. When I attempt to start the same application image without the use of InstantOn then I get loads of output from verbose GC (because it cannot write to the verbosegc log and ends up logging to the standard out. I also don't see any messages or trace logs in the mounted logs directory. For the OCP case to work the logs mount has to be writable by the user in the container. That does not appear to be the case here. I am unsure how you configure the deployment on OCP to have a writable mount here. |
I can see the logs persisted without instantOn. I just deployed the app image to OCP and I can see older logs with older time stamps
|
If you just deployed the app image right now to OCP I would expect new logs with today's timestamp. |
sorry I was not clear about the logs. I saw today's log (Jun 18) and older logs
|
I suspect the issue may be the change of the security context used when deploying the instanton image. Something has to be different there that causes the mounted |
Below is the SecurityContextConstraints I used. Do I need to update anything to make it writeable to
|
Maybe @leochr knows. I'm not sure if you can compare with what the effective one is for normal apps. |
In OpenShift |
@leochr I also see the permission errors when using the above SCC with non-instanton app, but the app pod says it's running and the server actually started.
When I try to copy the app logs, it also throws permission errors
I posted the full log in slack here https://ibm-cloud.slack.com/archives/CMM0D6JHF/p1719437551545339 |
@tam512 Thanks for the info. The custom SCC |
when we deploy InstantOn app image to OCP using the following statefulSet settings
the server will fail to start with the following errors:
The text was updated successfully, but these errors were encountered: