[PATCH 1/3] *** DO NOT APPLY UPSTREAM ***

Michal Privoznik mprivozn at redhat.com
Mon Jun 15 11:32:34 UTC 2020


This is a demo of the problem. Set up two NATed networks with
dnsmasq and start a domain with two interfaces, one from each
network. Only one network will report DHCP lease in 'virsh
net-dhcp-leases'.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 src/network/leaseshelper.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/network/leaseshelper.c b/src/network/leaseshelper.c
index a1780ca4e4..02759f2314 100644
--- a/src/network/leaseshelper.c
+++ b/src/network/leaseshelper.c
@@ -172,6 +172,8 @@ main(int argc, char **argv)
     case VIR_LEASE_ACTION_ADD:
     case VIR_LEASE_ACTION_OLD:
         /* Create new lease */
+        sleep(60);
+
         if (virLeaseNew(&lease_new, mac, clientid, ip, hostname, iaid, server_duid) < 0)
             goto cleanup;
         /* Custom ipv6 leases *will not* be created if the env-var DNSMASQ_MAC
-- 
2.26.2




More information about the libvir-list mailing list