Bug 2007642

Summary: RFE: PXE and HTTP boot should not request more than one IPv6 address by DHCPv6
Product: Red Hat Enterprise Linux 9 Reporter: Petr Menšík <pemensik>
Component: edk2Assignee: Virtualization Maintenance <virt-maint>
Status: CLOSED MIGRATED QA Contact: Lei Yang <leiyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.0CC: berrange, coli, jinzhao, juzhang, kkiwi, kraxel, leiyang, mrezanin, pbonzini, virt-maint, xuwei
Target Milestone: rcKeywords: FutureFeature, RFE, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-13 11:59:13 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1998448    
Bug Blocks:    

Description Petr Menšík 2021-09-24 12:58:44 UTC
Description of problem:
When radvd is configured to tell clients to use stateful configuration, EFI firmware obtains address straight away. But that might result in multiple adresses leased for PXE booting.

Discussed extensively as part of bug #1998448.

Version-Release number of selected component (if applicable):
edk2-ovmf-20200801stable-4.fc34.noarch

How reproducible:
reliable, not 100%

Steps to Reproduce:
1. enable AdvManagedFlag on; in radvd
2. try to boot using PXE
3.

Actual results:
Multiple leases are created.

Expected results:
Just single lease is used, InfoRequest might be used later to fetch more options.

Additional info:

Comment 1 Klaus Heinrich Kiwi 2021-09-28 11:30:46 UTC
I'm assigning this to Gerd for further analysis / comments - doesn't mean a decision has been reached about our commitment to deliver it (patches always welcome)

Comment 2 Gerd Hoffmann 2021-09-28 12:39:33 UTC
Worth investigating. Doesn't look easy though.

The code collects offers, the goes pick the best. Not fully sure why,
maybe designed to work in networks where multiple dhcp servers are active
and not all of them responding with an offer usable for network boot.

Note that both UefiPxeBcDxe and HttpBootDxe are in the same boat, from
a quick grep it seems HttpBootDxe doesn't use InfoRequest too.

Comment 8 Miroslav Rezanina 2022-09-05 07:09:30 UTC
This BZ was migrated to Jira and is no longer tracked in the Bugzilla. See https://issues.redhat.com/browse/RHELX-51 for future progress.