-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ValidationError: gp3 is invalid #1205
Comments
@ichasco-heytrade What region are you using? Since it's a new volume type it might be that it's not available yet. |
Hi @oscr The region is It suppose that every regions support it
Thanks!! :) |
@ichasco-heytrade I just got the same error message in the same region. Even if you can create that volume type via the console. |
It sounds like we have to update the aws provider version https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#3250-january-22-2021. Can you please change the required provider https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/versions.tf#L5 to 3.25.0 ? |
@barryib I'm testing it right now. |
I have tested with 3.26.0 provider version.
- Installing hashicorp/aws v3.26.0...
- Installed hashicorp/aws v3.26.0 (signed by HashiCorp)
|
For the time being, setting the
|
This might be an issue with aws launch configuration validation: https://docs.aws.amazon.com/cli/latest/reference/autoscaling/create-launch-configuration.html VolumeType -> (string)
|
I have tested with AWS provider 3.26.0 too and getting the same error:
|
It sounds like the aws api doesn't support gp3 for launch configuration https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_Ebs.html. Does anyone know if this will change in a near future ? So for now, launch configuration users must set they root_device_type to gp2 as @GerardoGR suggested. We can update the FAQ with this. |
gp3 isn't in launch configs yet. If you switch to launch templates gp3 should work. The default for launch configs for this module should be reverted back to gp2 though edit: I believe AWS is trying to push people to templates over configs. I'd honestly just use templates as I wouldn't expect them to be too quick to add support to configs |
@mzupan there is no default config for LC only. So if we rollback, we will rollback for both LC and LT. FWIW, we plan to drop launch configuration soon to let peoples move to launch template. |
This change breaks launching clusters with the default config shown in the basic example. If launch config is no longer supported, then it should be removed from all docs. Having a default value that breaks the default use of the module seems like a recipe for frustrated users. |
Just opened #1208. |
Where do you place this code? |
Hi @sharjeelsayed, you have to place it in the module:
|
What if I am using the eks_example_basic module?
|
[#176721566](https://www.pivotaltracker.com/story/show/176721566) See terraform-aws-modules/terraform-aws-eks#1205 Co-authored-by: James Pollard <[email protected]>
Hey guys I am still getting this one
Is there any solution? I am using |
I would recommend you for Switching from aws_launch_configuration to aws_launch_template as it already have support for gp3 instances. |
Also still getting this on aws provider |
How to switch to 'aws_launch_template' |
Someone correct me if I am wrong but in your module config you just change |
If you switch from |
For "aws" (2.70.0), using launch templates, still, receive this error:
|
I tried this in us-east-1 and it succeeded after making the change I suggested. Edit: It appears with my suggested change the autoscaler no longer works. Edit2: This may be related to the pods failing to match a PVC on the new node Edit3: I think the launch template needs to specify the PVC somehow Edit4: Everything works now. I somehow managed to unlink a role binding for the CSI driver... |
What's the fix? I had to change to gp2 for us-west-1 |
Do we know when gp3 will be available for Launch configuration? |
@vsenapathy is there a reason to not switch to launch templates? From what I understand, launch configurations are depreciated. |
Oh i can move to Launch templates and test this. |
@innovate-invent: I was able to get this to work with Launch template. |
Do you have a source for that? Couldn't find anything with a quick google search. |
@innovate-invent ah, thanks. Missed that while skimming. |
At least for me this is the main blocker for moving to launch templates: terraform-aws-modules/terraform-aws-autoscaling#54 |
I've made an override to default values on my template, with no need to change the values from module.
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I have issues
GP3 is unsupported in launch configuration
I'm submitting a...
What is the current behavior?
The cluster can't be created with gp3 launch configuration
If this is a bug, how to reproduce? Please include a code sample if relevant.
Environment details
Any other relevant info
Error:
Change:
The text was updated successfully, but these errors were encountered: