From nobody Thu Jan 29 10:04:03 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 4f1vql3h4Qz6QGvw for ; Thu, 29 Jan 2026 10:04:03 +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 4f1vql2q4Yz3M6h for ; Thu, 29 Jan 2026 10:04:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769681043; 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=kjHNWPX44A85xoyUsKnvVui5+zTMpCToVCMMhzcVgb0=; b=KPgeozNl/5BP2r/gjeZKeX4VlmNZPoNqsOkBWHpkkK1vVikw7oeYsvVA48mXa4/3HHTTcF UmQOs50yuOfqnQMbAuSjLQIMsnIWfEglPWqg0LpqZ5yzKKGneS+yI5wssDdNJbd8BKX4HN RJ/uLBLj+lINcC4v/1nZ+gvo9VZrnHgOgGH0fM//mQnI6isQwAp73wjNbpqAULz1GTnOPl 5YJGV1zH3Zv527oKBWpTN+7Ru/IrOddOrrctwReuFMVZyrlfzoKGO1FsLlboGZOeLB5eYO 16wh13I65TLXsfESDJ33tLAgtaa945VGDLBmmj8UeY5V8jV29sP4b0GYo6aouw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769681043; a=rsa-sha256; cv=none; b=NEe8zpwOMgzlrPK5AMaq19KLrjpm5zz66NQGi9sXjfOoChG4vkFOkhxq7k54Vc2XWTLMJk szqGLp54lF/acIMfZFSCpTUSDS0DJMz/xK60FrCJgixxDXNKchC3f3hk8T7vf+n12g0Sde k3F/vcc79cgrSKeoseMbO6S01y8kW/f5W22KrTCT1B+2mAHozpDKwK6xMb6zHao+sR7O3c M+bEXjpehcrwviHUbfvpclrUPxTZ15GPrp6PcDBVcyrAK2jQEP8Qf7hTMAXKYELvzAO3za 7/iSvr+T2S4+fetWhkHWZwqmVLwbIsS/ul2XD63JbTZr0g1p4p8Tybqsr6BMOQ== 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=1769681043; 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=kjHNWPX44A85xoyUsKnvVui5+zTMpCToVCMMhzcVgb0=; b=gYW457226QzHRMvYZ1VEGg88wJa92ZfB3MDTwRPzrny0yqSfoOvIb+8qc4s6LyimEYcls9 ym6YCRUAh5FNnuCvnJwyenXvnb2JAkq4AWQziwh91UvgNeljlv/EwYs01x1j0mmPYV04fk vMovyBalVeGOqdPfIVIJrhF+XuA/xHReYVMaDPM1IaFeacUjMV3dmnpY9iGpJrc//ZCuq0 843kggcFtKSbPh+eVlbkfcKwCfPhsgW3nbd4DcCU1dvloKLrhy4rdY+NEG9+4pMi1cCdk9 OV/UXyHTgGziw5LtqvTdyDJAzEuIcz37mOm27s2/KTWiU3kZfSsvkfcc6GTwIA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f1vql2HXvzZ8N for ; Thu, 29 Jan 2026 10:04:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 37663 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 29 Jan 2026 10:04:03 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 90a7728cd890 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 90a7728cd8905cd26b90d06f7873df8bad43ae9a Auto-Submitted: auto-generated Date: Thu, 29 Jan 2026 10:04:03 +0000 Message-Id: <697b3093.37663.74c23e89@gitrepo.freebsd.org> The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=90a7728cd8905cd26b90d06f7873df8bad43ae9a commit 90a7728cd8905cd26b90d06f7873df8bad43ae9a Author: Baptiste Daroussin AuthorDate: 2026-01-29 09:56:33 +0000 Commit: Baptiste Daroussin CommitDate: 2026-01-29 10:03:06 +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 --- 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 ;; *)