Skip to content

Conversation

@irishgordo
Copy link
Contributor

  • making sure that there is no media present, that if there was we eject it
  • adds the additional rufio Action to do so prior to the one time network boot Resolves: adj/ensure-no-media-present-prior-to-pxe-boot
    Signed-off-by: Mike Russell mike.russell@suse.com

Problem:

  • ensure that there is no virtual media attached prior to network booting / ensure it's ejected

Solution:

  • use rufio to remove the virtual media by creating an action and prepending it before the pxe boot action

Related Issue(s):

https://github.com/rancherlabs/harvester-access-lab/issues/37

Test plan:

Test Case A:

  1. Find a free and available node in the inventory list, ensure it does not belong to any active clusters and that the node is powered off
  2. Attach an .iso to that node either through scripted media url or through upload
  3. Power on that node go to boot menu, select the virtual/cd rom
  4. Ensure that it can boot to the .iso, when at GRUB screen press c to enter command line, input halt to stop the node
  5. Use that node, in a Harvester cluster, cluster.metal
  6. Kubectl create -f that manifest
  7. Ensure the node meets the two following situations:
  • the iso url is wiped out / media ejected
  • the node visibly on iLO shows "Network Boot" mode is selected

Additional documentation or context

  • Network Boot Mode is not selected if ISO is attached still
Screenshot from 2025-11-17 11-27-04

@irishgordo irishgordo force-pushed the adj/ensure-no-media-present-prior-to-pxe-boot branch from 5e4301a to c4b23a9 Compare November 17, 2025 20:07
* making sure that there is no media present, that if there was we eject
  it
* adds the additional rufio Action to do so prior to the one time
  network boot
Resolves: adj/ensure-no-media-present-prior-to-pxe-boot
Signed-off-by: Mike Russell <michael.russell@suse.com>
@irishgordo irishgordo force-pushed the adj/ensure-no-media-present-prior-to-pxe-boot branch from c4b23a9 to bf97d63 Compare November 17, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant