Date: Tue, 29 Oct 2024 15:15:27 +0100 From: Baptiste Daroussin <bapt@freebsd.org> To: Mateusz Piotrowski <0mp@freebsd.org> Cc: "src-committers@freebsd.org" <src-committers@freebsd.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@freebsd.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@freebsd.org> Subject: Re: git: 2775b9b0bcc2 - main - nuageinit: add support for OpenStack network config Message-ID: <z7m4jfm3f3obs3by4ytrnqwnt2c4wqsria6iytf5qnxzd25rad@dnff3c7ddpve> In-Reply-To: <0458B366-0255-4E68-BC03-62680CF5C2F2@FreeBSD.org> References: <202410291324.49TDOrqu017551@gitrepo.freebsd.org> <0458B366-0255-4E68-BC03-62680CF5C2F2@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue 29 Oct 15:08, Mateusz Piotrowski wrote: > Hey Baptiste, > > > On 29. Oct 2024, at 14:24, Baptiste Daroussin <bapt@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?z7m4jfm3f3obs3by4ytrnqwnt2c4wqsria6iytf5qnxzd25rad>