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

latest graviton machine types like *8g are not currently supported. #3174

Open
1 of 2 tasks
danbf opened this issue Feb 6, 2025 · 1 comment
Open
1 of 2 tasks

latest graviton machine types like *8g are not currently supported. #3174

danbf opened this issue Feb 6, 2025 · 1 comment
Labels
closing-soon This issue will close in 2 days unless further comments are made. feature-request A feature should be added or improved. service-api This issue is due to a problem in a service API, not the SDK implementation.

Comments

@danbf
Copy link

danbf commented Feb 6, 2025

Upcoming End-of-Support

  • I acknowledge the upcoming end-of-support for AWS SDK for Java v1 was announced, and migration to AWS SDK for Java v2 is recommended.

Describe the bug

The latest graviton machine types like families c8g and m8g are not currently supported. The last machine type additions were the R8g family:

R8gMedium("r8g.medium"),
R8gLarge("r8g.large"),
R8gXlarge("r8g.xlarge"),
R8g2xlarge("r8g.2xlarge"),
R8g4xlarge("r8g.4xlarge"),
R8g8xlarge("r8g.8xlarge"),
R8g12xlarge("r8g.12xlarge"),
R8g16xlarge("r8g.16xlarge"),
R8g24xlarge("r8g.24xlarge"),
R8g48xlarge("r8g.48xlarge"),
R8gMetal24xl("r8g.metal-24xl"),
R8gMetal48xl("r8g.metal-48xl"),

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

The SDK is kept in match step with allowed instance types in AWS until the EOL date.

Current Behavior

Use the latest https://plugins.jenkins.io/ec2/ version in Jenkins and request a c8g or m8g instance type. It will throw and error like this:

Failed to run script file:/usr/local/opt/shared-data/builder/jenkins_home/init.groovy.d/d_ec2_plugin.groovy
java.lang.IllegalArgumentException: Cannot create enum from m8g.medium value!

Reproduction Steps

Use the latest https://plugins.jenkins.io/ec2/ version in Jenkins and request a c8g or m8g instance type. It will throw and error like this:

Failed to run script file:/usr/local/opt/shared-data/builder/jenkins_home/init.groovy.d/d_ec2_plugin.groovy
java.lang.IllegalArgumentException: Cannot create enum from m8g.medium value!

Possible Solution

Can aws/aws-sdk-java-v2@91d3531 be backported from v2->v1?

Additional Information/Context

The https://github.com/jenkinsci/ec2-plugin supports only the v1 sdk currently via the https://github.com/jenkinsci/aws-java-sdk-plugin . Doing this backport would allow time for the aws-java-sdk-plugin be be updated to v2 iof the aws-sdk-java for Jenkins users which is underway in jenkinsci/ec2-plugin#1021 .

AWS Java SDK version used

1.12.201

JDK version used

openjdk 21.0.4 2024-07-16 LTS OpenJDK Runtime Environment Corretto-21.0.4.7.1 (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Corretto-21.0.4.7.1 (build 21.0.4+7-LTS, mixed mode, sharing)

Operating System and version

amazon/al2023-ami-ecs-hvm-2023.0.20240905-kernel-6.1-x86_64

@danbf danbf added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 6, 2025
@debora-ito debora-ito added feature-request A feature should be added or improved. and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 10, 2025
@debora-ito
Copy link
Member

Hi @danbf,

This falls under the service updates that the Java SDK v1 will not receive anymore after Maintenance phase has started.

To get unblocked, you can use the Instance Type String setter - .withInstanceType("c8g.medium").

Expected Behavior
The SDK is kept in match step with allowed instance types in AWS until the EOL date.

Please note that this is should not be the expected behavior, for any service and not only ec2. Once a SDK has entered Maintenance Mode it will not receive service API updates or new regions, it will only get critical bug fixes and security issue updates. This is mentioned in the end-of-support announcement and also in our Maintenance Policy.

@debora-ito debora-ito added closing-soon This issue will close in 2 days unless further comments are made. service-api This issue is due to a problem in a service API, not the SDK implementation. labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing-soon This issue will close in 2 days unless further comments are made. feature-request A feature should be added or improved. service-api This issue is due to a problem in a service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

2 participants