Skip to content

introducing maxSizeGigabyte rootDeviceHint field #1308

@Rozzii

Description

@Rozzii

User Story

Although the custom root device hint operator issue has been frozen #1159,
I believe introducing a single extra (non Ironic specific) disk size related root device hint type would be beneficial and it would fit logically among the existing options as minSizeGigabye option is already present.

Detailed Description

I would like to introduce the maxSizeGigabye integer field to the rootDeviceHint object and make it visible on the API.

In case both maxSizeGigabyte and minSizeGigabyte would be populated, then it would be up to the provisioner interface to decide how that is interpreted but for the default provisioner (Ironic) I would like to implement a logic that interprets this situation as a range specification and it would execute 1 extra check.

The extra check would be that minSizeGigabyte <= maxSizeGigabyte otherwise the hint[size] wouldn't be populated. I went for not populating hint[size] in case of the extra check fails because the current behavior is the same for all rootDeviceHints for Ironic .

With the introduction of a single Integer field a BMH root device hint could specify the max, the exact and a range of sizes in addition to the already existing min size.

Anything else you would like to add:

  • I would like to add this change to the stabilized v1alpha1 as it is not a complex change.
  • I am willing to implement the change.

[Miscellaneous information that will assist in solving the issue.]

A few references :

/cc @dtantsur @zaneb @hroyrh @elfosardo @kashifest
/kind feature

EDITS:

  • Formatting
  • Links

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.triage/acceptedIndicates an issue is ready to be actively worked on.

Type

No type

Projects

Status

BMO WIP

Relationships

None yet

Development

No branches or pull requests

Issue actions