-
Notifications
You must be signed in to change notification settings - Fork 435
AUTOSCALE-535: default block device mappings #7583
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
base: main
Are you sure you want to change the base?
Conversation
|
@maxcao13: This pull request explicitly references no jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: maxcao13 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/test e2e-aws-techpreview |
| } | ||
| ec2NodeClass.Spec.SecurityGroupSelectorTerms = securityGroupSelectorTerms | ||
|
|
||
| // Set default BlockDeviceMappings if not specified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't honour the current consumer facing API doc
// BlockDeviceMappings to be applied to provisioned nodes.
// +kubebuilder:validation:XValidation:message="must have only one blockDeviceMappings with rootVolume",rule="self.filter(x, has(x.rootVolume)?x.rootVolume==true:false).size() <= 1"
// +kubebuilder:validation:MaxItems:=50
// +optional
BlockDeviceMappings []*BlockDeviceMapping `json:"blockDeviceMappings,omitempty"`
Please update that accordingly to clarify that the backend would preserve the ability to set a sane default subject to change if none provided
| { | ||
| DeviceName: ptr.To("/dev/xvda"), | ||
| EBS: &hyperkarpenterv1.BlockDevice{ | ||
| VolumeSize: ptr.To(resource.MustParse("75Gi")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any rationale we can add in a comment to pick this number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added a comment that the CLI has code that picks 120 for default hcp nodepools. Seems reasonable to me:
hypershift/cmd/nodepool/aws/create.go
Lines 27 to 32 in 8be1d9c
| platformOpts := &AWSPlatformCreateOptions{ | |
| InstanceType: "", | |
| RootVolumeType: "gp3", | |
| RootVolumeSize: 120, | |
| RootVolumeIOPS: 0, | |
| } |
Default block device mappings if the user doesn't set them in OpenshiftEC2NodeClass. Signed-off-by: Max Cao <macao@redhat.com>
c5e55c5 to
a9a15da
Compare
|
@maxcao13: This pull request references AUTOSCALE-535 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/test e2e-aws-techpreview |
|
@maxcao13: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What this PR does / why we need it:
Default block device mappings if the user doesn't set them in OpenshiftEC2NodeClass.
We've seen a lot of flakes in the e2e-test-techpreview and e2e-aws-autonode prow jobs where what happens is that nodes churn because of DiskPressure.
I've also seen it in manual smoketesting as well, and to get around this I've created a custom nodeclass with more block device root storage.
Which issue(s) this PR fixes:
Fixes
Special notes for your reviewer:
Checklist: