==== mantic verification complete ==== csmith@midtown:~$ lxc launch ubuntu-daily:mantic test-mantic Creating test-mantic Starting test-mantic csmith@midtown:~$ lxc file push myfile.yaml test-mantic/ csmith@midtown:~$ lxc file push setup_proposed.sh test-mantic/ csmith@midtown:~$ lxc exec test-mantic bash root@test-mantic:~# apt update; apt install cloud-init -y; cloud-init --version Hit:1 http://archive.ubuntu.com/ubuntu mantic InRelease Get:2 http://security.ubuntu.com/ubuntu mantic-security InRelease [109 kB] Get:3 http://archive.ubuntu.com/ubuntu mantic-updates InRelease [109 kB] Get:4 http://archive.ubuntu.com/ubuntu mantic-backports InRelease [90.8 kB] Get:5 http://security.ubuntu.com/ubuntu mantic-security/main amd64 Packages [352 kB] Get:6 http://archive.ubuntu.com/ubuntu mantic/universe amd64 Packages [15.2 MB] Get:7 http://security.ubuntu.com/ubuntu mantic-security/main Translation-en [90.8 kB] Get:8 http://security.ubuntu.com/ubuntu mantic-security/restricted amd64 Packages [337 kB] Get:9 http://security.ubuntu.com/ubuntu mantic-security/restricted Translation-en [60.3 kB] Get:10 http://security.ubuntu.com/ubuntu mantic-security/universe amd64 Packages [273 kB] Get:11 http://security.ubuntu.com/ubuntu mantic-security/universe Translation-en [114 kB] Get:12 http://security.ubuntu.com/ubuntu mantic-security/universe amd64 DEP-11 Metadata [3860 B] Get:13 http://security.ubuntu.com/ubuntu mantic-security/universe amd64 c-n-f Metadata [788 B] Get:14 http://security.ubuntu.com/ubuntu mantic-security/multiverse amd64 Packages [5588 B] Get:15 http://security.ubuntu.com/ubuntu mantic-security/multiverse Translation-en [1732 B] Get:16 http://security.ubuntu.com/ubuntu mantic-security/multiverse amd64 c-n-f Metadata [232 B] Get:17 http://archive.ubuntu.com/ubuntu mantic/universe Translation-en [5951 kB] Get:18 http://archive.ubuntu.com/ubuntu mantic/universe amd64 DEP-11 Metadata [3793 kB] Get:19 http://archive.ubuntu.com/ubuntu mantic/universe amd64 c-n-f Metadata [303 kB] Get:20 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 Packages [239 kB] Get:21 http://archive.ubuntu.com/ubuntu mantic/multiverse Translation-en [113 kB] Get:22 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 DEP-11 Metadata [31.6 kB] Get:23 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 c-n-f Metadata [8356 B] Get:24 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 Packages [413 kB] Get:25 http://archive.ubuntu.com/ubuntu mantic-updates/main Translation-en [110 kB] Get:26 http://archive.ubuntu.com/ubuntu mantic-updates/restricted amd64 Packages [354 kB] Get:27 http://archive.ubuntu.com/ubuntu mantic-updates/restricted Translation-en [62.7 kB] Get:28 http://archive.ubuntu.com/ubuntu mantic-updates/universe amd64 Packages [357 kB] Get:29 http://archive.ubuntu.com/ubuntu mantic-updates/universe Translation-en [138 kB] Get:30 http://archive.ubuntu.com/ubuntu mantic-updates/universe amd64 DEP-11 Metadata [3864 B] Get:31 http://archive.ubuntu.com/ubuntu mantic-updates/universe amd64 c-n-f Metadata [820 B] Get:32 http://archive.ubuntu.com/ubuntu mantic-updates/multiverse amd64 Packages [8568 B] Get:33 http://archive.ubuntu.com/ubuntu mantic-updates/multiverse Translation-en [2824 B] Get:34 http://archive.ubuntu.com/ubuntu mantic-updates/multiverse amd64 c-n-f Metadata [232 B] Get:35 http://archive.ubuntu.com/ubuntu mantic-backports/main amd64 c-n-f Metadata [112 B] Get:36 http://archive.ubuntu.com/ubuntu mantic-backports/restricted amd64 c-n-f Metadata [116 B] Get:37 http://archive.ubuntu.com/ubuntu mantic-backports/universe amd64 Packages [3936 B] Get:38 http://archive.ubuntu.com/ubuntu mantic-backports/universe Translation-en [1392 B] Get:39 http://archive.ubuntu.com/ubuntu mantic-backports/universe amd64 c-n-f Metadata [116 B] Get:40 http://archive.ubuntu.com/ubuntu mantic-backports/multiverse amd64 c-n-f Metadata [116 B] Fetched 28.6 MB in 5s (5810 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 18 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be upgraded: cloud-init 1 upgraded, 0 newly installed, 0 to remove and 17 not upgraded. Need to get 597 kB of archives. After this operation, 55.3 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 cloud-init all 24.1.3-0ubuntu1~23.10.2 [597 kB] Fetched 597 kB in 0s (1535 kB/s) Preconfiguring packages ... (Reading database ... 33578 files and directories currently installed.) Preparing to unpack .../cloud-init_24.1.3-0ubuntu1~23.10.2_all.deb ... Unpacking cloud-init (24.1.3-0ubuntu1~23.10.2) over (23.4.4-0ubuntu0~23.10.1) ... Setting up cloud-init (24.1.3-0ubuntu1~23.10.2) ... Installing new version of config file /etc/cloud/cloud.cfg ... Installing new version of config file /etc/cloud/cloud.cfg.d/05_logging.cfg ... Installing new version of config file /etc/cloud/templates/chrony.conf.cos.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/hosts.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/hosts.mariner.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/sources.list.ubuntu.deb822.tmpl ... Installing new version of config file /etc/profile.d/Z99-cloud-locale-test.sh ... Removing obsolete conffile /etc/cloud/clean.d/README ... Processing triggers for man-db (2.11.2-3) ... Processing triggers for rsyslog (8.2306.0-2ubuntu2) ... 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. /usr/bin/cloud-init 24.1.3-0ubuntu1~23.10.2 root@test-mantic:~# # confirm usage failure root@test-mantic:~# 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-mantic:~# exit csmith@midtown:~$ # upgrade cloud-init to confirm support csmith@midtown:~$ lxc exec test-mantic -- sh /setup_proposed.sh deb http://archive.ubuntu.com/ubuntu mantic-proposed main Hit:1 http://archive.ubuntu.com/ubuntu mantic InRelease Hit:2 http://security.ubuntu.com/ubuntu mantic-security InRelease Hit:3 http://archive.ubuntu.com/ubuntu mantic-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu mantic-backports InRelease Get:5 http://archive.ubuntu.com/ubuntu mantic-proposed InRelease [256 kB] Get:6 http://archive.ubuntu.com/ubuntu mantic-proposed/main amd64 Packages [90.9 kB] Get:7 http://archive.ubuntu.com/ubuntu mantic-proposed/main Translation-en [24.9 kB] Get:8 http://archive.ubuntu.com/ubuntu mantic-proposed/main amd64 DEP-11 Metadata [7592 B] Get:9 http://archive.ubuntu.com/ubuntu mantic-proposed/main amd64 c-n-f Metadata [1028 B] Fetched 380 kB in 2s (222 kB/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 26 not upgraded. Need to get 597 kB of archives. After this operation, 1024 B of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu mantic-proposed/main amd64 cloud-init all 24.1.3-0ubuntu1~23.10.4 [597 kB] Fetched 597 kB in 0s (1528 kB/s) Preconfiguring packages ... (Reading database ... 33576 files and directories currently installed.) Preparing to unpack .../cloud-init_24.1.3-0ubuntu1~23.10.4_all.deb ... Unpacking cloud-init (24.1.3-0ubuntu1~23.10.4) over (24.1.3-0ubuntu1~23.10.2) ... Setting up cloud-init (24.1.3-0ubuntu1~23.10.4) ... Processing triggers for man-db (2.11.2-3) ... Processing triggers for rsyslog (8.2306.0-2ubuntu2) ... 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. csmith@midtown:~$ # Assert cloud-init -f csmith@midtown:~$ lxc exec test-mantic -- cloud-init -f /myfile.yaml init Cloud-init v. 24.1.3-0ubuntu1~23.10.4 running 'init' at Sat, 04 May 2024 02:58:14 +0000. Up 112.77 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.171 | 255.255.255.0 | global | 00:16:3e:17:4f:38 | ci-info: | eth0 | True | fd42:e810:4b9b:718:216:3eff:fe17:4f38/64 | . | global | 00:16:3e:17:4f:38 | ci-info: | eth0 | True | fe80::216:3eff:fe17:4f38/64 | . | link | 00:16:3e:17:4f:38 | 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: +-------+-------------------------+--------------------------+-----------+-------+ csmith@midtown:~$ lxc exec test-mantic -- hostname # expect 'worked' worked csmith@midtown:~$ lxc exec test-mantic -- hostname test-mantic # reset hostname csmith@midtown:~$ lxc exec test-mantic -- cloud-init clean # reset cloud-init csmith@midtown:~$ # Assert cloud-init -f csmith@midtown:~$ lxc exec test-mantic -- cloud-init init -f /myfile.yaml Cloud-init v. 24.1.3-0ubuntu1~23.10.4 running 'init' at Sat, 04 May 2024 02:58:58 +0000. Up 156.13 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.171 | 255.255.255.0 | global | 00:16:3e:17:4f:38 | ci-info: | eth0 | True | fd42:e810:4b9b:718:216:3eff:fe17:4f38/64 | . | global | 00:16:3e:17:4f:38 | ci-info: | eth0 | True | fe80::216:3eff:fe17:4f38/64 | . | link | 00:16:3e:17:4f:38 | 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-04 02:58:58,706 - activators.py[WARNING]: Running ['netplan', 'apply'] resulted in stderr output: 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:sPo8HRXgdSvCQ0EPxH2MXCkpBdmGphKXU83YL6gHJpY root@worked The key's randomart image is: +---[RSA 3072]----+ | *X/o=o. | | . ++B+&.+. | | +.+=+o=. | | E +o.oo.. | | . +.oS. . | | .. o | | . o . | | o. . | | o. | +----[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:nWWudLFtyxGAM2QMhuAQi+qwlOp8Hj9bOLLc8rEn8sY root@worked The key's randomart image is: +---[ECDSA 256]---+ | o... .o+o.. | | . + .. .= . | |. . . o+ . | |. . . = + . | |oo S + + + | |=. . . o o o | |o. o.+ . . o | |o .+*E=. | | oo+*B= | +----[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:eJREFekiI/pCjWYBxiVDp9VTj4rDQYO0DG2AbjPeF0Q root@worked The key's randomart image is: +--[ED25519 256]--+ |BBo*oE.oo.oo | |=+@ .+ .o.. | |o* .. ..oo | | =o +.+o. . | |o +O oooS. | | .*.o. . | | + .. | | . . | | . | +----[SHA256]-----+ csmith@midtown:~$ lxc exec test-mantic -- hostname # expect 'worked' worked csmith@midtown:~$ # Assert all default systemd unit behavior is unaffected by this changeset csmith@midtown:~$ lxc exec test-mantic -- cloud-init clean --logs --reboot csmith@midtown:~$ # Assert no errors or warnings logged from default boot stages csmith@midtown:~$ lxc exec test-mantic -- 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: 1714797622.68382 recoverable_errors: {} start: 1714797622.2267096 init-local: errors: [] finished: 1714797620.7357063 recoverable_errors: {} start: 1714797620.4874773 last_update: Sat, 04 May 2024 04:40:23 +0000 modules-config: errors: [] finished: 1714797623.308833 recoverable_errors: {} start: 1714797623.179907 modules-final: errors: [] finished: 1714797623.5707147 recoverable_errors: {} start: 1714797623.50302 recoverable_errors: {} schemas: '1': boot_status_code: enabled-by-generator datasource: lxd detail: DataSourceLXD errors: [] extended_status: done init: errors: [] finished: 1714797622.68382 recoverable_errors: {} start: 1714797622.2267096 init-local: errors: [] finished: 1714797620.7357063 recoverable_errors: {} start: 1714797620.4874773 last_update: Sat, 04 May 2024 04:40:23 +0000 modules-config: errors: [] finished: 1714797623.308833 recoverable_errors: {} start: 1714797623.179907 modules-final: errors: [] finished: 1714797623.5707147 recoverable_errors: {} start: 1714797623.50302 recoverable_errors: {} stage: null status: done stage: null status: done ...