huge and slow image 20181002 due to seeded lxd snap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Fix Released
|
High
|
Unassigned | ||
snapd (Ubuntu) |
Triaged
|
High
|
Paweł Stołowski |
Bug Description
The current squashfs/lxd image (20181002) is almost twice the size:
170M -> 323M
as the previous image (20180928) and boots dramatically slower:
10s -> 38s
At first, just looking at manifests you'd blame systemd change, but I
think the real problem is seeded snaps.
$ lxc image list ubuntu-daily: | grep 18.10 | grep x86_64
| c (7 more) | 6cad1409aaac | yes | ubuntu 18.10 amd64 (daily) (20181002) | x86_64 | 323.85MB | Oct 2, 2018 at 12:00am (UTC) |
| | 21f94ea409ac | yes | ubuntu 18.10 amd64 (daily) (20180928) | x86_64 | 170.25MB | Sep 28, 2018 at 12:00am (UTC) |
| | 5011b07c621c | yes | ubuntu 18.10 amd64 (daily) (20180926) | x86_64 | 170.25MB | Sep 26, 2018 at 12:00am (UTC) |
## The old image
$ lxc launch ubuntu-
$ lxc exec cosmic-test -- sh -xc 'cat /etc/cloud/
+ cat /etc/cloud/
build_name: server
serial: 20180928
+ dpkg-query --show
+ pastebinit
http://
+ systemd-analyze
Startup finished in 11.822s (userspace)
graphical.target reached after 10.139s in userspace
+ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.
graphical.target @10.139s
└─multi-user.target @10.139s
└─snapd.
└─snapd.service @5.770s +269ms
└
## Try the current one.
$ lxc launch ubuntu-daily:cosmic c2
$ lxc exec c2 -- sh -xc 'cat /etc/cloud/
+ cat /etc/cloud/
build_name: server
serial: 20181002
+ dpkg-query --show
+ pastebinit
http://
+ systemd-analyze
Startup finished in 38.639s (userspace)
graphical.target reached after 36.990s in userspace
+ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.
graphical.target @36.990s
└─multi-user.target @36.989s
└─snapd.
└─snapd.service @12.863s +67ms
└
Heres a diff of their manifests:
$ diff -u /tmp/20180928.
--- /tmp/20180928.
+++ /tmp/20181002.
-apparmor 2.12-4ubuntu7
+apparmor 2.12-4ubuntu8
-libapparmor1:amd64 2.12-4ubuntu7
+libapparmor1:amd64 2.12-4ubuntu8
-libnss-
+libnss-
-libpam-
+libpam-
-libsystemd0:amd64 239-7ubuntu8
+libsystemd0:amd64 239-7ubuntu9
-libudev1:amd64 239-7ubuntu8
+libudev1:amd64 239-7ubuntu9
-libzstd1:amd64 1.3.3+dfsg-2ubuntu1
+libzstd1:amd64 1.3.5+dfsg-1ubuntu1
-networkd-
+networkd-
-python3-configobj 5.0.6-2
+python3-configobj 5.0.6-3
-shared-mime-info 1.9-2
+shared-mime-info 1.10-1
-systemd 239-7ubuntu8
-systemd-sysv 239-7ubuntu8
+systemd 239-7ubuntu9
+systemd-sysv 239-7ubuntu9
-udev 239-7ubuntu8
+udev 239-7ubuntu9
description: | updated |
description: | updated |
Changed in cloud-images: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in cloud-images: | |
status: | Confirmed → Fix Released |
# ls -lh /var/lib/ snapd/seed/ snaps/
total 154M
-rw------- 1 root root 88M Oct 3 03:55 core_5548.snap
-rw------- 1 root root 67M Oct 3 03:55 lxd_8959.snap