[Bug 1783597] Re: The disk-space-needed estimate doesn't account for the snaps

Launchpad Bug Tracker 1783597 at bugs.launchpad.net
Wed Sep 4 16:22:53 UTC 2019


This bug was fixed in the package ubuntu-release-upgrader - 1:19.10.11

---------------
ubuntu-release-upgrader (1:19.10.11) eoan; urgency=medium

  * DistUpgrade/DistUpgradeQuirks.py, DistUpgrade/DistUpgradeCache.py:
    Modify DistUpgradeQuirks to calculate extra space needed for snaps that
    need to be installed during upgrade (replacing old debs) and add that to
    estimates done in checkFreeSpace(). (LP: #1783597)
  * DistUpgrade/DistUpgradeQuirks.py: Make sure snaps like core18 are not
    refreshed/installed from the stable/ubuntu-VERSION branch but instead use
    stable on upgrades. (LP: #1841225)

 -- Ɓukasz 'sil2100' Zemczak <lukasz.zemczak at ubuntu.com>  Tue, 03 Sep
2019 15:58:38 +0200

** Changed in: ubuntu-release-upgrader (Ubuntu Eoan)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1783597

Title:
  The disk-space-needed estimate doesn't account for the snaps

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader source package in Disco:
  Triaged
Status in ubuntu-release-upgrader source package in Eoan:
  Fix Released

Bug description:
  [Impact]

  Since there have been reports that users might fail to boot to a
  working gdm in the case of a full disk, we need to make sure users
  upgrading from and older release to disco/eoan have enough space for
  the upgrade to succeed. Currently we are installing snaps to replace
  certain debs on the system (+ refreshing existing snaps to newer
  channels/branches). The additional size required for the snap
  replacements was not taken into consideration when performing the
  upgrade, which might lead to edge-cases of users not having enough
  space for the upgrade to succeed.

  [Test Case]

  TODO

  [Regression Potential]

  As with any change touching the upgrade code-path, this change also carries a risk and should be well tested before going forward. That being said, the fix has been specifically basically limited to DistUpgradeQuirks to make regressions less likely. Additionally, unit tests have been added for every modified code-path.
  If any regressions should be found, the most likely place for those would be in size estimation, causing users to get notified of lack of space when they shouldn't. Another possible location would be all the things regarding replacing the debs with snaps - so either failures in snap replacement installation or refreshing.

  
  [Original Description]

  Looking at the code change recently made to install snaps on upgrade,
  it seems like there was no change made to the disk-space-estimate
  code. We had some reports recently that bionic might fail to boot to a
  working gdm on full disk so that could potentially be an important
  issue for upgraders

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1783597/+subscriptions



More information about the foundations-bugs mailing list