From nobody Tue Oct 29 14:15:27 2024 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 4XdC2n2DMsz5bW47; Tue, 29 Oct 2024 14:15:29 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XdC2n1h3cz4KGG; Tue, 29 Oct 2024 14:15:29 +0000 (UTC) (envelope-from bapt@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730211329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Odcsk52qxPDTxSAchOwEsnFruJ2gMFrYMvOD/c0GHD4=; b=R2vIhnxApYX9yYZb6CrSf4guQ7hy5cUEDgkJGVYdV+R9TmWfljsFE2pu8pE8bs8772Q90T XQEqs5pTDSBPcDge1otMQi4KDraj0QE/Jb9L83JJ1PpphtqsU0cXQmhOhOPZoNWi1o0mU9 hruZ9NZORo4BDoBFa+JH3ZXz+XozIS/hMF6IHbOViqoFnZTnQ2j8vP/NCxPOx4N9Eeo3Is aC88PL5FO008A3RzgniE2FYLloA07biPL2FxLpWN/nySkKfMn7VJQl/8KFsJQS2vJXLKNl SgsGyZdRmIE2ADz0mt7B93qlf59LzWYL9ZOrFRtNtZw9G3fSlV34Pghxdp1J/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730211329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Odcsk52qxPDTxSAchOwEsnFruJ2gMFrYMvOD/c0GHD4=; b=vaxF5ycm3J59XMt0PPpUOvyoRHuDoVDNlp+k+uW6PN2ALt0Pvp/CzzorN4JrnbUqRIYZoj Cdm34YcK/r0//HQUPKUE90GLs1M164jQHgLj2JRlMEnv+05ojctJU3L91fgk8WdD02JnVO ZSDJ7nZW8Fs4QM+AjDPzbxeM2UyDhMFvPgoM5QKNHMQMi1nMd40btwMP+qoqDzEfogQ/PB AZk3znZxgs7DTBANaWj4UxAXdk0Td8Qm/Bu/ZVSPVl7C65Dhn3dhaHJaz9SxMdmq/SP4fv rhZjr3DTaHT0tya/KR0v8QReuRfhv0iPxUr+/5MTiYGYmbeVHCynleSyv17S4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730211329; a=rsa-sha256; cv=none; b=qDSykMp9z87N7EBmBoxBNVIEpvznUn6F+57vCKMt/OS5tRiXBOY24K7qXYOecVT2ErEnVy xafmOjgA9oTtpuAcB2OF02fORHyHGG2w/3QDVKgfLTLflZHC4U5HHi5IbBJRH2cZiiDtci seV8AtoaFTyyec97bt5SdSaGKZiD2BD4q0fmguswEs4/0HwhMcYD5glHw9Meyx0DPiHpsI hvEBiZxTLquLhHnUmKukpwP3h+J22J0iRLWw8RrgjBlyRIvTVkLjbmiwGyAJzDNwHZEG+j ymZelPV3N+l3JsJ6SCCUj35jIT0vI1D9gEVMmZMo/0KO7+pSPDMCZ7hvuDrgsA== Received: from aniel.nours.eu (nours.eu [IPv6:2001:41d0:8:3a4d::1]) (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 did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XdC2n0b7Lz13mK; Tue, 29 Oct 2024 14:15:29 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id 26ECC1D2F43; Tue, 29 Oct 2024 15:15:27 +0100 (CET) Date: Tue, 29 Oct 2024 15:15:27 +0100 From: Baptiste Daroussin To: Mateusz Piotrowski <0mp@freebsd.org> Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Subject: Re: git: 2775b9b0bcc2 - main - nuageinit: add support for OpenStack network config Message-ID: References: <202410291324.49TDOrqu017551@gitrepo.freebsd.org> <0458B366-0255-4E68-BC03-62680CF5C2F2@FreeBSD.org> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0458B366-0255-4E68-BC03-62680CF5C2F2@FreeBSD.org> On Tue 29 Oct 15:08, Mateusz Piotrowski wrote: > Hey Baptiste, > > > On 29. Oct 2024, at 14:24, Baptiste Daroussin wrote: > … > > URL: https://cgit.FreeBSD.org/src/commit/?id=2775b9b0bcc278dd4183b57784953c26a3fcdc89 > … > > nuageinit: add support for OpenStack network config > > > > Add naive support for openstack network config. > > if no config driver have been found, try to detect that we are running a > > VM on openstack via the smbios information, use the first iface > > available and temporary activate dhcp on it, to be able to fetch the > > necessary informations for cloudinit. > > > > While here make the rc script execute after devmatch, some ethernet > > device might be attached via devmatch and may be needed for cloudinit. > … > > diff --git a/libexec/rc/rc.d/nuageinit b/libexec/rc/rc.d/nuageinit > … > > @@ -14,6 +14,18 @@ start_cmd="nuageinit_start" > > stop_cmd=":" > > rcvar="nuageinit_enable" > > > > +fetch_openstack() > > +{ > > + cd /media/nuageinit/openstack/latest > > + for file in meta_data.json network_data.json user_data; do > > + fetch http://169.254.169.254/openstack/latest/$file || : > > Is it intended to fetch over HTTP? > > > Best, > > Mateusz Yes why ? https://github.com/canonical/cloud-init/blob/96a07fb75341b8c774351f1e8508b97cfe60de1a/cloudinit/sources/DataSourceOpenStack.py#L75 Cloud init does the same. Bapt