Skip to content

Conversation

@Cellebyte
Copy link

@Cellebyte Cellebyte commented Aug 13, 2025

What this PR does / why we need it:

It allows configuring the force_persistent_boot_device: <value> when deploy_interface: direct is used.
It uses the same variable as for deploy_interface: ramdisk.

I did not rename the current env var LIVE_ISO_FORCE_PERSISTENT_BOOT_DEVICE to be backwards compatible.
It introduces a new environment variable DIRECT_DEPLOY_FORCE_PERSISTENT_BOOT_DEVICE which can be toggled when using the direct interface.
The default is the same behaviour as before, so people need to actively opt-in.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #2613

@metal3-io-bot metal3-io-bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 13, 2025
@metal3-io-bot
Copy link
Contributor

Hi @Cellebyte. Thanks for your PR.

I'm waiting for a metal3-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 13, 2025
@Cellebyte Cellebyte force-pushed the fix/#2613 branch 3 times, most recently from e97f4a4 to f4b04fe Compare August 13, 2025 10:46
@tuminoid
Copy link
Member

/ok-to-test

@metal3-io-bot metal3-io-bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 18, 2025
@Cellebyte
Copy link
Author

@tuminoid is this error in the test related to my change?

@tuminoid
Copy link
Member

@tuminoid is this error in the test related to my change?

Not sure, do not have time right now to dig into. So, let's rerun and if it fails to the same, then very likely yes :)
/retest

@Cellebyte
Copy link
Author

@tuminoid thank you for rerunning, seems to look good :)

@tuminoid
Copy link
Member

@tuminoid thank you for rerunning, seems to look good :)

The prow keywords work for anyone after initial ok-to-test btw. Just in case you need to make some revisions and want/need to run some tests.

@Cellebyte
Copy link
Author

Good to know :) THX

Copy link
Member

@tuminoid tuminoid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lentzi90
Copy link
Member

I don't know this well enough to review properly, just noting that this may count as ✨ instead of 🐛 maybe?

@Cellebyte
Copy link
Author

Cellebyte commented Aug 21, 2025

@lentzi90 I am not sure if it counts as ✨ .
I think I need to still add tests for ther kernel URL ramdisk URL part :)

@Cellebyte Cellebyte force-pushed the fix/#2613 branch 2 times, most recently from 9b9575d to 8f9ed88 Compare August 22, 2025 05:55
@metal3-io-bot metal3-io-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 22, 2025
@Cellebyte
Copy link
Author

/retest

@Cellebyte
Copy link
Author

So the tests are added. And everything is green :)

@tuminoid
Copy link
Member

tuminoid commented Sep 8, 2025

So the tests are added. And everything is green :)

Yay :) Can you squash the commit please.

@Cellebyte
Copy link
Author

I can :) Will do that today :)

@Cellebyte
Copy link
Author

/retest

@tuminoid
Copy link
Member

/cc @zaneb @dtantsur @elfosardo
Let's get more eyes on this meanwhile.

@metal3-io-bot metal3-io-bot requested a review from zaneb September 10, 2025 08:24
@Rozzii Rozzii moved this to BMO WIP in Metal3 - Roadmap Sep 12, 2025
@Rozzii Rozzii added this to the BMO - v0.12 milestone Sep 12, 2025
@Cellebyte
Copy link
Author

Can this be merged?

@zaneb
Copy link
Member

zaneb commented Oct 7, 2025

If people rely on the behaviour, it could break hosts using deploy_interface: direct after this MR is implemented as it is currently drafted.

We do currently rely on this behaviour in OpenShift. So I assume that this change will break us and 100% of other people who are using the environment variable (if any).

In the bug you said that "you could also run a Live ISO like system using the direct deploy_interface" but could means you also could not do that, so setting it in an environment variable where it affects every BMH sounds like almost certainly the wrong way to configure it. For live ISO, users opt in to the configuration by selecting the live-iso image format. (TBH I have no idea why it is even configurable and not baked in to live-iso handling.)

@Cellebyte
Copy link
Author

Cellebyte commented Oct 7, 2025

I mean I could also add another environment variable which configures it for the direct interface. This would not break it for users which use both ways for their BMHs and only want to set it for live-iso.

@Rozzii
Copy link
Member

Rozzii commented Oct 7, 2025

/hold cancel
Removing the hold because 0.11 has been released.

I mean I could also add another environment variable which configures it for the direct interface. This would not break it for users which use both ways for their BMHs and only want to set it for live-iso.

This sounds reasonable IMO.

@metal3-io-bot metal3-io-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 7, 2025
Copy link
Member

@Rozzii Rozzii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good but it will be reworked to provide separately configurable persistent boot device behavior.

@Cellebyte
Copy link
Author

@Rozzii I will update this PR to accomodate for it :)

@Cellebyte Cellebyte force-pushed the fix/#2613 branch 3 times, most recently from 7be48f7 to 0d3977e Compare October 7, 2025 09:08
@Cellebyte
Copy link
Author

PR is updated to accomodate for the feedback.

@Cellebyte Cellebyte requested review from Rozzii and tuminoid October 9, 2025 22:27
@Cellebyte
Copy link
Author

@Rozzi can this one be merged?

@MahnoorAsghar
Copy link
Contributor

I think the PR description needs to be updated about renaming the LIVE_ISO_FORCE_PERSISTENT_BOOT_DEVICE env variable, which is now backwards-compatible

Copy link
Member

@Rozzii Rozzii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
Sorry for the late reply.

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Rozzii

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

The pull request process is described 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

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 6, 2025
…erface=direct` using env

Signed-off-by: Marcel Fest <[email protected]>
@Cellebyte
Copy link
Author

@zaneb is this now ok to merge? :)

@zaneb
Copy link
Member

zaneb commented Nov 24, 2025

This seems correctly-named and shouldn't break anybody now.

@Cellebyte
Copy link
Author

Can this be merged into the v0.12 + main?

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

Status: BMO WIP

Development

Successfully merging this pull request may close these issues.

[ironic] force_persistent_boot_device can only be configured from env, when mode ramdisk (deployIso) is used

7 participants