Skip to content

bm_sno: Add cifmw_bm_agent_reuse_vmedia skip mode#3999

Draft
bogdando wants to merge 1 commit into
openstack-k8s-operators:mainfrom
bogdando:bm_sno_manual
Draft

bm_sno: Add cifmw_bm_agent_reuse_vmedia skip mode#3999
bogdando wants to merge 1 commit into
openstack-k8s-operators:mainfrom
bogdando:bm_sno_manual

Conversation

@bogdando

Copy link
Copy Markdown
Contributor

When the iDRAC cannot fetch the agent ISO over HTTP (network routing, firewall), the only viable path is to upload the ISO through the iDRAC web UI as a local file.

The role previously had no way to skip ISO generation and VirtualMedia insertion on a second run

Introduce cifmw_bm_agent_reuse_vmedia (default: false). When true, the role skips: stale-state cleanup, ISO generation, live- debug ISO patching, podman HTTP server start/stop, VirtualMedia eject before insert, ISO insertion, and VirtualMedia eject after install. All remaining steps run unchanged: USB boot check, power- off, SSH key and config generation, openshift-install acquisition, LVMS MachineConfig generation, UEFI boot-override discovery, power-on, and install wait.

The intended two-run workflow (which rather works the best for wrappers using the bm_sno role instead of CI jobs):

  • Run 1 (reuse_vmedia=false) generates the ISO and auth artifacts;
  • the operator uploads the ISO via the iDRAC UI and confirms it is Connected;
  • run 2 (reuse_vmedia=true) powers the host off, sets the one-time UEFI boot override, powers it back on, and waits for install-complete

Assisted-By: claude-4.6-sonnet-medium

When the iDRAC cannot fetch the agent ISO over HTTP (network
routing, firewall), the only viable path is to upload the ISO
through the iDRAC web UI as a local file.

The role previously had no way to skip ISO generation and
VirtualMedia insertion on a second run

Introduce cifmw_bm_agent_reuse_vmedia (default: false). When
true, the role skips: stale-state cleanup, ISO generation, live-
debug ISO patching, podman HTTP server start/stop, VirtualMedia
eject before insert, ISO insertion, and VirtualMedia eject after
install. All remaining steps run unchanged: USB boot check, power-
off, SSH key and config generation, openshift-install acquisition,
LVMS MachineConfig generation, UEFI boot-override discovery,
power-on, and install wait.

The intended two-run workflow (which rather works the best for
wrappers using the bm_sno role instead of CI jobs):
- Run 1 (reuse_vmedia=false) generates the ISO and auth artifacts;
- the operator uploads the ISO via the iDRAC UI and confirms it
  is Connected;
- run 2 (reuse_vmedia=true) powers the host off, sets the one-time
  UEFI boot override, powers it back on, and waits for install-complete

Assisted-By: claude-4.6-sonnet-medium
Signed-off-by: Bohdan Dobrelia <bdobreli@redhat.com>
@openshift-ci

openshift-ci Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

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 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign michburk 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

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/b9d854e8a0f94f05828244cef481c31a

openstack-k8s-operators-content-provider NODE_FAILURE Node(set) request 100-0000119764 failed in 0s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal-minor-update SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ cifmw-pod-zuul-files SUCCESS in 5m 05s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 59s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 36s
✔️ cifmw-molecule-bm_sno SUCCESS in 5m 32s

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant