From nobody Thu Feb 05 14:09:53 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4f6JyB0l5Nz6QbJR for ; Thu, 05 Feb 2026 14:09:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f6Jy95D4cz481x for ; Thu, 05 Feb 2026 14:09:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770300593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=H6sMwx+23L9GODEh48F8fmQjFjIsBr7aAEXxuN8PlEE=; b=MueyclYqwM8Kphpar/dxpm/MLY5NNjW4aNWF7ppCLfh4rQeGzYopLpz+NYShDv9cQNAeN9 K0k4JaueDt/OqlE09rTfulWBOMad0ztJDqMESVwmXeFIs5UTekllrMzI2UB3nnnfGuxMt9 dgd7jYePc1g2RVNHCioSD4G2fJykrTH49/BcSfuHizDIHRmPeOf8FtvCntznHtV5o5e76W bGem/jjIOXSQWF7cUMe8eeHHofvHIApYOJgwUXoK+UVSNgX5sT9nBa4HfEEIodBqAMyljD K5pCA8COoIaTqBQugsQtKTNWIZwW/9pPwGJcSR+Si7vfeQJJ7Hd+qxP7J7IdSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770300593; a=rsa-sha256; cv=none; b=GRYGaQRV35L8k3uq+rCFPH8ymWv9truFvIEPIfL3hT/LZCropDSt0uYcm1FDUoGPzhAANz 36UWpGoYcKQ46rY+Lbt/IpMhmR79ywmC9khUVhGT/L8fIqHoN7rM6Hq+dJhdaMqvZIBDYP FOZb+Y7+mDwvS8bFeD+N/7luXZVY0bwxigOsSLe74iqW+rFO7/oOncLa7fORYiiS8HNnSA Itmv7GoJHx2U16iNGQq0CvH/K21NRUnhYo2flxHj+3pO2psk7pPQ/OpBUPCEfV54gthUBP gh051dYzPqcxBnqvAddE0cB8Tg/9uKIbRJEYizeAlAfHHnLIWLPgM4kQA4280Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770300593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=H6sMwx+23L9GODEh48F8fmQjFjIsBr7aAEXxuN8PlEE=; b=K3a9Q26PAlkZLBPePUDNXgBcPHRJK45WOuniabnYDNVugaJx/tfyn8GschjVSWx8SyQzrZ CTTWd+RWMotegnPexUhnjDoPjqC0Q1i52RZds9keOXWt8/7AR0EegmaFNkbCDa4uaBVvaq jqXnng4z/dBcphIvlaecxqYYi8Knq279gxeUJ05lMfq+GZtkXNkmgiK3WXHB0GOKiSXUnJ tud3nsu1kMxD49iIX9M6vqsPLB2Hg3/ixuiEAWaWoybOn468q9/ipvnhC+oUXrloZm+MZj q8HxHvWywsya5wMYCXZnDRhfAKLSY/t/PBJZv3CXXff9TclVArrz5neT0bjvRA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f6Jy93zDkzYsK for ; Thu, 05 Feb 2026 14:09:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3809e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 05 Feb 2026 14:09:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Baptiste Daroussin Subject: git: cfd1ade5c712 - stable/15 - nuageinit: support fetching configuration on multiple iface List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: cfd1ade5c7125eda8d055d896004a18fc33b961d Auto-Submitted: auto-generated Date: Thu, 05 Feb 2026 14:09:53 +0000 Message-Id: <6984a4b1.3809e.6459d4b2@gitrepo.freebsd.org> The branch stable/15 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=cfd1ade5c7125eda8d055d896004a18fc33b961d commit cfd1ade5c7125eda8d055d896004a18fc33b961d Author: Baptiste Daroussin AuthorDate: 2026-01-29 09:56:33 +0000 Commit: Baptiste Daroussin CommitDate: 2026-02-05 14:09:50 +0000 nuageinit: support fetching configuration on multiple iface On some environement a VM can be connected to multiple ifaces but only one will respond to dhcp and able to fetch the metadata. Launch the early dhclient on all available ifaces and as soon as one dhcp has successfully configured an iface, proceed with fetching the metadata. MFC After: 1 week Reported by: mateusz.klejn@ovhcloud.com Tested by: mateusz.klejn@ovhcloud.com Sponsored by: OVHcloud (cherry picked from commit 90a7728cd8905cd26b90d06f7873df8bad43ae9a) --- libexec/rc/rc.d/nuageinit | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libexec/rc/rc.d/nuageinit b/libexec/rc/rc.d/nuageinit index c901971488bd..259ce3c138e5 100755 --- a/libexec/rc/rc.d/nuageinit +++ b/libexec/rc/rc.d/nuageinit @@ -56,10 +56,15 @@ nuageinit_start() OpenStack*) mkdir -p /media/nuageinit/openstack/latest ifaces=$(ifconfig -l ether) - set -- $ifaces - dhclient -p /tmp/ephemeraldhcp.pid $1 + for iface in $ifaces; do + dhclient -p /tmp/ephemeraldhcp.$iface.pid $iface + done + pids=$(cat /tmp/ephemeraldhcp.*.pid) + left=$(pwait -op $pids 2>/dev/null) + for iface in $left; do + kill -15 $left + done fetch_openstack - pkill -F /tmp/ephemeraldhcp.pid citype=config-2 ;; *)