-
Notifications
You must be signed in to change notification settings - Fork 297
Description
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 :
- v1beta1 proposal PR: BareMetalHost API v1beta1 metal3-docs#332
- how BMO handles the hints for Ironic: https://github.com/metal3-io/baremetal-operator/blob/main/pkg/provisioner/ironic/devicehints/devicehints.go
- related section of the CRD:
rootDeviceHints:
/cc @dtantsur @zaneb @hroyrh @elfosardo @kashifest
/kind feature
EDITS:
- Formatting
- Links
Metadata
Metadata
Assignees
Labels
Type
Projects
Status