Comment 9 for bug 2039505

Revision history for this message
Chad Smith (chad.smith) wrote (last edit ):

Verified Jammy Unprivileged prompts and costly ordering after cloud-config.service on released cloud-init.
Verified -proposed upgrade to 23.3.3 no longer shows " Unprivileged users are not permitted to log in yet" and systemd ordering for systemd-user-sessions.service is After cloud-init.service instead of cloud-config.service

$ bash sru.sh jammy
Creating a disk backed by the image...
Formatting 'boot-disk-key-imp.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2361393152 backing_file=jammy-server-cloudimg-amd64.img backing_fmt=qcow2 6
Launching current cloud-init to confirm expected time to SSH delay
--- expect to see some messages Unprivileged users are not permitted to log in yet ---
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
Warning: Permanently added '[localhost]:2222' (ED25519) to the list of known hosts.
"System is booting up. Unprivileged users are not permitted to log in yet. Please come back later. For technical details, see pam_nologin(8)."
Connection closed by 127.0.0.1 port 2222
Awaiting SSH access...
Warning: Permanently added '[localhost]:2222' (ED25519) to the list of known hosts.
status: running
boot_status_code: enabled-by-generator
last_update: Fri, 17 Nov 2023 21:18:48 +0000
detail:
Running in stage: modules-final
--- assert systemd-user-sessions.service is blocked by later cloud-config.service and snapd-seeded
Before=systemd-user-sessions.service shutdown.target cloud-init.target cloud-final.service ubuntu-advantage.service
SUCCESS: cloud-config.service is ordered Before=systemd-user-sessions
Creating a disk backed by the image with cloud-init upgraded to -proposed...
Formatting 'boot-disk-proposed-key-imp.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2361393152 backing_file=jammy-server-cloudimg-amd64.img backing_f6
Upgrading cloud-init from jammy-proposed
deb http://archive.ubuntu.com/ubuntu jammy-proposed main
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
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://archive.ubuntu.com/ubuntu jammy-proposed InRelease [270 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/universe Translation-en [5,652 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8,372 B]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [953 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [188 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.4 kB]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1,093 kB]
Get:16 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [178 kB]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [520 B]
Get:18 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [795 kB]
Get:19 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [147 kB]
Get:20 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.8 kB]
Get:21 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [36.5 kB]
Get:22 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [7,060 B]
Get:23 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B]
Get:24 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1,162 kB]
Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [248 kB]
Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [16.1 kB]
Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1,114 kB]
Get:28 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [181 kB]
Get:29 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [520 B]
Get:30 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [998 kB]
Get:31 http://archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [219 kB]
Get:32 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [22.1 kB]
Get:33 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [41.6 kB]
Get:34 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [9,768 B]
Get:35 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [472 B]
Get:36 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [64.2 kB]
Get:37 http://archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [10.5 kB]
Get:38 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]
Get:39 http://archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]
Get:40 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [27.8 kB]
Get:41 http://archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.4 kB]
Get:42 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [644 B]
Get:43 http://archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Get:44 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages [172 kB]
Get:45 http://archive.ubuntu.com/ubuntu jammy-proposed/main Translation-en [43.7 kB]
Get:46 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 c-n-f Metadata [2,740 B]
Fetched 28.7 MB in 7s (4,183 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 50 not upgraded.
Need to get 541 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 23.3.3-0ubuntu0~22.04.1 [541 kB]
Fetched 541 kB in 1s (617 kB/s)
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
(Reading database ... 64302 files and directories currently installed.)
Preparing to unpack .../cloud-init_23.3.3-0ubuntu0~22.04.1_all.deb ...
Unpacking cloud-init (23.3.3-0ubuntu0~22.04.1) over (23.3.1-0ubuntu1~22.04.1) ...
Setting up cloud-init (23.3.3-0ubuntu0~22.04.1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ...
invoke-rc.d: unknown initscript, /etc/init.d/rsyslog not found.
invoke-rc.d: could not determine current runlevel
Scanning processes...
Scanning linux images...

Failed to check for processor microcode upgrades.

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.
--- expect to see NO messages concerning Unprivileged users are not permitted to log in yet ---
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
Warning: Permanently added '[localhost]:2223' (ED25519) to the list of known hosts.
status: running
boot_status_code: enabled-by-generator
last_update: Fri, 17 Nov 2023 21:20:16 +0000
detail:
Running in stage: modules-final
--- assert cloud-init is 23.3.3 based
---- cloud-init --version -----
/usr/bin/cloud-init 23.3.3-0ubuntu0~22.04.1
--- assert systemd-user-sessions.service is blocked by earlier cloud-init.service and not snapd-seeded
--- assert cloud-init.service blocks systemd-user-sessions.service
---- systemctl show -p Before cloud-init.service -----
Before=ssh.service sshd-keygen.service network-online.target shutdown.target sysinit.target systemd-user-sessions.service cloud-config.target
Before=ssh.service sshd-keygen.service network-online.target shutdown.target sysinit.target systemd-user-sessions.service cloud-config.target
SUCCESS: cloud-init.service is ordered Before=systemd-user-sessions