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

Oracle Testcontainers shm error on Kubernetes >= 1.30 #903

Open
jonmcewen opened this issue Jan 22, 2025 · 2 comments
Open

Oracle Testcontainers shm error on Kubernetes >= 1.30 #903

jonmcewen opened this issue Jan 22, 2025 · 2 comments

Comments

@jonmcewen
Copy link

jonmcewen commented Jan 22, 2025

Scenario

  • GitLab Runner deployed to Amazon EKS with Sysbox runtime.
  • CI job running a Spring Boot test using testcontainers to start an Oracle XE database.

Issue

The above works with Sysbox v0.6.4 on Kubernetes 1.29, but fails with Sysbox v0.6.6 on Kubernetes 1.30, with the following error message from the Oracle database:

ORA-00600: internal error code, arguments: [ksmcsg: failed to get total shm available], [], [], [], [], [], [], [], [], [], [], []
ORA-27300: OS system dependent operation:Cannot open /proc/sys/kernel/shm failed with status: 75
ORA-27301: OS failure message: Value too large for defined data type
ORA-27302: failure occurred at: sskgmgtssa_1

Diagnosis

My investigation so far suggests that the problem was introduced in cri-o 1.30.

I have tried the following in an attempt to diagnose:

  • Sysbox v0.6.6 on Kubernetes 1.30 - fails as described above
  • Sysbox v0.6.4 on Kubernetes 1.30 - fails with the same error
  • Sysbox v0.6.4 on Kubernetes 1.29 - works (test passes)
  • Kubernetes 1.30 (containerd), with no sysbox - works

Minimal project

I have created a minimal Maven/Spring Boot project that can be used to recreate the issue.

@jonmcewen
Copy link
Author

jonmcewen commented Jan 22, 2025

The only likely cause I can see is this, but I can't understand why: nestybox/cri-o@f7c3a7f

There is a condition added round the chown of shmPath (line 578)

@jonmcewen
Copy link
Author

@ctalledo please could you have a look at this when you have time (or suggest someone else who could)?. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant