Verified Focal 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 focal
Creating a disk backed by the image...
Formatting 'boot-disk-active-louse.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2361393152 backing_file=focal-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.
ubuntu@localhost: Permission denied (publickey).
Awaiting SSH access...
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:39:42 +0000
detail:
Running in stage: modules-final
---- cloud-init status --wait -----
....................................................................................
status: done
--- assert systemd-user-sessions.service is blocked by later cloud-config.service and snapd-seeded
└─cloud-config.service @18.569s +2.019s
└─snapd.seeded.service @13.770s +4.792s
└─snapd.service @11.668s +2.095s └─snap.lxd.daemon.unix.socket @16.098s └─cloud-init.service @9.889s +1.460s └─cloud-init-local.service @4.958s +2.932s
Before=ubuntu-advantage.service systemd-user-sessions.service cloud-init.target shutdown.target cloud-final.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-active-louse.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=2361393152 backing_file=focal-server-cloudimg-amd64.img back6
Upgrading cloud-init from focal-proposed
deb http://archive.ubuntu.com/ubuntu focal-proposed main
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
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://archive.ubuntu.com/ubuntu focal-proposed InRelease [267 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8,628 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/universe Translation-en [5,124 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 [9,136 B]
Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2,570 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [398 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [13.2 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [2,367 kB]
Get:16 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [329 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [552 B]
Get:18 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [898 kB]
Get:19 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [188 kB]
Get:20 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [19.2 kB]
Get:21 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [23.6 kB]
Get:22 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [5,504 B]
Get:23 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [548 B]
Get:24 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,960 kB]
Get:25 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [482 kB]
Get:26 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [17.2 kB]
Get:27 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [2,479 kB]
Get:28 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [346 kB]
Get:29 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [552 B]
Get:30 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,131 kB]
Get:31 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [270 kB]
Get:32 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [25.7 kB]
Get:33 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [25.8 kB]
Get:34 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [7,484 B]
Get:35 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [620 B]
Get:36 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [45.7 kB]
Get:37 http://archive.ubuntu.com/ubuntu focal-backports/main Translation-en [16.3 kB]
Get:38 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata [1,420 B]
Get:39 http://archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B]
Get:40 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [25.0 kB]
Get:41 http://archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [16.3 kB]
Get:42 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [880 B]
Get:43 http://archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B]
Get:44 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages [232 kB]
Get:45 http://archive.ubuntu.com/ubuntu focal-proposed/main Translation-en [50.7 kB]
Get:46 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 c-n-f Metadata [1,596 B]
Fetched 29.8 MB in 7s (4,418 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 46 not upgraded.
Need to get 546 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 23.3.3-0ubuntu0~20.04.1 [546 kB]
Fetched 546 kB in 1s (644 kB/s)
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
(Reading database ... 64067 files and directories currently installed.)
Preparing to unpack .../cloud-init_23.3.3-0ubuntu0~20.04.1_all.deb ...
Unpacking cloud-init (23.3.3-0ubuntu0~20.04.1) over (23.3.1-0ubuntu1~20.04.1) ...
Setting up cloud-init (23.3.3-0ubuntu0~20.04.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for rsyslog (8.2001.0-1ubuntu1.3) ...
invoke-rc.d: could not determine current runlevel
--- 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:41:40 +0000
detail:
Running in stage: modules-final
---- cloud-init status --wait -----
.................................................................
status: done
--- assert cloud-init is 23.3.3 based
---- cloud-init --version -----
/usr/bin/cloud-init 23.3.3-0ubuntu0~20.04.1
--- assert systemd-user-sessions.service is blocked by earlier cloud-init.service and not snapd-seeded
└─snap.lxd.daemon.unix.socket @16.010s └─cloud-init.service @9.944s +1.396s └─cloud-init-local.service @5.187s +3.107s
--- assert cloud-init.service blocks systemd-user-sessions.service
---- systemctl show -p Before cloud-init.service -----
Before=systemd-user-sessions.service sysinit.target ssh.service network-online.target shutdown.target sshd-keygen.service cloud-config.target
Before=systemd-user-sessions.service sysinit.target ssh.service network-online.target shutdown.target sshd-keygen.service cloud-config.target
SUCCESS: cloud-init.service is ordered Before=systemd-user-sessions
Verified Focal 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 focal active- louse.img' , fmt=qcow2 cluster_size=65536 extended_l2=off compression_ type=zlib size=2361393152 backing_ file=focal- server- cloudimg- amd64.img backing_fmt=q6 :ECX.svm [bit 2] by-generator ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... user-sessions. service is blocked by later cloud-config. service and snapd-seeded config. service @18.569s +2.019s seeded. service @13.770s +4.792s
└─snap. lxd.daemon. unix.socket @16.098s
└─cloud- init.service @9.889s +1.460s
└─cloud- init-local. service @4.958s +2.932s ubuntu- advantage. service systemd- user-sessions. service cloud-init.target shutdown.target cloud-final.service service is ordered Before= systemd- user-sessions proposed- active- louse.img' , fmt=qcow2 cluster_size=65536 extended_l2=off compression_ type=zlib size=2361393152 backing_ file=focal- server- cloudimg- amd64.img back6 archive. ubuntu. com/ubuntu focal-proposed main security. ubuntu. com/ubuntu focal-security InRelease [114 kB] archive. ubuntu. com/ubuntu focal InRelease archive. ubuntu. com/ubuntu focal-updates InRelease [114 kB] archive. ubuntu. com/ubuntu focal-backports InRelease [108 kB] archive. ubuntu. com/ubuntu focal-proposed InRelease [267 kB] archive. ubuntu. com/ubuntu focal/universe amd64 Packages [8,628 kB] archive. ubuntu. com/ubuntu focal/universe Translation-en [5,124 kB] archive. ubuntu. com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB] archive. ubuntu. com/ubuntu focal/multiverse amd64 Packages [144 kB] archive. ubuntu. com/ubuntu focal/multiverse Translation-en [104 kB] archive. ubuntu. com/ubuntu focal/multiverse amd64 c-n-f Metadata [9,136 B] security. ubuntu. com/ubuntu focal-security/main amd64 Packages [2,570 kB] security. ubuntu. com/ubuntu focal-security/main Translation-en [398 kB] security. ubuntu. com/ubuntu focal-security/main amd64 c-n-f Metadata [13.2 kB] security. ubuntu. com/ubuntu focal-security/ restricted amd64 Packages [2,367 kB] security. ubuntu. com/ubuntu focal-security/ restricted Translation-en [329 kB] security. ubuntu. com/ubuntu focal-security/ restricted amd64 c-n-f Metadata [552 B] security. ubuntu. com/ubuntu focal-security/ universe amd64 Packages [898 kB] security. ubuntu. com/ubuntu focal-security/ universe Translation-en [188 kB] security. ubuntu. com/ubuntu focal-security/ universe amd64 c-n-f Metadata [19.2 kB] security. ubuntu. com/ubuntu focal-security/ multiverse amd64 Packages [23.6 kB] security. ubuntu. com/ubuntu focal-security/ multiverse Translation-en [5,504 B] security. ubuntu. com/ubuntu focal-security/ multiverse amd64 c-n-f Metadata [548 B] archive. ubuntu. com/ubuntu focal-updates/main amd64 Packages [2,960 kB] archive. ubuntu. com/ubuntu focal-updates/main Translation-en [482 kB] archive. ubuntu. com/ubuntu focal-updates/main amd64 c-n-f Metadata [17.2 kB] archive. ubuntu. com/ubuntu focal-updates/ restricted amd64 Packages [2,479 kB] archive. ubuntu. com/ubuntu focal-updates/ restricted Translation-en [346 kB] archive. ubuntu. com/ubuntu focal-updates/ restricted amd64 c-n-f Metadata [552 B] archive. ubuntu. com/ubuntu focal-updates/ universe amd64 Packages [1,131 kB] archive. ubuntu. com/ubuntu focal-updates/ universe Translation-en [270 kB] archive. ubuntu. com/ubuntu focal-updates/ universe amd64 c-n-f Metadata [25.7 kB] archive. ubuntu. com/ubuntu focal-updates/ multiverse amd64 Packages [25.8 kB] archive. ubuntu. com/ubuntu focal-updates/ multiverse Translation-en [7,484 B] archive. ubuntu. com/ubuntu focal-updates/ multiverse amd64 c-n-f Metadata [620 B] archive. ubuntu. com/ubuntu focal-backports /main amd64 Packages [45.7 kB] archive. ubuntu. com/ubuntu focal-backports /main Translation-en [16.3 kB] archive. ubuntu. com/ubuntu focal-backports /main amd64 c-n-f Metadata [1,420 B] archive. ubuntu. com/ubuntu focal-backports /restricted amd64 c-n-f Metadata [116 B] archive. ubuntu. com/ubuntu focal-backports /universe amd64 Packages [25.0 kB] archive. ubuntu. com/ubuntu focal-backports /universe Translation-en [16.3 kB] archive. ubuntu. com/ubuntu focal-backports /universe amd64 c-n-f Metadata [880 B] archive. ubuntu. com/ubuntu focal-backports /multiverse amd64 c-n-f Metadata [116 B] archive. ubuntu. com/ubuntu focal-proposed/main amd64 Packages [232 kB] archive. ubuntu. com/ubuntu focal-proposed/main Translation-en [50.7 kB] archive. ubuntu. com/ubuntu focal-proposed/main amd64 c-n-f Metadata [1,596 B] archive. ubuntu. com/ubuntu focal-proposed/main amd64 cloud-init all 23.3.3- 0ubuntu0~ 20.04.1 [546 kB] init_23. 3.3-0ubuntu0~ 20.04.1_ all.deb ... 0ubuntu0~ 20.04.1) over (23.3.1- 0ubuntu1~ 20.04.1) ... 0ubuntu0~ 20.04.1) ... 0-1ubuntu1. 3) ... :ECX.svm [bit 2] by-generator ....... ....... ....... ....... ....... ....... ....... ....... .. 0ubuntu0~ 20.04.1 user-sessions. service is blocked by earlier cloud-init.service and not snapd-seeded lxd.daemon. unix.socket @16.010s
└─cloud- init.service @9.944s +1.396s
└─cloud- init-local. service @5.187s +3.107s user-sessions. service systemd- user-sessions. service sysinit.target ssh.service network- online. target shutdown.target sshd-keygen.service cloud-config.target systemd- user-sessions. service sysinit.target ssh.service network- online. target shutdown.target sshd-keygen.service cloud-config.target systemd- user-sessions
Creating a disk backed by the image...
Formatting 'boot-disk-
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
Warning: Permanently added '[localhost]:2222' (ED25519) to the list of known hosts.
ubuntu@localhost: Permission denied (publickey).
Awaiting SSH access...
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-
last_update: Fri, 17 Nov 2023 21:39:42 +0000
detail:
Running in stage: modules-final
---- cloud-init status --wait -----
.......
status: done
--- assert systemd-
└─cloud-
└─snapd.
└─snapd.service @11.668s +2.095s
Before=
SUCCESS: cloud-config.
Creating a disk backed by the image with cloud-init upgraded to -proposed...
Formatting 'boot-disk-
Upgrading cloud-init from focal-proposed
deb http://
Get:1 http://
Hit:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Fetched 29.8 MB in 7s (4,418 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 46 not upgraded.
Need to get 546 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Fetched 546 kB in 1s (644 kB/s)
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
(Reading database ... 64067 files and directories currently installed.)
Preparing to unpack .../cloud-
Unpacking cloud-init (23.3.3-
Setting up cloud-init (23.3.3-
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for rsyslog (8.2001.
invoke-rc.d: could not determine current runlevel
--- 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
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-
last_update: Fri, 17 Nov 2023 21:41:40 +0000
detail:
Running in stage: modules-final
---- cloud-init status --wait -----
.......
status: done
--- assert cloud-init is 23.3.3 based
---- cloud-init --version -----
/usr/bin/cloud-init 23.3.3-
--- assert systemd-
└─snap.
--- assert cloud-init.service blocks systemd-
---- systemctl show -p Before cloud-init.service -----
Before=
Before=
SUCCESS: cloud-init.service is ordered Before=