Comment 10 for bug 2039505

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

Verified Lunar 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 lunar
Creating a disk backed by the image...
Formatting 'boot-disk-valid-minnow.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=3758096384 backing_file=lunar-server-cloudimg-amd64.img backing_fmt=q6
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:10:42 +0000
detail:
Running in stage: modules-final
--- assert systemd-user-sessions.service is blocked by later cloud-config.service and snapd-seeded
Before=cloud-final.service ubuntu-advantage.service systemd-user-sessions.service cloud-init.target shutdown.target
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-valid-minnow.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=3758096384 backing_file=lunar-server-cloudimg-amd64.img back6
Upgrading cloud-init from lunar-proposed
deb http://archive.ubuntu.com/ubuntu lunar-proposed main
Hit:1 http://archive.ubuntu.com/ubuntu lunar InRelease
Get:2 http://security.ubuntu.com/ubuntu lunar-security InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu lunar-updates InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu lunar-backports InRelease [99.9 kB]
Get:5 http://archive.ubuntu.com/ubuntu lunar-proposed InRelease [255 kB]
Get:6 http://archive.ubuntu.com/ubuntu lunar/universe amd64 Packages [15.0 MB]
Get:7 http://archive.ubuntu.com/ubuntu lunar/universe Translation-en [5,906 kB]
Get:8 http://archive.ubuntu.com/ubuntu lunar/universe amd64 c-n-f Metadata [303 kB]
Get:9 http://archive.ubuntu.com/ubuntu lunar/multiverse amd64 Packages [236 kB]
Get:10 http://archive.ubuntu.com/ubuntu lunar/multiverse Translation-en [112 kB]
Get:11 http://archive.ubuntu.com/ubuntu lunar/multiverse amd64 c-n-f Metadata [8,772 B]
Get:12 http://security.ubuntu.com/ubuntu lunar-security/main amd64 Packages [407 kB]
Get:13 http://security.ubuntu.com/ubuntu lunar-security/main Translation-en [90.5 kB]
Get:14 http://security.ubuntu.com/ubuntu lunar-security/universe amd64 Packages [732 kB]
Get:15 http://security.ubuntu.com/ubuntu lunar-security/universe Translation-en [74.2 kB]
Get:16 http://security.ubuntu.com/ubuntu lunar-security/universe amd64 c-n-f Metadata [12.2 kB]
Get:17 http://security.ubuntu.com/ubuntu lunar-security/multiverse amd64 Packages [6,300 B]
Get:18 http://security.ubuntu.com/ubuntu lunar-security/multiverse Translation-en [1,112 B]
Get:19 http://security.ubuntu.com/ubuntu lunar-security/multiverse amd64 c-n-f Metadata [260 B]
Get:20 http://archive.ubuntu.com/ubuntu lunar-updates/main amd64 Packages [512 kB]
Get:21 http://archive.ubuntu.com/ubuntu lunar-updates/main Translation-en [121 kB]
Get:22 http://archive.ubuntu.com/ubuntu lunar-updates/universe amd64 Packages [820 kB]
Get:23 http://archive.ubuntu.com/ubuntu lunar-updates/universe Translation-en [102 kB]
Get:24 http://archive.ubuntu.com/ubuntu lunar-updates/universe amd64 c-n-f Metadata [13.6 kB]
Get:25 http://archive.ubuntu.com/ubuntu lunar-updates/multiverse amd64 Packages [6,300 B]
Get:26 http://archive.ubuntu.com/ubuntu lunar-updates/multiverse Translation-en [1,200 B]
Get:27 http://archive.ubuntu.com/ubuntu lunar-updates/multiverse amd64 c-n-f Metadata [260 B]
Get:28 http://archive.ubuntu.com/ubuntu lunar-backports/main amd64 c-n-f Metadata [112 B]
Get:29 http://archive.ubuntu.com/ubuntu lunar-backports/restricted amd64 c-n-f Metadata [116 B]
Get:30 http://archive.ubuntu.com/ubuntu lunar-backports/universe amd64 Packages [3,940 B]
Get:31 http://archive.ubuntu.com/ubuntu lunar-backports/universe Translation-en [1,392 B]
Get:32 http://archive.ubuntu.com/ubuntu lunar-backports/universe amd64 c-n-f Metadata [176 B]
Get:33 http://archive.ubuntu.com/ubuntu lunar-backports/multiverse amd64 c-n-f Metadata [116 B]
Get:34 http://archive.ubuntu.com/ubuntu lunar-proposed/main amd64 Packages [82.5 kB]
Get:35 http://archive.ubuntu.com/ubuntu lunar-proposed/main Translation-en [24.9 kB]
Get:36 http://archive.ubuntu.com/ubuntu lunar-proposed/main amd64 c-n-f Metadata [1,316 B]
Fetched 25.2 MB in 6s (4,200 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 28 not upgraded.
Need to get 577 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu lunar-proposed/main amd64 cloud-init all 23.3.3-0ubuntu0~23.04.1 [577 kB]
Fetched 577 kB in 1s (682 kB/s)
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
(Reading database ... 65464 files and directories currently installed.)
Preparing to unpack .../cloud-init_23.3.3-0ubuntu0~23.04.1_all.deb ...
Unpacking cloud-init (23.3.3-0ubuntu0~23.04.1) over (23.3.1-0ubuntu1~23.04.1) ...
Setting up cloud-init (23.3.3-0ubuntu0~23.04.1) ...
Processing triggers for man-db (2.11.2-1) ...
Processing triggers for rsyslog (8.2302.0-1ubuntu3) ...
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.
ubuntu@localhost: Permission denied (publickey).
Awaiting SSH access...
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:12:02 +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~23.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=sshd.service shutdown.target systemd-user-sessions.service sysinit.target network-online.target cloud-config.target sshd-keygen.service
Before=sshd.service shutdown.target systemd-user-sessions.service sysinit.target network-online.target cloud-config.target sshd-keygen.service
SUCCESS: cloud-init.service is ordered Before=systemd-user-sessions