==== focal verification complete ====
csmith@midtown:~$ lxc file push  myfile.yaml test-focal/
csmith@midtown:~$ lxc exec test-focal bash
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:~$ # upgrade cloud-init to proposed
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
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages 
[2892 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-proposed InRelease [267 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8628 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages 
[957 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en 
[201 kB]
Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f 
Metadata [19.2 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 
Packages [24.0 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/multiverse 
Translation-en [5904 B]
Get:13 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f 
Metadata [548 B]
Get:14 http://archive.ubuntu.com/ubuntu focal/universe Translation-en [5124 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata 
[265 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [144 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal/multiverse Translation-en [104 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 c-n-f Metadata 
[9136 B]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3269 
kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages 
[1183 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en 
[284 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f 
Metadata [25.7 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages 
[26.2 kB]
Get:24 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en 
[7880 B]
Get:25 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f 
Metadata [620 B]
Get:26 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages 
[45.7 kB]
Get:27 http://archive.ubuntu.com/ubuntu focal-backports/main Translation-en 
[16.3 kB]
Get:28 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f 
Metadata [1420 B]
Get:29 http://archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f 
Metadata [116 B]
Get:30 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages 
[25.0 kB]
Get:31 http://archive.ubuntu.com/ubuntu focal-backports/universe Translation-en 
[16.3 kB]
Get:32 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f 
Metadata [880 B]
Get:33 http://archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f 
Metadata [116 B]
Get:34 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages [326 
kB]
Get:35 http://archive.ubuntu.com/ubuntu focal-proposed/main Translation-en 
[66.2 kB]
Get:36 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 c-n-f 
Metadata [1324 B]
Fetched 24.3 MB in 3s (7769 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.3 [563 kB]
Fetched 563 kB in 0s (1435 kB/s)
Preconfiguring packages ...
(Reading database ... 32192 files and directories currently installed.)
Preparing to unpack .../cloud-init_24.1.3-0ubuntu1~20.04.3_all.deb ...
Unpacking cloud-init (24.1.3-0ubuntu1~20.04.3) over (24.1.3-0ubuntu1~20.04.1) 
...
Setting up cloud-init (24.1.3-0ubuntu1~20.04.3) ...
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.3 running 'init' at Sat, 04 May 2024 
02:30:38 +0000. Up 105.49 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.127             | 
255.255.255.0 | global | 00:16:3e:6b:04:1d |
ci-info: |  eth0  | True | fd42:e810:4b9b:718:216:3eff:fe6b:41d/64 |       .    
   | global | 00:16:3e:6b:04:1d |
ci-info: |  eth0  | True |        fe80::216:3eff:fe6b:41d/64       |       .    
   |  link  | 00:16:3e:6b:04:1d |
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:g4OFedL3CXcjIAv4OqHTMe/k0smKCJRI8rOwIiZXzQA root@worked
The key's randomart image is:
+---[RSA 3072]----+
|  E.. . .        |
|  .. = o .       |
|.. .= = o o o    |
|+.= .O o + + .   |
|o=o*o = S o      |
|+o++o  . .       |
|*ooB .           |
|Bo. *            |
|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:8kcZy8eOqv9FQM2jlW98b5o16+u5u5nRHcAOcH5FGg4 root@worked
The key's randomart image is:
+---[ECDSA 256]---+
|         ..E o.o |
|         .+ X +  |
|          o= X   |
|         ..*+ = .|
|      . S = +o o.|
|       o . =   .B|
|        . 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:TUvnhRJ3KeZAAOtw5HGWPIW8qSJOYeDSMmjhAu+weFI root@worked
The key's randomart image is:
+--[ED25519 256]--+
|      +++*+ . .. |
|o.   o =* .ooo.  |
|=+. . +  +++o..  |
|B+E  +  o+ =..   |
|=O .  ..S o .    |
|+ = . .          |
| = . .           |
|  .              |
|                 |
+----[SHA256]-----+
csmith@midtown:~$ lxc exec test-focal -- hostname # expect 'worked'
worked
csmith@midtown:~$  lxc exec test-focal -- hostname test-focal # 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.3 running 'init' at Sat, 04 May 2024 
02:31:35 +0000. Up 162.48 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.127             | 
255.255.255.0 | global | 00:16:3e:6b:04:1d |
ci-info: |  eth0  | True | fd42:e810:4b9b:718:216:3eff:fe6b:41d/64 |       .    
   | global | 00:16:3e:6b:04:1d |
ci-info: |  eth0  | True |        fe80::216:3eff:fe6b:41d/64       |       .    
   |  link  | 00:16:3e:6b:04:1d |
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:iY8x4zm/0MR4qI7SX1lO+0pG302J30CysXf0rKnIAjg root@worked
The key's randomart image is:
+---[RSA 3072]----+
|                 |
|                 |
|            o . .|
|       = .   B +.|
|     .B S   + = +|
|    Eo.^ o . = * |
| .  ..O.B . . = .|
|. .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:eANmwrAKs2J/RQvmyB22YRMjHr/W3g1eUfKHzy6Eci4 root@worked
The key's randomart image is:
+---[ECDSA 256]---+
|  .o o     . .   |
|  .++ o     + .  |
|o ..oX+.   . o . |
|.+. B+Xo.   o +  |
|+. o *.+So + . o |
|o . . o.o.B . .  |
|   . . . E 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:r/pJ9zn4LuKzOnAZa3vd3VTEliHtf6ngHlIYSh84iDg root@worked
The key's randomart image is:
+--[ED25519 256]--+
|             ..oo|
|  . . . .     .o+|
| E . . + o    .o |
|  .   o + +    ..|
|       =So .    +|
|    . =  ...   .+|
|     + ..o++...o.|
|      o.++=o+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}
csmith@midtown:~$ lxc exec test-focal -- cloud-init clean --logs --reboot
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: 1714789931.425227
    recoverable_errors: {}
    start: 1714789931.1828837
init-local:
    errors: []
    finished: 1714789930.49091
    recoverable_errors: {}
    start: 1714789930.2929254
last_update: Sat, 04 May 2024 02:32:14 +0000
modules-config:
    errors: []
    finished: 1714789933.8728683
    recoverable_errors: {}
    start: 1714789933.7049384
modules-final:
    errors: []
    finished: 1714789934.1935985
    recoverable_errors: {}
    start: 1714789934.1078813
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: 1714789931.425227
            recoverable_errors: {}
            start: 1714789931.1828837
        init-local:
            errors: []
            finished: 1714789930.49091
            recoverable_errors: {}
            start: 1714789930.2929254
        last_update: Sat, 04 May 2024 02:32:14 +0000
        modules-config:
            errors: []
            finished: 1714789933.8728683
            recoverable_errors: {}
            start: 1714789933.7049384
        modules-final:
            errors: []
            finished: 1714789934.1935985
            recoverable_errors: {}
            start: 1714789934.1078813
        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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to