zypper often fails to download packages when using HTTPS
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
libzypp (Ubuntu) | Status tracked in Mantic | |||||
Jammy |
Fix Released
|
Undecided
|
Unassigned | |||
Lunar |
Fix Released
|
Undecided
|
Unassigned | |||
Mantic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
There are known issues in zypper that cause frequent failures to download packages when using HTTPS:
https:/
https:/
There are a couple of fixes that solve most of the problems in libzypp:
https:/
https:/
It would be good to backport these to Jammy, given zypper is used to bootstrap SUSE images from CIs running Jammy, like Github Actions.
[Impact]
We are hitting a lot of issues when using zypper with https on Jammy on Github Actions, and these upstream changes help alleviate those issues.
[Major Changes]
Only two bugfix backports, no API changes:
https:/
https:/
[Test Plan]
a) Install zypper and mkosi:
$ sudo apt install zypper mkosi -y
Bootstrap a suse image using mkosi and https. Run this about 10 times (arbitrary number: it has been run for hours without hitting the bug unfortunately, so let's just try to check it hasn't regressed). Make sure the download is using https (see paste below):
# mkosi -d opensuse -r tumbleweed --format=directory --package=systemd --mirror=https:/
‣ Removing output files…
‣ Detaching namespace
‣ Setting up temporary workspace.
‣ Temporary workspace set up in /root/.
‣ Running second (final) stage…
‣ Mounting image…
‣ Setting up basic OS tree…
‣ Mounting Package Cache
‣ Installing openSUSE…
Adding repository 'repo-oss' .......
Repository 'repo-oss' successfully added
URI : https:/
(...)
Executing %posttrans scripts .......
‣ Unmounting API VFS…
RPM files caching has been disabled for repository 'repo-oss'.
RPM files caching has been disabled for repository 'repo-update'.
‣ Unmounting Package Cache
‣ Recording packages in manifest…
‣ Resetting machine ID
‣ Unmounting image…
‣ Linking image file…
‣ Linked image
‣ Saving manifest image.manifest
‣ Changing ownership of output file image.manifest to user ubuntu…
‣ Changed ownership of image.manifest
‣ Resulting image size is 214.1M.
b) From comment #26:
Thanks, I'll do it in two stages: first, enable proposed but leave https off for a few days, to ensure there are no regressions in the base case. Then, after a few days if there's no regression, enable https, and monitor to see if it makes the situation better/by how much/etc.
[Regression Potential]
* Changes are limited to the transfer of data from remove hosts, so
regressions (if any) should only occur in use-cases that download
packages.
* Generally minimal spread to other components, only zypper is using this library:
root@jammy:~# apt-cache rdepends libzypp1722
libzypp1722
Reverse Depends:
libzypp-dev
zypper
libzypp-doc
libzypp-bin
Changed in libzypp (Ubuntu): | |
status: | New → Confirmed |
Changed in libzypp (Ubuntu Jammy): | |
status: | Incomplete → Confirmed |
Changed in libzypp (Ubuntu Lunar): | |
status: | Incomplete → Confirmed |
description: | updated |
description: | updated |
description: | updated |
debdiff attached