==== test verification complete jammy ==== csmith@midtown:~$ lxc launch ubuntu-daily:jammy test-jammy Creating test-jammy Starting test-jammy csmith@midtown:~$ lxc file push myfile.yaml test-jammy/ csmith@midtown:~$ lxc file push setup_proposed.sh test-jammy/ csmith@midtown:~$ csmith@midtown:~$ lxc exec test-jammy bash root@test-jammy:~# hostname # confirm test-jammy from standard meta-data test-jammy root@test-jammy:~# cloud-init clean # allow running init stage again root@test-jammy:~# # confirm usage failure root@test-jammy:~# cloud-init -f /myfile.yaml init usage: /usr/bin/cloud-init [-h] [--version] [--debug] [--force] {init,modules,single,query,features,analyze,devel,collect-logs,clean,status,schema} ... /usr/bin/cloud-init: error: argument subcommand: invalid choice: '/myfile.yaml' (choose from 'init', 'modules', 'single', 'query', 'features', 'analyze', 'devel', 'collect-logs', 'clean', 'status', 'schema') root@test-jammy:~# # upgrade cloud-init to confirm --file support root@test-jammy:~# sh /setup_proposed.sh deb http://archive.ubuntu.com/ubuntu jammy-proposed main Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB] Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1427 kB] Get:6 http://archive.ubuntu.com/ubuntu jammy-proposed InRelease [270 kB] Get:7 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB] Get:8 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [247 kB] Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1807 kB] Get:10 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [307 kB] Get:11 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [852 kB] Get:12 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [164 kB] Get:13 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.8 kB] Get:14 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [37.2 kB] Get:15 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [7588 B] Get:16 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B] Get:17 http://archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB] Get:18 http://archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB] Get:19 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB] Get:20 http://archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB] Get:21 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B] Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1638 kB] Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [307 kB] Get:24 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1864 kB] Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [316 kB] Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1074 kB] Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [245 kB] Get:28 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [22.1 kB] Get:29 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [42.7 kB] Get:30 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [10.4 kB] Get:31 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [472 B] Get:32 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [67.1 kB] Get:33 http://archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [11.0 kB] Get:34 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B] Get:35 http://archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B] Get:36 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [27.2 kB] Get:37 http://archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.2 kB] Get:38 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [644 B] Get:39 http://archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B] Get:40 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages [227 kB] Get:41 http://archive.ubuntu.com/ubuntu jammy-proposed/main Translation-en [51.1 kB] Get:42 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 c-n-f Metadata [2740 B] Fetched 31.8 MB in 3s (10.9 MB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: cloud-init 1 upgraded, 0 newly installed, 0 to remove and 31 not upgraded. Need to get 560 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 cloud-init all 24.1.3-0ubuntu1~22.04.4 [560 kB] Fetched 560 kB in 2s (330 kB/s) Preconfiguring packages ... (Reading database ... 33924 files and directories currently installed.) Preparing to unpack .../cloud-init_24.1.3-0ubuntu1~22.04.4_all.deb ... Unpacking cloud-init (24.1.3-0ubuntu1~22.04.4) over (24.1.3-0ubuntu1~22.04.1) ... Setting up cloud-init (24.1.3-0ubuntu1~22.04.4) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ... Scanning processes... No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. root@test-jammy:~# cloud-init --version /usr/bin/cloud-init 24.1.3-0ubuntu1~22.04.4 root@test-jammy:~# exit exit csmith@midtown:~$ # Assert cloud-init -f csmith@midtown:~$ lxc exec test-jammy -- cloud-init -f /myfile.yaml init Cloud-init v. 24.1.3-0ubuntu1~22.04.4 running 'init' at Fri, 10 May 2024 18:05:56 +0000. Up 128.03 seconds. ci-info: +++++++++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++++++++ ci-info: +--------+------+------------------------------------------+---------------+--------+-------------------+ ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | ci-info: +--------+------+------------------------------------------+---------------+--------+-------------------+ ci-info: | eth0 | True | 10.125.221.172 | 255.255.255.0 | global | 00:16:3e:c9:44:1a | ci-info: | eth0 | True | fd42:e810:4b9b:718:216:3eff:fec9:441a/64 | . | global | 00:16:3e:c9:44:1a | ci-info: | eth0 | True | fe80::216:3eff:fec9:441a/64 | . | link | 00:16:3e:c9:44:1a | ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | ci-info: | lo | True | ::1/128 | . | host | . | ci-info: +--------+------+------------------------------------------+---------------+--------+-------------------+ ci-info: +++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++ ci-info: +-------+--------------+--------------+-----------------+-----------+-------+ ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | ci-info: +-------+--------------+--------------+-----------------+-----------+-------+ ci-info: | 0 | 0.0.0.0 | 10.125.221.1 | 0.0.0.0 | eth0 | UG | ci-info: | 1 | 10.125.221.0 | 0.0.0.0 | 255.255.255.0 | eth0 | U | ci-info: | 2 | 10.125.221.1 | 0.0.0.0 | 255.255.255.255 | eth0 | UH | ci-info: +-------+--------------+--------------+-----------------+-----------+-------+ ci-info: +++++++++++++++++++++++++++++++++Route IPv6 info++++++++++++++++++++++++++++++++++ ci-info: +-------+-------------------------+--------------------------+-----------+-------+ ci-info: | Route | Destination | Gateway | Interface | Flags | ci-info: +-------+-------------------------+--------------------------+-----------+-------+ ci-info: | 0 | fd42:e810:4b9b:718::/64 | :: | eth0 | U | ci-info: | 1 | fe80::/64 | :: | eth0 | U | ci-info: | 2 | ::/0 | fe80::216:3eff:fe42:b1a6 | eth0 | UGe | ci-info: | 4 | local | :: | eth0 | U | ci-info: | 5 | local | :: | eth0 | U | ci-info: | 6 | multicast | :: | eth0 | U | ci-info: +-------+-------------------------+--------------------------+-----------+-------+ 2024-05-10 18:05:57,358 - activators.py[WARNING]: Running ['netplan', 'apply'] resulted in stderr output: WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running. Generating public/private rsa key pair. Your identification has been saved in /etc/ssh/ssh_host_rsa_key Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub The key fingerprint is: SHA256:9KfCy2zBA2dfA3EcjuyLltP1yQfcb19yiRYNu5+ah0A root@worked The key's randomart image is: +---[RSA 3072]----+ | .oo. | | ..+. | | . o... | | ..oo Eo.+. | | =S.+.o+o..| | .++.* o+oo| | Bo+ .+*.*| | +.+ ..o*+| | .+ ooo.| +----[SHA256]-----+ Generating public/private ecdsa key pair. Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub The key fingerprint is: SHA256:FrVOq4r/Rm0xhjt93W2Izic3jxZMhtCMxmJ44sqV3Bg root@worked The key's randomart image is: +---[ECDSA 256]---+ | . ..+ | | E +.=.o | | o O.+o. . | | * o++.. o | | . o S=oo * o.| | o .+.+ o = +| | ..o + o | | . .. + =. | | ..oo. =.o.| +----[SHA256]-----+ Generating public/private ed25519 key pair. Your identification has been saved in /etc/ssh/ssh_host_ed25519_key Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub The key fingerprint is: SHA256:ZWO670/NtS48F9gWfaXOCKfVfkipEu9JXPMPSqlz2bE root@worked The key's randomart image is: +--[ED25519 256]--+ | | | .| | = . oo| | =o.o B.o| | S O Xo++| | .o O+B=+| | . *o=+*o| | .o.*+E..| | .o+. +. | +----[SHA256]-----+ csmith@midtown:~$ lxc exec test-jammy -- hostname # expect 'worked; worked csmith@midtown:~$ lxc exec test-jammy -- hostname test-jammy # reset hostname csmith@midtown:~$ csmith@midtown:~$ lxc exec test-jammy -- cloud-init clean # reset cloud-init csmith@midtown:~$ # Assert cloud-init -f csmith@midtown:~$ lxc exec test-jammy -- cloud-init init -f /myfile.yaml Cloud-init v. 24.1.3-0ubuntu1~22.04.4 running 'init' at Fri, 10 May 2024 18:06:34 +0000. Up 165.63 seconds. ci-info: +++++++++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++++++++ ci-info: +--------+------+------------------------------------------+---------------+--------+-------------------+ ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | ci-info: +--------+------+------------------------------------------+---------------+--------+-------------------+ ci-info: | eth0 | True | 10.125.221.172 | 255.255.255.0 | global | 00:16:3e:c9:44:1a | ci-info: | eth0 | True | fd42:e810:4b9b:718:216:3eff:fec9:441a/64 | . | global | 00:16:3e:c9:44:1a | ci-info: | eth0 | True | fe80::216:3eff:fec9:441a/64 | . | link | 00:16:3e:c9:44:1a | ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | ci-info: | lo | True | ::1/128 | . | host | . | ci-info: +--------+------+------------------------------------------+---------------+--------+-------------------+ ci-info: +++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++ ci-info: +-------+--------------+--------------+-----------------+-----------+-------+ ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | ci-info: +-------+--------------+--------------+-----------------+-----------+-------+ ci-info: | 0 | 0.0.0.0 | 10.125.221.1 | 0.0.0.0 | eth0 | UG | ci-info: | 1 | 10.125.221.0 | 0.0.0.0 | 255.255.255.0 | eth0 | U | ci-info: | 2 | 10.125.221.1 | 0.0.0.0 | 255.255.255.255 | eth0 | UH | ci-info: +-------+--------------+--------------+-----------------+-----------+-------+ ci-info: +++++++++++++++++++++++++++++++++Route IPv6 info++++++++++++++++++++++++++++++++++ ci-info: +-------+-------------------------+--------------------------+-----------+-------+ ci-info: | Route | Destination | Gateway | Interface | Flags | ci-info: +-------+-------------------------+--------------------------+-----------+-------+ ci-info: | 0 | fd42:e810:4b9b:718::/64 | :: | eth0 | U | ci-info: | 1 | fe80::/64 | :: | eth0 | U | ci-info: | 2 | ::/0 | fe80::216:3eff:fe42:b1a6 | eth0 | UGe | ci-info: | 4 | local | :: | eth0 | U | ci-info: | 5 | local | :: | eth0 | U | ci-info: | 6 | multicast | :: | eth0 | U | ci-info: +-------+-------------------------+--------------------------+-----------+-------+ 2024-05-10 18:06:34,861 - activators.py[WARNING]: Running ['netplan', 'apply'] resulted in stderr output: WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running. Generating public/private rsa key pair. Your identification has been saved in /etc/ssh/ssh_host_rsa_key Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub The key fingerprint is: SHA256:zqdQeIKvukOfqJZgU75++aWk77nP1NptGLxu9AVhpXI root@worked The key's randomart image is: +---[RSA 3072]----+ | .. | | o. | | ..E. | | . . . o. | | o . o S . . | |.o.. . * .+ . | |o.oo..+.ooo.= . | | oo.o+o.*oo+.o | |o.+=o.+B++oo.. | +----[SHA256]-----+ Generating public/private ecdsa key pair. Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub The key fingerprint is: SHA256:S7hB4yKSVLWLzOIXw7YIQGKvIjtM3Tz+yZTrvivdnxY root@worked The key's randomart image is: +---[ECDSA 256]---+ |.o ... | |+ o . | |.. . .o | |o.* +o.o | |*+.X.=+ S | |Bo+.=..+.. E | |o+ o .ooo . | | .. .+.o. .. | | +Xo oo | +----[SHA256]-----+ Generating public/private ed25519 key pair. Your identification has been saved in /etc/ssh/ssh_host_ed25519_key Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub The key fingerprint is: SHA256:mJcMy6tLYo5hF0kxdQwkcQFUY6kV5PHx+96InEaFKKg root@worked The key's randomart image is: +--[ED25519 256]--+ | .BB&*o | | Bo=.o | | .+...... | | .o.o B o.. | | .o * S.. | | E . o .. | |..o.. . . . | |.=.o . ..+ o | |. . o. .+ o . | +----[SHA256]-----+ csmith@midtown:~$ lxc exec test-jammy -- hostname # expect 'worked' worked csmith@midtown:~$ # Assert all default systemd unit behavior is unaffected by this changeset csmith@midtown:~$ lxc exec test-jammy -- cloud-init clean --logs --reboot csmith@midtown:~$ # Assert no errors or warnings logged from default boot stages csmith@midtown:~$ lxc exec test-jammy -- cloud-init status --wait --format=yaml --- _schema_version: '1' boot_status_code: enabled-by-generator datasource: lxd detail: DataSourceLXD errors: [] extended_status: done init: errors: [] finished: 1715364431.6876361 recoverable_errors: {} start: 1715364431.3615215 init-local: errors: [] finished: 1715364430.741712 recoverable_errors: {} start: 1715364430.543905 last_update: Fri, 10 May 2024 18:07:14 +0000 modules-config: errors: [] finished: 1715364434.0531857 recoverable_errors: {} start: 1715364433.8824446 modules-final: errors: [] finished: 1715364434.294849 recoverable_errors: {} start: 1715364434.2193289 recoverable_errors: {} schemas: '1': boot_status_code: enabled-by-generator datasource: lxd detail: DataSourceLXD errors: [] extended_status: done init: errors: [] finished: 1715364431.6876361 recoverable_errors: {} start: 1715364431.3615215 init-local: errors: [] finished: 1715364430.741712 recoverable_errors: {} start: 1715364430.543905 last_update: Fri, 10 May 2024 18:07:14 +0000 modules-config: errors: [] finished: 1715364434.0531857 recoverable_errors: {} start: 1715364433.8824446 modules-final: errors: [] finished: 1715364434.294849 recoverable_errors: {} start: 1715364434.2193289 recoverable_errors: {} stage: null status: done stage: null status: done ...