### Plucky testing ###

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

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

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

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

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

ubuntu@sru-snapd-plucky:~$ 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 @20.070s
└─multi-user.target @20.070s
  └─snapd.seeded.service @10.356s +9.713s
    └─basic.target @10.222s
      └─sockets.target @10.213s
        └─snapd.socket @10.120s +82ms
          └─sysinit.target @10.022s
...

ubuntu@sru-snapd-plucky:~$ systemd-analyze blame
9.713s snapd.seeded.service
8.665s snapd.service
6.870s google-startup-scripts.service
6.064s cloud-init-main.service
5.889s cloud-config.service
5.833s cloud-final.service
5.257s google-guest-agent.service
4.317s apport.service
4.310s pollinate.service
3.930s networkd-dispatcher.service
3.427s apparmor.service
2.911s ldconfig.service
2.664s dbus.service
2.634s dev-sda1.device
2.227s rsyslog.service
...

* Verified that pre-seeding was successful:

ubuntu@sru-snapd-plucky:~$ snap debug timings 1 --verbose
ID   Status        Doing      Undoing  Label                         Summary
3    Done            5ms            -  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          110ms            -  mount-snap                    Mount snap 
"snapd" (24792)
 ^                  31ms            -  check-snap                      check 
snap "snapd"
 ^                  53ms            -  setup-snap                      setup 
snap "snapd"
6    Done           12ms            -  copy-snap-data                Copy snap 
"snapd" data
7    Done          133ms            -  setup-profiles                Setup snap 
"snapd" (24792) security profiles
 ^                  14ms            -  setup-security-backend          setup 
security backend "udev" for snap "snapd"
 ^                 102ms            -  setup-security-backend[many]    setup 
security backend "apparmor" for 1 snaps
8    Done           60ms            -  link-snap                     Make snap 
"snapd" (24792) available to the system
9    Done           16ms            -  auto-connect                  
Automatically connect eligible plugs and slots of snap "snapd"
10   Done           18ms            -  set-auto-aliases              Set 
automatic aliases for snap "snapd"
11   Done           33ms            -  setup-aliases                 Setup snap 
"snapd" aliases
14   Done            5ms            -  prerequisites                 Ensure 
prerequisites for "core22" are available
15   Done           10ms            -  prepare-snap                  Prepare 
snap "/var/lib/snapd/seed/snaps/core22_2045.snap" (2045)
16   Done          394ms            -  mount-snap                    Mount snap 
"core22" (2045)
 ^                 330ms            -  check-snap                      check 
snap "core22"
 ^                  43ms            -  setup-snap                      setup 
snap "core22"
17   Done           11ms            -  copy-snap-data                Copy snap 
"core22" data
18   Done           23ms            -  setup-profiles                Setup snap 
"core22" (2045) security profiles
19   Done           48ms            -  link-snap                     Make snap 
"core22" (2045) available to the system
20   Done           12ms            -  auto-connect                  
Automatically connect eligible plugs and slots of snap "core22"
21   Done           29ms            -  set-auto-aliases              Set 
automatic aliases for snap "core22"
22   Done           17ms            -  setup-aliases                 Setup snap 
"core22" aliases
26   Done           26ms            -  prerequisites                 Ensure 
prerequisites for "google-cloud-cli" are available
27   Done           11ms            -  prepare-snap                  Prepare 
snap "/var/lib/snapd/seed/snaps/google-cloud-cli_361.snap" (361)
28   Done         1667ms            -  mount-snap                    Mount snap 
"google-cloud-cli" (361)
 ^                1571ms            -  check-snap                      check 
snap "google-cloud-cli"
 ^                  58ms            -  setup-snap                      setup 
snap "google-cloud-cli"
29   Done           14ms            -  copy-snap-data                Copy snap 
"google-cloud-cli" data
30   Done          377ms            -  setup-profiles                Setup snap 
"google-cloud-cli" (361) security profiles
 ^                 126ms            -  setup-security-backend          setup 
security backend "seccomp" for snap "google-cloud-cli"
 ^                  62ms            -  setup-security-backend          setup 
security backend "udev" for snap "google-cloud-cli"
 ^                 173ms            -  setup-security-backend[many]    setup 
security backend "apparmor" for 1 snaps
  ^                 42ms            -  load-profiles[changed-many]       load 
changed security profiles of 1 snaps
31   Done          101ms            -  link-snap                     Make snap 
"google-cloud-cli" (361) available to the system
 ^                  53ms            -  generate-wrappers               generate 
wrappers for snap google-cloud-cli
32   Done           15ms            -  auto-connect                  
Automatically connect eligible plugs and slots of snap "google-cloud-cli"
33   Done           11ms            -  set-auto-aliases              Set 
automatic aliases for snap "google-cloud-cli"
34   Done           16ms            -  setup-aliases                 Setup snap 
"google-cloud-cli" aliases
1    Done           50ms            -  mark-preseeded                Mark 
system pre-seeded
12   Done            0ms            -  run-hook                      Run 
install hook of "snapd" snap if present
13   Done            9ms            -  start-snap-services           Start snap 
"snapd" (24792) services
2    Done           27ms            -  run-hook                      Run 
configure hook of "core" snap if present
23   Done            3ms            -  run-hook                      Run 
install hook of "core22" snap if present
24   Done            7ms            -  start-snap-services           Start snap 
"core22" (2045) services
25   Done            5ms            -  run-hook                      Run health 
check of "core22" snap
35   Done            5ms            -  run-hook                      Run 
install hook of "google-cloud-cli" snap if present
36   Done            7ms            -  run-hook                      Run 
default-configure hook of "google-cloud-cli" snap if present
37   Done            7ms            -  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            7ms            -  mark-seeded                   Mark 
system seeded


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

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