On Thu, 9 Jul 2026 16:08:07 +0000 Thaison Phan wrote:
> When netdevsim devices are reloaded into a non-default network namespace
> via 'devlink dev reload', the host's udev daemon does not receive the
> subsequent device creation events since it is generally associated to the
> default network namespace, so the host udevd queue never officially clears.
> As a result, running 'udevadm settle' blocks indefinitely and eventually
> times out.
>
> Fixed this by bypassing 'udevadm settle' when a namespace ('ns') is
> provided by utilizing the namespace-aware 'self.wait_for_netdevs()'
> helper to poll the namespace's sysfs until the interfaces are visible.
> For host-only configurations (where 'ns' is None), preserve the original
> 'udevadm settle' behavior to ensure udev renaming rules are completed.
I don't get it. I never saw it hang. And if the event is scoped udevadm
settle should return immediately, rather than hang. We generally run
on latest systemd udev in Fedora and CentOS. Please explain your problem
better.
> Also fixed minor bug in wait_for_devs() where wrong exception was caught
> from if get_ifnames() failed. Now the if get_ifnames() results in a
> command failure exception, wait_for_devs() will catch the exception and
> set an empty list for the interface names rather than the exception
> propogating upward.
Should be a separate patch
--
pw-bot: cr