From nobody Sun Jan 21 18:44:35 2024 X-Original-To: ports-bugs@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 4TJ2MR4M1Bz57VQ0 for ; Sun, 21 Jan 2024 18:44:35 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TJ2MR3JlBz4SVs for ; Sun, 21 Jan 2024 18:44:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705862675; 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=3FkI0y+O5jKO/JAa+JUGIjuF4ax5Iv553sXtpAIGJ8I=; b=jEJJbg73H69q3aML36xM20iujlMiDRdWo5A3VFWL8yl8sAq9FRV1ixXvqD46rEs8T54jeV vkWEUp+Cqq9/cEFfJpjmpJBwLQHL1EJMk1kD2iUW0C25k0CevLhqerhT5ZclyyBmueogG0 nPot4dVoZGOwYlP5Bm6zIsLDE2un/VYNtWHnfBjSmG1kDc6ncVHZ4NLqXWiEl6Va28z6Mo QOtoLpueWMYyAjhkrzn2vtHX7gKGPDfNp64+ePe3vKFss27uAkY9JqQQUR/PcjrptlMVkO aBluk4B7whOfnbeWtAgGfw2LFgpYRIYUbiyhQB1uuW/52B7k0acCrIWRLPcsOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705862675; a=rsa-sha256; cv=none; b=ddUQXKCJWb7tZ4lnKMoluEdJW6fIQN+xUBKVKQfL4n4a9IlJvk6iM4hgeg7Mm1MVPOTnd7 YgisGq9GNK9bHP01gblUVzoLdVQ9lyjbN0GSwsmZMa4JZFC8I3ND5atillerPCs1K8PvKb yUM2SF0L5PJNCQfZLxPrazHnYKQ+xzLFOBSFrf61eDpn1NXM9L5Cf3/ZLN5Z4x+lNcXen9 v0mfe027yQz8yrHTFrVJvFN8z0xDcc7g6c31JlKTSfd99AoaIezZ3e/5gPTgAxSRKR9KXe vCmVUt9DLajEbhc3NctdkHuymM3QbXv3UC/vDBoFynbzHg4rHX3Wubnw40ok3g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TJ2MR25HNzTfD for ; Sun, 21 Jan 2024 18:44:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 40LIiZHI023725 for ; Sun, 21 Jan 2024 18:44:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40LIiZxV023724 for ports-bugs@FreeBSD.org; Sun, 21 Jan 2024 18:44:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 276504] net/cloud-init-devel: Fails to configure the network Date: Sun, 21 Jan 2024 18:44:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: chuck@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276504 Bug ID: 276504 Summary: net/cloud-init-devel: Fails to configure the network Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: chuck@FreeBSD.org CC: freebsd@igalic.co Flags: maintainer-feedback?(freebsd@igalic.co) CC: freebsd@igalic.co I've created a FreeBSD 14.0 VM image using poudriere and added cloud-init. = When the VM boots, cloud-init runs but generates a Python exception while trying= to configure the network: Cloud-init v. 23.4-68-g8937b5e5a running 'init-local' at Sun, 21 Jan 2024 16:56:14 +0000. Up 3.5224802494049072 seconds. 2024-01-21 16:56:15,020 - util.py[DEPRECATED]: The use of `gateway4` and `gateway6` is deprecated in 22.4 and scheduled to be removed in 27.4. For m= ore info check out: https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.= html 2024-01-21 16:56:15,028 - util.py[WARNING]: failed stage init-local failed run of stage init-local ------------------------------------------------------------ Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/cloudinit/cmd/main.py", line 781, in status_wrapper ret =3D functor(name, args) File "/usr/local/lib/python3.9/site-packages/cloudinit/cmd/main.py", line 442, in main_init init.apply_network_config(bring_up=3Dbring_up_interfaces) File "/usr/local/lib/python3.9/site-packages/cloudinit/stages.py", line 1= 037, in apply_network_config return self.distro.apply_network_config( File "/usr/local/lib/python3.9/site-packages/cloudinit/distros/__init__.p= y", line 412, in apply_network_config network_state =3D parse_net_config_data(netconfig, renderer=3Drenderer) File "/usr/local/lib/python3.9/site-packages/cloudinit/net/network_state.= py", line 1107, in parse_net_config_data nsi.parse_config(skip_broken=3Dskip_broken) File "/usr/local/lib/python3.9/site-packages/cloudinit/net/network_state.= py", line 305, in parse_config self.parse_config_v2(skip_broken=3Dskip_broken) File "/usr/local/lib/python3.9/site-packages/cloudinit/net/network_state.= py", line 361, in parse_config_v2 self._v2_common(command) File "/usr/local/lib/python3.9/site-packages/cloudinit/net/network_state.= py", line 825, in _v2_common self._handle_individual_nameserver(name_cmd, iface) File "/usr/local/lib/python3.9/site-packages/cloudinit/net/network_state.= py", line 119, in decorator return func(self, command, *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/cloudinit/net/network_state.= py", line 603, in _handle_individual_nameserver _iface[iface]["dns"] =3D {"nameservers": nameservers, "search": search} KeyError: 'vtnet0' ------------------------------------------------------------ Cloud-init v. 23.4-68-g8937b5e5a running 'init' at Sun, 21 Jan 2024 16:56:15 +0000. Up 4.114490270614624 seconds. ci-info: ++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++ ci-info: +--------+-------+----------------+------------+-------+-------------------+ ci-info: | Device | Up | Address | Mask | Scope |=20=20=20= =20 Hw-Address | ci-info: +--------+-------+----------------+------------+-------+-------------------+ ci-info: | lo0 | True | 127.0.0.1 | 0xff000000 | . | .= =20=20=20=20 | ci-info: | lo0 | True | ::1/128 | . | . | .= =20=20=20=20 | ci-info: | lo0 | True | fe80::1%lo0/64 | . | 0x2 | .= =20=20=20=20 | ci-info: | vtnet0 | False | . | . | . | 58:9c:fc:01:ba:ff | ci-info: +--------+-------+----------------+------------+-------+-------------------+ ci-info:=20 # cat /run/cloud-init/tmp/network-config version: 2 ethernets: id0: set-name: eth0 match: macaddress: "58:9c:fc:01:ba:ff" addresses: - 10.105.238.45/21 gateway4: 10.105.232.1 nameservers: search: [] addresses: [10.77.113.90,10.110.135.51,10.77.113.91,10.110.135.52] Note I experimented with changing the network-config to a) use routes inste= ad of gateway4 and b) add a non-empty value for the search domains, but neithe= r of these changes effected the above error. VM info: # uname -mrsv FreeBSD 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 # cloud-init --version=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 /usr/local/bin/cloud-init 23.4-68-g8937b5e5a # ifconfig vtnet0: flags=3D1008802 metric 0 mtu = 1500 options=3D80028 ether 58:9c:fc:01:ba:ff media: Ethernet autoselect (10Gbase-T ) status: active nd6 options=3D29 lo0: flags=3D1008049 metric 0 mtu 1= 6384 options=3D680003 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 groups: lo nd6 options=3D21 --=20 You are receiving this mail because: You are the assignee for the bug.=