Thanks Timo!
==== focal verification complete =====
csmith@midtown:~$ lxc launch ubuntu-daily:focal test-focal
Creating test-focal
Starting test-focal
csmith@midtown:~$ lxc exec test-focal bash
root@test-focal:~# hostname # confirm test-focal from standard meta-data
test-focal
root@test-focal:~# cloud-init clean # allow running init stage again
root@test-focal:~# exit
csmith@midtown:~$ lxc file push myfile.yaml test-focal/
csmith@midtown:~$ lxc exec test-focal bash
root@test-focal:~# apt update; apt install cloud-init -y; cloud-init --version
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8628 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
[2919 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/universe Translation-en [5124 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata [265
kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [144 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/multiverse Translation-en [104 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 c-n-f Metadata
[9136 B]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3296
kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [521
kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages
[2916 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en
[407 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
[1185 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en
[284 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f
Metadata [25.7 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages
[26.2 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en
[7880 B]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f
Metadata [620 B]
Get:22 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages
[45.7 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal-backports/main Translation-en
[16.3 kB]
Get:24 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f
Metadata [1420 B]
Get:25 http://archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f
Metadata [116 B]
Get:26 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages
[25.0 kB]
Get:27 http://archive.ubuntu.com/ubuntu focal-backports/universe Translation-en
[16.3 kB]
Get:28 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f
Metadata [880 B]
Get:29 http://archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f
Metadata [116 B]
Get:30 http://security.ubuntu.com/ubuntu focal-security/main Translation-en
[438 kB]
Get:31 http://security.ubuntu.com/ubuntu focal-security/restricted amd64
Packages [2799 kB]
Get:32 http://security.ubuntu.com/ubuntu focal-security/restricted
Translation-en [391 kB]
Get:33 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages
[959 kB]
Get:34 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en
[202 kB]
Get:35 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f
Metadata [19.2 kB]
Get:36 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64
Packages [24.0 kB]
Get:37 http://security.ubuntu.com/ubuntu focal-security/multiverse
Translation-en [5904 B]
Get:38 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f
Metadata [548 B]
Fetched 31.1 MB in 4s (8328 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
cloud-init is already the newest version (24.1.3-0ubuntu1~20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
/usr/bin/cloud-init 24.1.3-0ubuntu1~20.04.1
root@test-focal:~# # confirm usage failure
root@test-focal:~# 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-focal:~# exit
csmith@midtown:~$ lxc file push setup_proposed.sh test-focal/
csmith@midtown:~$ lxc exec test-focal -- sh /setup_proposed.sh
deb http://archive.ubuntu.com/ubuntu focal-proposed main
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Get:5 http://archive.ubuntu.com/ubuntu focal-proposed InRelease [267 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages [277
kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-proposed/main Translation-en [58.4
kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 c-n-f Metadata
[1324 B]
Fetched 604 kB in 1s (892 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 27 not upgraded.
Need to get 563 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 cloud-init all
24.1.3-0ubuntu1~20.04.4 [563 kB]
Fetched 563 kB in 0s (1594 kB/s)
Preconfiguring packages ...
(Reading database ... 32194 files and directories currently installed.)
Preparing to unpack .../cloud-init_24.1.3-0ubuntu1~20.04.4_all.deb ...
Unpacking cloud-init (24.1.3-0ubuntu1~20.04.4) over (24.1.3-0ubuntu1~20.04.1)
...
Setting up cloud-init (24.1.3-0ubuntu1~20.04.4) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for rsyslog (8.2001.0-1ubuntu1.3) ...
csmith@midtown:~$ # Assert cloud-init -f <myfile> <subcmd>
csmith@midtown:~$ lxc exec test-focal -- cloud-init -f /myfile.yaml init
Cloud-init v. 24.1.3-0ubuntu1~20.04.4 running 'init' at Fri, 10 May 2024
17:59:54 +0000. Up 95.39 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.39 |
255.255.255.0 | global | 00:16:3e:7f:53:e0 |
ci-info: | eth0 | True | fd42:e810:4b9b:718:216:3eff:fe7f:53e0/64 | .
| global | 00:16:3e:7f:53:e0 |
ci-info: | eth0 | True | fe80::216:3eff:fe7f:53e0/64 | .
| link | 00:16:3e:7f:53:e0 |
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 | fd42:e810:4b9b:718::/64 | :: | eth0
| U |
ci-info: | 2 | fe80::/64 | :: | eth0
| U |
ci-info: | 3 | ::/0 | fe80::216:3eff:fe42:b1a6 | eth0
| UGe |
ci-info: | 5 | local | :: | eth0
| U |
ci-info: | 6 | local | :: | eth0
| U |
ci-info: | 7 | multicast | :: | eth0
| U |
ci-info:
+-------+-------------------------+--------------------------+-----------+-------+
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:xa9Z8uP3K5h74Inn2TXsM6bQM+ZYoif1nSLxCsqzTCw root@worked
The key's randomart image is:
+---[RSA 3072]----+
| |
| . |
| o |
| . . |
| S . o |
| . X. . |
| E o .*o@*.+.|
| =..ooXXB**.|
| =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:iY7G2dxhayWkwrKTkMUnTYHCWJiLq3ly6b+7JBpV0PA root@worked
The key's randomart image is:
+---[ECDSA 256]---+
|o+++o. |
|=o.=. |
|.o+ E . |
|oo = + . |
|o.o o o S . |
|.o = B o = |
|o.=.* + + |
|+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:maPF5R8zopZLgYZ+dSpjSJUYwKWDVO4uyQJ/H7I1Z+Q root@worked
The key's randomart image is:
+--[ED25519 256]--+
| oo+o |
|..o. o . |
|. o.. o . |
| .. o o = |
|. .o o S + + |
|o.oo o * B o + |
|.+..= X E . |
|. .. B X . |
| . . . |
+----[SHA256]-----+
csmith@midtown:~$ lxc exec test-focal -- hostname # expect 'worked'
worked
csmith@midtown:~$ lxc exec test-focal -- hostname test-f # reset hostname
csmith@midtown:~$ lxc exec test-focal -- cloud-init clean # reset cloud-init
csmith@midtown:~$ # Assert cloud-init <subcmd> -f <myfile>
csmith@midtown:~$ lxc exec test-focal -- cloud-init init -f /myfile.yaml
Cloud-init v. 24.1.3-0ubuntu1~20.04.4 running 'init' at Fri, 10 May 2024
18:00:36 +0000. Up 137.79 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.39 |
255.255.255.0 | global | 00:16:3e:7f:53:e0 |
ci-info: | eth0 | True | fd42:e810:4b9b:718:216:3eff:fe7f:53e0/64 | .
| global | 00:16:3e:7f:53:e0 |
ci-info: | eth0 | True | fe80::216:3eff:fe7f:53e0/64 | .
| link | 00:16:3e:7f:53:e0 |
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 | fd42:e810:4b9b:718::/64 | :: | eth0
| U |
ci-info: | 2 | fe80::/64 | :: | eth0
| U |
ci-info: | 3 | ::/0 | fe80::216:3eff:fe42:b1a6 | eth0
| UGe |
ci-info: | 5 | local | :: | eth0
| U |
ci-info: | 6 | local | :: | eth0
| U |
ci-info: | 7 | multicast | :: | eth0
| U |
ci-info:
+-------+-------------------------+--------------------------+-----------+-------+
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:WoF73naJgmphWVn+/gzsXMtD8xvg4bPapVegBMCqsg0 root@worked
The key's randomart image is:
+---[RSA 3072]----+
| ... |
| .o . |
| .=. . |
| +... . . |
| +. S. .o. . |
| E = * o.+++ .|
| * .o o.*.Boo. |
| . o. =.B.*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:tt/fXw0fg9g+4BZ0b8fzDzqwEA6X2ixoiYROIh+LoIA root@worked
The key's randomart image is:
+---[ECDSA 256]---+
| |
| |
|.. . . . |
|E.o . + . + o. |
|O+ + o BS. + o.*o|
|o.+ + o.=.o + .oB|
| . ... = o. =|
| .o....oo|
| . 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:CgkzGvyhl0bJx+ADvcisubsKuTfOlO5YMyua/zLxIQY root@worked
The key's randomart image is:
+--[ED25519 256]--+
| ... |
|. +.+ |
|+.=B.o |
|E*+==. |
|o+ =o S |
|o.*... . |
|oo*+ .. |
|+O=+. |
|@OB=. |
+----[SHA256]-----+
csmith@midtown:~$ lxc exec test-focal -- hostname # expect 'worked'
worked
csmith@midtown:~$ # Assert all default systemd unit behavior is unaffected
by this changeset
csmith@midtown:~$ lxc exec test-focal -- cloud-init clean --logs ---reboot
usage: /usr/bin/cloud-init [-h] [--version] [--debug] [--file MAIN_FILES]
[--force]
{init,modules,single,query,features,analyze,devel,collect-logs,clean,status,schema}
...
/usr/bin/cloud-init: error: unrecognized arguments: ---reboot
csmith@midtown:~$ lxc exec test-focal -- cloud-init clean --logs --reboot
csmith@midtown:~$ # Assert no errors or warnings logged from default boot
stages
csmith@midtown:~$ lxc exec test-focal -- cloud-init status --wait --format=yaml
---
_schema_version: '1'
boot_status_code: enabled-by-generator
datasource: nocloud
detail: DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]
errors: []
extended_status: done
init:
errors: []
finished: 1715364065.3027825
recoverable_errors: {}
start: 1715364064.9962156
init-local:
errors: []
finished: 1715364063.9846904
recoverable_errors: {}
start: 1715364063.757476
last_update: Fri, 10 May 2024 18:01:08 +0000
modules-config:
errors: []
finished: 1715364067.7815454
recoverable_errors: {}
start: 1715364067.613004
modules-final:
errors: []
finished: 1715364068.1067932
recoverable_errors: {}
start: 1715364068.0245996
recoverable_errors: {}
schemas:
'1':
boot_status_code: enabled-by-generator
datasource: nocloud
detail: DataSourceNoCloud
[seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]
errors: []
extended_status: done
init:
errors: []
finished: 1715364065.3027825
recoverable_errors: {}
start: 1715364064.9962156
init-local:
errors: []
finished: 1715364063.9846904
recoverable_errors: {}
start: 1715364063.757476
last_update: Fri, 10 May 2024 18:01:08 +0000
modules-config:
errors: []
finished: 1715364067.7815454
recoverable_errors: {}
start: 1715364067.613004
modules-final:
errors: []
finished: 1715364068.1067932
recoverable_errors: {}
start: 1715364068.0245996
recoverable_errors: {}
stage: null
status: done
stage: null
status: done
...
** Tags removed: verification-needed-focal
** Tags added: verification-done-focal
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2064300
Title:
cli behavior changed for commands passing optional --file argument to
cloud-init init, modules or single subcommand
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2064300/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs