<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 15px; font-family: Calibri, sans-serif;">
<div>Hi Marcin, Kea team,</div>
<div><br>
</div>
<div>Hope you are doing good.</div>
<div><br>
</div>
<div>I have been running perfdhcp using an interface inside a Linux namespace </div>
<div>successfully. I have also been able to successfully run multiple instances of</div>
<div>perfdhcp using interfaces in multiple namespaces simultaneously.</div>
<div><br>
</div>
<div>But, when I have 2,000 namespaces and run perfdhcp inside each of these</div>
<div>namespaces, I see that perfdhcp throws the following error even though the </div>
<div>interface used by perfdhcp has an IP address. This error is NOT seen when I</div>
<div>run perfdhcp instances in a few (100-200) namespaces but is seen when I</div>
<div>run them in 2,000 namespaces.</div>
<div><br>
</div>
<div>
<div>Error running perfdhcp: There is no address for interface: tapa748acb8-a1, port: 67, address family: AF_INET</div>
</div>
<div><br>
</div>
<div>Below is the interface tapa748acb8-a1 (inside the namespace </div>
<div>testns-DHCP-network-0) that has the IP address 1.0.0.1. The interface is up.</div>
<div><br>
</div>
<div>
<div># sudo ip netns exec testns-DHCP-network-0 ifconfig</div>
<div>tapa748acb8-a1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500</div>
<div> inet 1.0.0.1 netmask 255.255.255.0 broadcast 1.0.0.255</div>
<div> ether ee:ff:ff:ff:ff:ef txqueuelen 0 (Ethernet)</div>
<div> RX packets 138 bytes 9280 (9.0 KiB)</div>
<div> RX errors 0 dropped 0 overruns 0 frame 0</div>
<div> TX packets 45 bytes 3590 (3.5 KiB)</div>
<div> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</div>
<div><br>
</div>
</div>
<div>Below is the perfdhcp output (with verbose diagnostics enabled). Could you </div>
<div>please let me know what the issue is. What am I missing ? Is this a </div>
<div>scale/concurrency issue ? The same exact perfdhcp command below works </div>
<div>perfectly fine when I have a few (100-200) namespaces and run perfdhcp</div>
<div>instances using interfaces in them.</div>
<div><br>
</div>
<div># sudo ip netns exec testns-DHCP-network-0 /usr/local/sbin/perfdhcp -x aeistT -4 -b mac=fa:16:00:00:00:00 -r 5 -R 5 -p 10 -l tapa748acb8-a1</div>
<div>
<div>Running: perfdhcp -x aeistT -4 -b mac=fa:16:00:00:00:00 -r 5 -R 5 -p 10 -l tapa748acb8-a1</div>
<div>IPv4</div>
<div>lease-type=address-only (IA_NA option added to the client's request)</div>
<div>rate[1/s]=5</div>
<div>clients=5</div>
<div>base[0]=mac=fa:16:00:00:00:00</div>
<div>test-period=10</div>
<div>drop-time[0]=1</div>
<div>drop-time[1]=1</div>
<div>aggressivity=1</div>
<div>broadcast</div>
<div>elp-offset=-1</div>
<div>sid-offset=-1</div>
<div>rip-offset=-1</div>
<div>diagnostic-selectors=aeistT</div>
<div>interface=tapa748acb8-a1</div>
<div>server=255.255.255.255</div>
<div>Set MAC to fa::16::00::00::00::00</div>
<div>Set DUID to 000100011d793ce4000c01020304</div>
<div>Error running perfdhcp: There is no address for interface: tapa748acb8-a1, port: 67, address family: AF_INET</div>
<div># </div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>
<div>Vikram Hosakote</div>
<div>OpenStack Software Engineer</div>
<div><a href="mailto:vhosakot@cisco.com">vhosakot@cisco.com</a></div>
<div>Cloud and Virtualization Group</div>
<div>Cisco Systems</div>
</div>
<div>Boxborough, MA, USA</div>
</body>
</html>