-
Notifications
You must be signed in to change notification settings - Fork 521
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] Compatibility issues with the v1.26.0 of Bottlerocket when running Java-based applications #4260
Comments
We are also seeing this with Python libraries: |
I'm faced with the same issue as above. For now to temporarily rectify the problem, I've pinned a version of Bottlerocket that Karpenter should use which doesn't have issue. ec2NodeClass:
|
Same error here for java. is it possible disable deploy pre-releases? |
We are seeing this:
We were on: Rollback to previous version worked for us as well |
Causing issues for javascript apps as well
Fix for now by pinning to v1.25 of bottlerocket
|
The 1.26.0 release of Bottlerocket included a change to restrict system services from mapping memory as both writable and executable (bottlerocket-os/bottlerocket-core-kit#158). Although intended to apply only to the host software, which does not need this capability, the restriction also erroneously applied to applications running inside containers. Software relying on just-in-time (JIT) compilation, such as Java or NodeJS, often needs to mark memory as both writable and executable, and this change caused pods running Java and NodeJS applications to fail. To mitigate the impact, the 1.26.0 release has been rolled back and 1.25.0 is now marked as latest. |
Closing this issue as the fix for this (referenced above) was released in Bottlerocket v1.26.1: https://github.com/bottlerocket-os/bottlerocket/releases/tag/v1.26.1 |
Image I'm using: bottlerocket-aws-k8s-1.31-x86_64-v1.26.0-85f0d68c
What I expected to happen: All nodes using the latest Bottlerocket AMI should be able to run Java-based pods without any issues.
What actually happened: When Karpenter rolled out new nodes using the latest Bottlerocket AMI, all the Java based pods placed in the new nodes are crashing:
kg po -A -owide | grep -v Running | wc -l
125
kg po -A -owide | wc -l
1756
Steps to Reproduce:
1.) Provision new nodes using the latest Bottlerocket AMI for AWS Kubernetes (bottlerocket-aws-k8s-1.31-x86_64-v1.26.0-85f0d68c).
2.) Deploy Java-based pods on the new nodes.
3.) Observe the pods crashing with the above-mentioned errors.
Logs of the pods running in v.1.26.0:
Logs of the pods running in v.1.25.0:
Workaround: Rolling back the nodes to the previous version v1.25.0 fixed the issue.
The text was updated successfully, but these errors were encountered: