coreos / rpm-ostree

⚛📦 Hybrid image/package system with atomic upgrades and package layering
https://coreos.github.io/rpm-ostree
Other
878 stars 196 forks source link

`override replace` from a large Bodhi update errors with "The connection is closed" #3461

Open YaLTeR opened 2 years ago

YaLTeR commented 2 years ago

Host system details

State: idle
Deployments:
  fedora:fedora/36/x86_64/silverblue
                   Version: 36.20220222.n.1 (2022-02-22T19:09:06Z)
                BaseCommit: 273ccc6fd28615bc2532fca280b718642cebd6f76e6e661c52694950ffb48233
              GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
                      Diff: 32 upgraded, 3 removed
       RemovedBasePackages: firefox 96.0-1.fc36
      ReplacedBasePackages: adwaita-cursor-theme adwaita-icon-theme gnome-backgrounds 41.0-2.fc36 -> 42~beta-1.fc36 gnome-bluetooth gnome-bluetooth-libs 1:3.34.5-3.fc36 -> 1:42~beta-1.fc36
                            gnome-control-center gnome-control-center-filesystem 41.4-1.fc36 -> 42~beta-1.fc36 gnome-desktop4 gnome-desktop3 42~alpha.1-3.fc36 -> 42~beta-1.fc36
                            gnome-shell 42~alpha-3.fc36 -> 42~beta-2.2.fc36 gsettings-desktop-schemas 42~alpha-2.fc36 -> 42~beta-1.fc36 gtk4 4.6.0-2.fc36 -> 4.6.1-1.fc36
                            libadwaita 1.0.2-1.fc36 -> 1.1~beta-1.fc36
                            mesa-libEGL mesa-libGL mesa-libxatracker mesa-vulkan-drivers mesa-dri-drivers mesa-libglapi mesa-libgbm mesa-filesystem 21.3.6-1.fc36 -> 22.1.0-0.3.20220222.05.7ec8a32.fc36
                            mutter 42~alpha-3.fc36 -> 42~beta-1.1.fc36 nautilus-extensions nautilus gnome-settings-daemon 42~alpha-3.fc36 -> 42~beta-1.fc36
                            pango 1.50.3-2.fc36 -> 1.50.4-1.fc36 vte291 0.66.2-2.fc36 -> 0.67.90-1.fc36
           LayeredPackages: bcache-tools exa fish flatpak-builder gnome-boxes gnome-console libvirt-daemon-config-network nautilus-gsconnect sysprof wine-systemd
             LocalPackages: edid-asus-1-1.fc34.noarch rpmfusion-free-release-36-0.2.noarch rpmfusion-nonfree-release-36-0.2.noarch
                 Initramfs: --include /etc/initramfs-overlay /

Expected vs actual behavior

$ rpm-ostree override replace https://bodhi.fedoraproject.org/updates/FEDORA-2022-62ea707376
Downloading https://kojipkgs.fedoraproject.org/packages/adwaita-icon-theme/42~beta/1.fc36/noarch/adwaita-cursor-theme-42~beta-1.fc36.noarch.rpm...done
(and so on for a while)
error: The connection is closed

Expected:

$ rpm-ostree override replace https://bodhi.fedoraproject.org/updates/FEDORA-2022-62ea707376
...
Success!

Steps to reproduce it

The update has a ton of packages, very few of which would actually need to be overridden since I don't have all of them installed.

Would you like to work on the issue?

No

jlebon commented 2 years ago

Likely the daemon crashed. You can check the journal or coredumps. But yeah, the way overrides from Bodhi and Koji work is kinda simplistic right now and in this case would download much much more than necessary.