Bug 2002871

Summary: Offer alternative address if requested is leased
Product: Red Hat Enterprise Linux 9 Reporter: Xueqiang Wei <xuwei>
Component: dnsmasqAssignee: Petr Menšík <pemensik>
Status: CLOSED ERRATA QA Contact: Petr Sklenar <psklenar>
Severity: high Docs Contact:
Priority: high    
Version: 9.0CC: berrange, coli, hjensas, jinzhao, jorton, jparoly, juzhang, kkiwi, kraxel, leiyang, lersek, pbonzini, pemensik, psklenar, virt-maint, xuwei
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnsmasq-2.85-3.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1998448
: 2136787 (view as bug list) Environment:
Last Closed: 2022-05-17 14:17:39 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:
Bug Depends On: 1998448    
Bug Blocks: 1711384, 1958392, 2136787    

Comment 3 Xueqiang Wei 2021-09-09 21:56:26 UTC
Versions:
kernel-5.14.0-0.rc7.54.el9.x86_64
qemu-kvm-6.0.0-13.el9_b.1
edk2-ovmf-20210527gite1999b264f1f-6.el9.noarch

Comment 4 Xueqiang Wei 2021-09-14 19:29:07 UTC
According to Bug 1810172 - Can't PXE/iPXE boot with dnsmasq and DHCPv6, tested with the latest dnsmasq, also hit this issue.


Versions:
kernel-5.14.0-1.el9.x86_64
dnsmasq-2.85-2.el9.x86_64 


# systemctl status dnsmasq
● dnsmasq.service - DNS caching server.
     Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; vendor preset: disabled)
     Active: active (running) since Wed 2021-09-15 02:09:54 CST; 15min ago
    Process: 2480 ExecStart=/usr/sbin/dnsmasq (code=exited, status=0/SUCCESS)
   Main PID: 2482 (dnsmasq)
      Tasks: 1 (limit: 16337)
     Memory: 536.0K
        CPU: 34ms
     CGroup: /system.slice/dnsmasq.service
             └─2482 /usr/sbin/dnsmasq

Sep 15 02:24:58 localhost.localdomain dnsmasq-dhcp[2482]: 7038949 requested options: 59:bootfile-url, 60:bootfile-param, 23:dns-server,
Sep 15 02:24:58 localhost.localdomain dnsmasq-dhcp[2482]: 7038949 requested options: 16:vendor-class
Sep 15 02:24:58 localhost.localdomain dnsmasq-dhcp[2482]: 7038949 tags: known, efi6, dhcpv6, eth0
Sep 15 02:24:58 localhost.localdomain dnsmasq-dhcp[2482]: 7038949 sent size: 14 option:  1 client-id  00:01:00:01:28:3c:c3:d4:00:84:ed:01:00:10
Sep 15 02:24:58 localhost.localdomain dnsmasq-dhcp[2482]: 7038949 sent size: 14 option:  2 server-id  00:01:00:01:28:d3:35:93:22:57:f8:dd:fe:3b
Sep 15 02:24:58 localhost.localdomain dnsmasq-dhcp[2482]: 7038949 sent size: 32 option:  3 ia-na  IAID=3790583253 T1=4294967295 T2=4294967295
Sep 15 02:24:58 localhost.localdomain dnsmasq-dhcp[2482]: 7038949 nest size: 16 option: 13 status  1 address in use
Sep 15 02:24:58 localhost.localdomain dnsmasq-dhcp[2482]: 7038949 sent size: 24 option: 13 status  2 no addresses available
Sep 15 02:24:58 localhost.localdomain dnsmasq-dhcp[2482]: 7038949 sent size: 28 option: 59 bootfile-url  tftp://[2001::2]/shimx64.efi
Sep 15 02:24:58 localhost.localdomain dnsmasq-dhcp[2482]: 7038949 sent size:  8 option: 39 FQDN  client

Comment 5 Petr Menšík 2021-10-05 18:25:11 UTC
Changes [1] were sent to upstream, but not yet acknowledged, merged or refused. Are you blocked by RHEL9 build without this feature? Should I push it immediately?

1. https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q3/015640.html

Comment 31 errata-xmlrpc 2022-05-17 14:17:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: dnsmasq), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2689

Comment 32 Petr Menšík 2022-10-21 10:28:48 UTC
Forgot to offer this change tu upstream, sent to mailing list:
https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2022q4/016636.html