Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1979633

Summary: Ironic configuring wrong BootSourceOverrideEnabled on HP hardware
Product: OpenShift Container Platform Reporter: Mario Vázquez <mavazque>
Component: Bare Metal Hardware ProvisioningAssignee: Tomas Sedovic <tsedovic>
Bare Metal Hardware Provisioning sub component: ironic QA Contact: Amit Ugol <augol>
Status: CLOSED NOTABUG Docs Contact:
Severity: medium    
Priority: medium CC: alosadag, derekh, dphillip, fpercoco, jparrill, mcornea, rpittau
Version: 4.8Keywords: Reopened, Triaged
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-26 09:31:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mario Vázquez 2021-07-06 15:22:42 UTC
Description of problem:

When running ZTP deployments using ACM and AI Operator we're facing one "issue" with HP hardware. Ironic mounts the ISO, configures one time boot from Virtual CD and powers on the server. That's working fine. Our issue is that our HP box will continue booting from the virtualmedia as long as it's connected.

Apparently ironic uses efimanager to configure the one-time-boot from virtual media. In the HP box it seems it configures the boot source override in a wrong way:

The current config being done by Ironic:

  "BootSourceOverrideEnabled": "Continuous",
  "BootSourceOverrideMode": "UEFI",
  "BootSourceOverrideTarget": "Cd",

The expected config (BootSourceOverrideEnabled set to Once):

  "BootSourceOverrideEnabled": "Once",
  "BootSourceOverrideMode": "UEFI",
  "BootSourceOverrideTarget": "Cd",


The hardware we're using is a ProLiant DL380 Gen10 box.


Version-Release number of selected component (if applicable):

4.8.0 RC1
ACM 2.3.0-DOWNSTREAM-2021-07-01-08-39-58

How reproducible:
Always

Steps to Reproduce:
1. Try to run a ZTP deployment on the mentioned hardware (we can provide access to a test environment)


Actual results:

User needs to either detach the virtual media or manually configure BootSourceOverrideEnabled to Once/None.

Expected results:

The BootSourceOverrideEnabled is configured so the server only boots from virtual media once.

Additional info:

Comment 2 Derek Higgins 2021-07-06 15:29:53 UTC
(In reply to Mario Vázquez from comment #0)
> Apparently ironic uses efimanager to configure the one-time-boot from
> virtual media.

Just a quick correction here, ironic uses efimanager to create EFI boot table entries,
this piece doesn't appear to have any problem, the problem occurs because ironic is setting
the "BootSourceOverrideEnabled": "Continuous", which essentially tells the Hardware to always
boot from CD and ignore the boot manager entries

> 
> The hardware we're using is a ProLiant DL380 Gen10 box.

You mentioned that this also worked at some stage on Dell hardware, Can you confirm that this
is working using the same version?

Comment 3 Mario Vázquez 2021-07-06 15:49:24 UTC
(In reply to Derek Higgins from comment #2)
> (In reply to Mario Vázquez from comment #0)
> > Apparently ironic uses efimanager to configure the one-time-boot from
> > virtual media.
> 
> Just a quick correction here, ironic uses efimanager to create EFI boot
> table entries,
> this piece doesn't appear to have any problem, the problem occurs because
> ironic is setting
> the "BootSourceOverrideEnabled": "Continuous", which essentially tells the
> Hardware to always
> boot from CD and ignore the boot manager entries
> 
> > 
> > The hardware we're using is a ProLiant DL380 Gen10 box.
> 
> You mentioned that this also worked at some stage on Dell hardware, Can you
> confirm that this
> is working using the same version?

Hey Derek,

Yes, we deployed a PowerEdge M630 using the same hub cluster and it worked without having to detach virtual media.

Comment 5 Dmitry Tantsur 2021-07-07 11:18:45 UTC
> The BootSourceOverrideEnabled is configured so the server only boots from virtual media once.

This is not correct. The feature you're using is designed to use permanent CD boot. From the Ironic perspective you need to disconnect the CD if you no longer wants to use it. Alternatively, you (== baremetal-operator) can use the Ironic boot device API to change it to the disk.

Comment 9 Derek Higgins 2021-08-26 09:31:14 UTC
This is being dealt with in the BMO as part of https://bugzilla.redhat.com/show_bug.cgi?id=1983190