From nobody Tue Oct 29 14:08:06 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 4XdBtX4kjtz5bW3V; Tue, 29 Oct 2024 14:08:20 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XdBtX2yVRz4JNf; Tue, 29 Oct 2024 14:08:20 +0000 (UTC) (envelope-from mpp302@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a99f629a7aaso875103166b.1; Tue, 29 Oct 2024 07:08:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730210899; x=1730815699; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xr4bVzGhn48Vy7jGvwyYeQpcb7k6BFi2bhpZDoF0ZkM=; b=pD8CxcEXLh3+NzcjdcgIeD/aq1Ja2EqLOIzurtE8JooUGUbgAWQhYxxlxNGQpOFp3L x0JSaXEvmcmlOdMqqqQxphcQwBOf0xpImGHBC8faCs8KsWb/v0W167zBiNY2wirWgz6U 1ulgsxnZ4Rl3HDIpd/UKGRqgTWeelOM9ufBP5NUR18OX2mzsalUKSXC7ZwjVriABXvZ/ wBLlU0pLeiIZq0ECJiwhn2LZ/pA4cDE1c5lErrfGaICUOkmpQfgzIX6xNOCW+mzYOQkk +cGCNZLESHwFuMVwFenXAdDRo7rEyH9i5Q51QU8IxHi/obCGc+PyRqZ8IuAFnX2kwVA7 4YZg== X-Forwarded-Encrypted: i=1; AJvYcCVB+xyXrGM8ghkk1TpqZOtTOwQgZdakoufxgQ+6hzVTb0ZR70tlfPXvwoSvGYj266YB812S+rhNbpZqmPElVwS7ECF29U8=@freebsd.org, AJvYcCX7wnDwdU4dVaRFMMZ3tSi1E7xvd79Za3y2Knq6UZsWAA2U1t19Gb9zEPppwyQIdAIVX8DbV6JcXnyMZjKntzqfk+aF@freebsd.org X-Gm-Message-State: AOJu0Yy8nO4nQOBEDVS238oZmaD6I0Cy95gIYvYTMRhdXj56CgwVgtB0 DXP6C68wy5LDTGnbZdV7pYCag1jqxuiLd0BnLzSYngQxj8lcVRgepWSU0Z8gSfg= X-Google-Smtp-Source: AGHT+IG9U++mE+wd4ALVzjrlDXb8hqQ4TYZhiuTG0S5GUsNFjBbQAdWEJpxj4xGLDb3/H1RJhzhF2Q== X-Received: by 2002:a17:907:7f89:b0:a99:3db2:eb00 with SMTP id a640c23a62f3a-a9e2b0138bbmr224557666b.28.1730210898616; Tue, 29 Oct 2024 07:08:18 -0700 (PDT) Received: from smtpclient.apple (ip5f5af7ea.dynamic.kabel-deutschland.de. [95.90.247.234]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9b2fe2af87sm485132766b.143.2024.10.29.07.08.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Oct 2024 07:08:18 -0700 (PDT) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: git: 2775b9b0bcc2 - main - nuageinit: add support for OpenStack network config From: Mateusz Piotrowski <0mp@FreeBSD.org> In-Reply-To: <202410291324.49TDOrqu017551@gitrepo.freebsd.org> Date: Tue, 29 Oct 2024 15:08:06 +0100 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <0458B366-0255-4E68-BC03-62680CF5C2F2@FreeBSD.org> References: <202410291324.49TDOrqu017551@gitrepo.freebsd.org> To: Baptiste Daroussin X-Mailer: Apple Mail (2.3776.700.51) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4XdBtX2yVRz4JNf X-Spamd-Bar: ---- Hey Baptiste, > On 29. Oct 2024, at 14:24, Baptiste Daroussin = wrote: =E2=80=A6 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3D2775b9b0bcc278dd4183b57784953c26= a3fcdc89 =E2=80=A6 > nuageinit: add support for OpenStack network config >=20 > 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. >=20 > While here make the rc script execute after devmatch, some ethernet > device might be attached via devmatch and may be needed for = cloudinit. =E2=80=A6 > diff --git a/libexec/rc/rc.d/nuageinit b/libexec/rc/rc.d/nuageinit =E2=80=A6 > @@ -14,6 +14,18 @@ start_cmd=3D"nuageinit_start" > stop_cmd=3D":" > rcvar=3D"nuageinit_enable" >=20 > +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=