##### verification complete mantic #####
csmith@midtown:~$  lxc launch ubuntu-daily:mantic test-m
Creating test-m
Starting test-m                               file push myfile.yaml 
csmith@midtown:~$  lxc file push myfile.yaml test-m/
csmith@midtown:~$ lxc file push setup_proposed.sh test-m/
csmith@midtown:~$ lxc exec test-m bash
root@test-m:~#  hostname # confirm test-jammy from standard meta-data
test-m
root@test-m:~# cloud-init clean # allow running init stage again
root@test-m:~# # confirm usage failure
root@test-m:~# 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-m:~#  # upgrade cloud-init to confirm --file support
root@test-m:~# sh /setup_proposed.sh
deb http://archive.ubuntu.com/ubuntu mantic-proposed main
Hit:1 http://archive.ubuntu.com/ubuntu mantic InRelease
Get:2 http://archive.ubuntu.com/ubuntu mantic-updates InRelease [109 kB]
Get:3 http://security.ubuntu.com/ubuntu mantic-security InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu mantic-backports InRelease [90.8 kB]
Get:5 http://archive.ubuntu.com/ubuntu mantic-proposed InRelease [256 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 amd64 Packages 
[355 kB]
Get:8 http://archive.ubuntu.com/ubuntu mantic/universe Translation-en [5951 kB]
Get:9 http://archive.ubuntu.com/ubuntu mantic/universe amd64 DEP-11 Metadata 
[3793 kB]
Get:10 http://security.ubuntu.com/ubuntu mantic-security/main Translation-en 
[91.5 kB]
Get:11 http://security.ubuntu.com/ubuntu mantic-security/universe amd64 
Packages [274 kB]
Get:12 http://archive.ubuntu.com/ubuntu mantic/universe amd64 c-n-f Metadata 
[303 kB]
Get:13 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 Packages [239 
kB]
Get:14 http://archive.ubuntu.com/ubuntu mantic/multiverse Translation-en [113 
kB]
Get:15 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 DEP-11 Metadata 
[31.6 kB]
Get:16 http://archive.ubuntu.com/ubuntu mantic/multiverse amd64 c-n-f Metadata 
[8356 B]
Get:17 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 Packages [415 
kB]
Get:18 http://archive.ubuntu.com/ubuntu mantic-updates/main Translation-en [110 
kB]
Get:19 http://archive.ubuntu.com/ubuntu mantic-updates/universe amd64 Packages 
[360 kB]
Get:20 http://archive.ubuntu.com/ubuntu mantic-updates/universe Translation-en 
[138 kB]
Get:21 http://archive.ubuntu.com/ubuntu mantic-updates/universe amd64 DEP-11 
Metadata [3864 B]
Get:22 http://archive.ubuntu.com/ubuntu mantic-updates/universe amd64 c-n-f 
Metadata [820 B]
Get:23 http://archive.ubuntu.com/ubuntu mantic-updates/multiverse amd64 
Packages [8568 B]
Get:24 http://archive.ubuntu.com/ubuntu mantic-updates/multiverse 
Translation-en [2824 B]
Get:25 http://archive.ubuntu.com/ubuntu mantic-updates/multiverse amd64 c-n-f 
Metadata [232 B]
Get:26 http://archive.ubuntu.com/ubuntu mantic-backports/main amd64 c-n-f 
Metadata [112 B]
Get:27 http://archive.ubuntu.com/ubuntu mantic-backports/restricted amd64 c-n-f 
Metadata [116 B]
Get:28 http://archive.ubuntu.com/ubuntu mantic-backports/universe amd64 
Packages [3940 B]
Get:29 http://archive.ubuntu.com/ubuntu mantic-backports/universe 
Translation-en [1392 B]
Get:30 http://archive.ubuntu.com/ubuntu mantic-backports/universe amd64 c-n-f 
Metadata [116 B]
Get:31 http://security.ubuntu.com/ubuntu mantic-security/universe 
Translation-en [115 kB]
Get:32 http://archive.ubuntu.com/ubuntu mantic-backports/multiverse amd64 c-n-f 
Metadata [116 B]
Get:33 http://archive.ubuntu.com/ubuntu mantic-proposed/main amd64 Packages 
[84.9 kB]
Get:34 http://archive.ubuntu.com/ubuntu mantic-proposed/main Translation-en 
[23.9 kB]
Get:35 http://archive.ubuntu.com/ubuntu mantic-proposed/main amd64 DEP-11 
Metadata [7592 B]
Get:36 http://archive.ubuntu.com/ubuntu mantic-proposed/main amd64 c-n-f 
Metadata [1028 B]
Get:37 http://security.ubuntu.com/ubuntu mantic-security/universe amd64 DEP-11 
Metadata [3860 B]
Get:38 http://security.ubuntu.com/ubuntu mantic-security/universe amd64 c-n-f 
Metadata [788 B]
Get:39 http://security.ubuntu.com/ubuntu mantic-security/multiverse amd64 
Packages [5588 B]
Get:40 http://security.ubuntu.com/ubuntu mantic-security/multiverse 
Translation-en [1732 B]
Get:41 http://security.ubuntu.com/ubuntu mantic-security/multiverse amd64 c-n-f 
Metadata [232 B]
Fetched 28.2 MB in 3s (8593 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 13 not upgraded.
Need to get 598 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.5 [598 kB]
Fetched 598 kB in 0s (1649 kB/s)
Preconfiguring packages ...
(Reading database ... 33576 files and directories currently installed.)
Preparing to unpack .../cloud-init_24.1.3-0ubuntu1~23.10.5_all.deb ...
Unpacking cloud-init (24.1.3-0ubuntu1~23.10.5) over (24.1.3-0ubuntu1~23.10.2) 
...
Setting up cloud-init (24.1.3-0ubuntu1~23.10.5) ...
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.
root@test-m:~# cloud-init --version
/usr/bin/cloud-init 24.1.3-0ubuntu1~23.10.5
root@test-m:~# 
exit
csmith@midtown:~$    # Assert cloud-init -f <myfile> <subcmd>
csmith@midtown:~$  lxc exec test-m -- cloud-init -f /myfile.yaml init
Cloud-init v. 24.1.3-0ubuntu1~23.10.5 running 'init' at Fri, 10 May 2024 
18:12:11 +0000. Up 140.89 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.82               | 
255.255.255.0 | global | 00:16:3e:ba:92:19 |
ci-info: |  eth0  | True | fd42:e810:4b9b:718:216:3eff:feba:9219/64 |       .   
    | global | 00:16:3e:ba:92:19 |
ci-info: |  eth0  | True |       fe80::216:3eff:feba:9219/64        |       .   
    |  link  | 00:16:3e:ba:92:19 |
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: |   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: 
+-------+-------------------------+--------------------------+-----------+-------+
2024-05-10 18:12:12,037 - 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:12aE7uR8cU5lS+LTJLTYxltZlYDASDjMcyJtrofqsvU root@worked
The key's randomart image is:
+---[RSA 3072]----+
|    + o.o.. .o. =|
|   . X o . o= ..o|
|    + =   ...B =o|
|     .   . oo Oo.|
|    o   S + =+oo |
|   o .   * o =.  |
|  o .     + . .  |
|.o .       .     |
|+o  E            |
+----[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:F5cF4uelp8ruiX7Mz6BR6Pm+pzRrzXNw9QCOwXYHoh8 root@worked
The key's randomart image is:
+---[ECDSA 256]---+
|         .o oo.  |
|         o+ooo.  |
|        ..E=+o.  |
|         o.*.o. .|
|        S + o .o.|
|       . +  .o. .|
|        +o+o.o   |
|         B=B= .  |
|       .+*%=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:/M+juMc1GvInK9peA6suNR9hlANhJgrqKvUqVqF0GZA root@worked
The key's randomart image is:
+--[ED25519 256]--+
|..o . =o .       |
|.E o +  +        |
|. . o  . .       |
|.. +   .o        |
|..+ .  .S.       |
|.o o  o o+. o    |
|o . .. o.=++ .   |
|o. ..  ooo*+o    |
|...  o+o=+o=o.   |
+----[SHA256]-----+
csmith@midtown:~$ lxc exec test-m -- hostname # expect 'worked'
worked
csmith@midtown:~$  lxc exec test-m -- hostname test-m # reset hostname
csmith@midtown:~$  lxc exec test-m -- cloud-init clean # reset cloud-init
csmith@midtown:~$    # Assert cloud-init <subcmd> -f <myfile>
csmith@midtown:~$ lxc exec test-m -- cloud-init init -f /myfile.yaml
Cloud-init v. 24.1.3-0ubuntu1~23.10.5 running 'init' at Fri, 10 May 2024 
18:12:48 +0000. Up 178.14 seconds.
ci-info: ++++++++++++++++++++++++++++++++++++Net device 
info++++++++++++++++++++++++++++++++++++
ci-info: 
+--------+------+-----------------------------+-----------+-------+-------------------+
ci-info: | Device |  Up  |           Address           |    Mask   | Scope |    
 Hw-Address    |
ci-info: 
+--------+------+-----------------------------+-----------+-------+-------------------+
ci-info: |  eth0  | True | fe80::216:3eff:feba:9219/64 |     .     |  link | 
00:16:3e:ba:92:19 |
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 IPv6 info++++++++++++++++++++++++++++
ci-info: +-------+-------------+--------------------------+-----------+-------+
ci-info: | Route | Destination |         Gateway          | Interface | Flags |
ci-info: +-------+-------------+--------------------------+-----------+-------+
ci-info: |   0   |  fe80::/64  |            ::            |    eth0   |   U   |
ci-info: |   1   |     ::/0    | fe80::216:3eff:fe42:b1a6 |    eth0   |  UGe  |
ci-info: |   3   |    local    |            ::            |    eth0   |   U   |
ci-info: |   4   |  multicast  |            ::            |    eth0   |   U   |
ci-info: +-------+-------------+--------------------------+-----------+-------+
2024-05-10 18:12:49,135 - 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:wm/MbYkGDawyiAYCuZsSwACaXZeVDDyT7oe+8+4XQRk root@worked
The key's randomart image is:
+---[RSA 3072]----+
|B.  ..o*..Eo     |
|=+ . o* o o      |
|*..  .oo .       |
|*.   o.o  .      |
|o=o ..+.S  .     |
|=  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:1y0f7JNSANiYo1bd5/3K/8BNTp7hOdxZpQvkVpcfiGc root@worked
The key's randomart image is:
+---[ECDSA 256]---+
|         *..     |
|        * o.o o .|
|       o . .oE.+o|
|      o    +o=.o=|
|     .  S . * *.*|
|         . . BoXO|
|            ..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:DPf+E3pNpfqA8b7f++T3dLZwxfsiojXQhnJzerncw9w root@worked
The key's randomart image is:
+--[ED25519 256]--+
|                 |
|                 |
|      . .        |
|       + +     ..|
|      . S *    oo|
|       o B =. o o|
|        . B+oB o=|
|         +o*O.E*=|
|        ..oo=Bo+@|
+----[SHA256]-----+
csmith@midtown:~$ lxc exec test-m -- hostname # expect 'worked'
worked
csmith@midtown:~$    # Assert all default systemd unit behavior is unaffected 
by this changeset
csmith@midtown:~$ lxc exec test-m -- cloud-init clean --logs --reboot
csmith@midtown:~$    # Assert no errors or warnings logged from default boot 
stages
csmith@midtown:~$ lxc exec test-m -- 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: 1715364795.5432372
    recoverable_errors: {}
    start: 1715364795.3022065
init-local:
    errors: []
    finished: 1715364794.7780783
    recoverable_errors: {}
    start: 1715364794.5281959
last_update: Fri, 10 May 2024 18:13:16 +0000
modules-config:
    errors: []
    finished: 1715364796.141891
    recoverable_errors: {}
    start: 1715364796.0045366
modules-final:
    errors: []
    finished: 1715364796.412329
    recoverable_errors: {}
    start: 1715364796.3465369
recoverable_errors: {}
schemas:
    '1':
        boot_status_code: enabled-by-generator
        datasource: lxd
        detail: DataSourceLXD
        errors: []
        extended_status: done
        init:
            errors: []
            finished: 1715364795.5432372
            recoverable_errors: {}
            start: 1715364795.3022065
        init-local:
            errors: []
            finished: 1715364794.7780783
            recoverable_errors: {}
            start: 1715364794.5281959
        last_update: Fri, 10 May 2024 18:13:16 +0000
        modules-config:
            errors: []
            finished: 1715364796.141891
            recoverable_errors: {}
            start: 1715364796.0045366
        modules-final:
            errors: []
            finished: 1715364796.412329
            recoverable_errors: {}
            start: 1715364796.3465369
        recoverable_errors: {}
        stage: null
        status: done
stage: null
status: done
...


** Tags removed: verification-needed verification-needed-mantic
** Tags added: verification-done verification-done-mantic

-- 
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