Skip to content

Conversation

@maxcao13
Copy link
Member

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:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 24, 2026
@openshift-ci-robot
Copy link

@maxcao13: This pull request explicitly references no jira issue.

Details

In response to this:

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:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 24, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. do-not-merge/needs-area labels Jan 24, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 24, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 24, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: maxcao13
Once this PR has been reviewed and has the lgtm label, please assign devguyio for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the area/karpenter-operator Indicates the PR includes changes related to the Karpenter operator label Jan 24, 2026
@maxcao13
Copy link
Member Author

/test e2e-aws-techpreview
/test e2e-aws-autonode

}
ec2NodeClass.Spec.SecurityGroupSelectorTerms = securityGroupSelectorTerms

// Set default BlockDeviceMappings if not specified
Copy link
Member

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")),
Copy link
Member

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?

Copy link
Member Author

@maxcao13 maxcao13 Jan 27, 2026

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:

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>
@maxcao13 maxcao13 force-pushed the fix-root-volume-storage branch from c5e55c5 to a9a15da Compare January 27, 2026 21:59
@maxcao13 maxcao13 changed the title NO-JIRA: default block device mappings AUTOSCALE-535: default block device mappings Jan 27, 2026
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 27, 2026

@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.

Details

In response to this:

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:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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.

@openshift-ci openshift-ci bot added the area/api Indicates the PR includes changes for the API label Jan 27, 2026
@maxcao13
Copy link
Member Author

/test e2e-aws-techpreview

@maxcao13 maxcao13 requested a review from enxebre January 27, 2026 22:05
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 28, 2026

@maxcao13: all tests passed!

Full PR test history. Your PR dashboard.

Details

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api Indicates the PR includes changes for the API area/karpenter-operator Indicates the PR includes changes related to the Karpenter operator do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants