### Noble testing ###

[Note that the bug in question was not seen in GCP jammy 24.04 images,
so this test is to check there are no regressions]

* Created a new questing GCP image with `snapd` installed from
`-proposed` in the image build:

$ gcloud compute instances create --image-project=ubuntu-virtustom 
--image=daily-ubuntu-2404-jammy-amd64-v20250730 --machine-type=n2-standard-2 
sru-snapd-noble
Created 
[https://www.googleapis.com/compute/v1/projects/ubuntu-virtustom/zones/europe-west10-b/instances/sru-snapd-noble].
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
sru-snapd-noble europe-west10-b n2-standard-2 10.214.0.7 34.32.52.220 RUNNING
$ gcloud compute ssh sru-snapd-noble
ubuntu@sru-snapd-noble:~$ dpkg -s snapd
Package: snapd
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 120936
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Version: 2.68.5+ubuntu24.04.1
...

* Verified that our internal testing worked (CTF and CIT)

* Verified that `snapd.seeded.service` wasn't taking longer than
expected:

ubuntu@sru-snapd-noble:~$ systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @26.331s
└─multi-user.target @26.331s
  └─snapd.seeded.service @14.211s +12.119s
    └─basic.target @13.787s
      └─sockets.target @13.772s
        └─snapd.socket @13.676s +75ms
          └─sysinit.target @13.531s
...

ubuntu@sru-snapd-noble:~$ systemd-analyze blame
12.119s snapd.seeded.service
10.033s snapd.service
 6.242s cloud-config.service
 5.006s gce-workload-cert-refresh.service
 4.926s apport.service
 4.855s google-guest-agent.service
 4.594s cloud-init-local.service
 3.858s networkd-dispatcher.service
 3.290s pollinate.service
 2.794s ldconfig.service
 2.449s rsyslog.service
 2.321s ssh.service
 2.174s cloud-init.service
 2.144s polkit.service
 2.081s apparmor.service
...

* Verified that pre-seeding was successful:

ubuntu@sru-snapd-noble:~$ snap debug timings 1 --verbose
ID Status Doing Undoing Label Summary
3 Done 4ms - prerequisites Ensure prerequisites for "snapd" are available
4 Done 8ms - prepare-snap Prepare snap 
"/var/lib/snapd/seed/snaps/snapd_24792.snap" (24792)
5 Done 70ms - mount-snap Mount snap "snapd" (24792)
 ^ 25ms - check-snap check snap "snapd"
 ^ 30ms - setup-snap setup snap "snapd"
6 Done 8ms - copy-snap-data Copy snap "snapd" data
7 Done 108ms - setup-profiles Setup snap "snapd" (24792) security profiles
 ^ 13ms - setup-security-backend setup security backend "udev" for snap "snapd"
 ^ 81ms - setup-security-backend[many] setup security backend "apparmor" for 1 
snaps
8 Done 29ms - link-snap Make snap "snapd" (24792) available to the system
9 Done 7ms - auto-connect Automatically connect eligible plugs and slots of 
snap "snapd"
10 Done 8ms - set-auto-aliases Set automatic aliases for snap "snapd"
11 Done 7ms - setup-aliases Setup snap "snapd" aliases
14 Done 4ms - prerequisites Ensure prerequisites for "core22" are available
15 Done 7ms - prepare-snap Prepare snap 
"/var/lib/snapd/seed/snaps/core22_2045.snap" (2045)
16 Done 331ms - mount-snap Mount snap "core22" (2045)
 ^ 285ms - check-snap check snap "core22"
 ^ 30ms - setup-snap setup snap "core22"
17 Done 9ms - copy-snap-data Copy snap "core22" data
18 Done 16ms - setup-profiles Setup snap "core22" (2045) security profiles
19 Done 29ms - link-snap Make snap "core22" (2045) available to the system
20 Done 10ms - auto-connect Automatically connect eligible plugs and slots of 
snap "core22"
21 Done 8ms - set-auto-aliases Set automatic aliases for snap "core22"
22 Done 8ms - setup-aliases Setup snap "core22" aliases
26 Done 13ms - prerequisites Ensure prerequisites for "google-cloud-cli" are 
available
27 Done 7ms - prepare-snap Prepare snap 
"/var/lib/snapd/seed/snaps/google-cloud-cli_361.snap" (361)
28 Done 1466ms - mount-snap Mount snap "google-cloud-cli" (361)
 ^ 1417ms - check-snap check snap "google-cloud-cli"
 ^ 32ms - setup-snap setup snap "google-cloud-cli"
29 Done 10ms - copy-snap-data Copy snap "google-cloud-cli" data
30 Done 176ms - setup-profiles Setup snap "google-cloud-cli" (361) security 
profiles
 ^ 100ms - setup-security-backend setup security backend "seccomp" for snap 
"google-cloud-cli"
 ^ 62ms - setup-security-backend[many] setup security backend "apparmor" for 1 
snaps
  ^ 38ms - load-profiles[changed-many] load changed security profiles of 1 snaps
31 Done 37ms - link-snap Make snap "google-cloud-cli" (361) available to the 
system
 ^ 12ms - generate-wrappers generate wrappers for snap google-cloud-cli
32 Done 7ms - auto-connect Automatically connect eligible plugs and slots of 
snap "google-cloud-cli"
33 Done 8ms - set-auto-aliases Set automatic aliases for snap "google-cloud-cli"
34 Done 8ms - setup-aliases Setup snap "google-cloud-cli" aliases
1 Done 49ms - mark-preseeded Mark system pre-seeded
12 Done 23ms - run-hook Run install hook of "snapd" snap if present
13 Done 32ms - start-snap-services Start snap "snapd" (24792) services
2 Done 61ms - run-hook Run configure hook of "core" snap if present
23 Done 12ms - run-hook Run install hook of "core22" snap if present
24 Done 31ms - start-snap-services Start snap "core22" (2045) services
25 Done 14ms - run-hook Run health check of "core22" snap
35 Done 6ms - run-hook Run install hook of "google-cloud-cli" snap if present
36 Done 5ms - run-hook Run default-configure hook of "google-cloud-cli" snap if 
present
37 Done 9ms - start-snap-services Start snap "google-cloud-cli" (361) services
38 Done 5ms - run-hook Run configure hook of "google-cloud-cli" snap if present
39 Done 5ms - run-hook Run health check of "google-cloud-cli" snap
40 Done 9ms - mark-seeded Mark system seeded


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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109843

Title:
  snapd.seeded.service has considerably slowed down

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/2109843/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to