From nobody Fri Jul 26 22:26:24 2024 X-Original-To: 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 4WW2R46MDVz5RTDm for ; Fri, 26 Jul 2024 22:26:24 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WW2R40Vfxz4qSx for ; Fri, 26 Jul 2024 22:26:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722032784; a=rsa-sha256; cv=none; b=rh/h4KTl+nXVRG26v+ZcyKPt2coNBfs9wdTV0FaxOecszed9fstI5P5qWnJk6eyXn4iptX 0djYEAMyI4NDLJ/uoXEwikjG7ma+C5B32fNjlKCkHLAlh735Fb72W6kzBjJYnprvRiMQ6p EAB7TRRrWQt28bIoRIBMtAMIroF4WKD5HLsFQW4KeXUSxnc0EUdmYiHgOzs/SVIg1aYQeU qFnC+Sm+PXAzivqdO06cYpZ0IpRyADgD3tt0zi5iwmZzBCYO5faaMEkROo2r4+OuTxMfyZ b978HQEPj9eZ3FuWH6Su+nW1S9egudDfbasKCeL+O+I2s9SFO6yC50G7mmQuGQ== 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=1722032784; 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=gBcD2fLyER676LZWiY32ejladC8Nthy/Jqfn7v0X9bU=; b=FNco3+7ZN96P4TCTouyGgDUOrSwbSCSPGh5nUZnZq57gVecdkWbx5XjzQ4HvrvO70+XfF/ 8i1vY49aPMCi1tfRC6TfzzLg0icdga7GAQl22q8WV+K3C6J7pifyuvoLiNxI0airCxuMGA S5ZGHVfFS2WOBC7tmIoJcEOVwjam9Kh2UTrD5pVLN39ln/GYwCp4HIlOehtW3nFpvytgIc J/uSHBjqCLNbZEUSGiBEESF+18vSF/J9FyA4LgMXOJnQgc5ytfIgOVWQfzgBFKekLsdTuX vzCLfuayWT5oiNxDeRrrFaSO2nNQ8uFsRKVKKDVCc8uR092vgn2DpuwUl5NNbA== 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 4WW2R375hVzhX9 for ; Fri, 26 Jul 2024 22:26:23 +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 46QMQNos064290 for ; Fri, 26 Jul 2024 22:26:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46QMQNYb064289 for bugs@FreeBSD.org; Fri, 26 Jul 2024 22:26:23 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: bugs@FreeBSD.org Subject: [Bug 280461] nuageinit does not process user details in meta_data file Date: Fri, 26 Jul 2024 22:26:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tdb@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280461 Bug ID: 280461 Summary: nuageinit does not process user details in meta_data file Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: tdb@FreeBSD.org On OpenStack 2024.1 running on Ubuntu, the config drive looks like this: root@freebsd-14-test:/ # ls -l /dev/iso9660/config-2 crw-r----- 1 root operator 0x5c Jul 26 21:13 /dev/iso9660/config-2 root@freebsd-14-test:/ # mount -t cd9660 /dev/iso9660/config-2 /mnt root@freebsd-14-test:/ # ls -l /mnt/ total 4 dr-xr-xr-x 4 root wheel 2048 Jul 26 21:13 ec2 dr-xr-xr-x 12 root wheel 2048 Jul 26 21:13 openstack root@freebsd-14-test:/ # ls -l /mnt/openstack/ total 20 dr-xr-xr-x 2 root wheel 2048 Jul 26 21:13 2012-08-10 dr-xr-xr-x 2 root wheel 2048 Jul 26 21:13 2013-04-04 dr-xr-xr-x 2 root wheel 2048 Jul 26 21:13 2013-10-17 dr-xr-xr-x 2 root wheel 2048 Jul 26 21:13 2015-10-15 dr-xr-xr-x 2 root wheel 2048 Jul 26 21:13 2016-06-30 dr-xr-xr-x 2 root wheel 2048 Jul 26 21:13 2016-10-06 dr-xr-xr-x 2 root wheel 2048 Jul 26 21:13 2017-02-22 dr-xr-xr-x 2 root wheel 2048 Jul 26 21:13 2018-08-27 dr-xr-xr-x 2 root wheel 2048 Jul 26 21:13 2020-10-14 dr-xr-xr-x 2 root wheel 2048 Jul 26 21:13 latest root@freebsd-14-test:/ # ls -l /mnt/openstack/latest/ total 2 -r--r--r-- 1 root wheel 1274 Jul 26 21:13 meta_data.json -r--r--r-- 1 root wheel 1218 Jul 26 21:13 network_data.json -r--r--r-- 1 root wheel 2 Jul 26 21:13 vendor_data.json -r--r--r-- 1 root wheel 14 Jul 26 21:13 vendor_data2.json root@freebsd-14-test:/ # Note there is no user_data.json file. The result is that no freebsd user is created, and no ssh key added. This has broken since this change was added: https://cgit.freebsd.org/src/commit/libexec/nuageinit/nuageinit?id=3D48edad= 2edf6eb7a539e40dad8e1f87e3fa4973fd Reverting it fixes the problem. For reference here's the content of meta_data.json (formatted and unique da= ta removed): root@freebsd-14-test:/ # jq < /mnt/openstack/latest/meta_data.json { "uuid": "uuid_for_this_instance", "admin_pass": "a_generated_password", "public_keys": { "tdb": "ssh-ed25519 my_key_id tdb@host" }, "keys": [ { "name": "tdb", "type": "ssh", "data": "ssh-ed25519 my_key_id tdb@host" } ], "hostname": "freebsd-14-test.novalocal", "name": "freebsd-14-test", "launch_index": 0, "availability_zone": "nova", "random_seed": "long_random_seed", "project_id": "my_project_id", "devices": [], "dedicated_cpus": [] } root@freebsd-14-test:/ # So, for me, the simple fix seems to be to revert that commit. --=20 You are receiving this mail because: You are the assignee for the bug.=