[Bug 1786484] Re: free space need for /usr could be negative which is wrong
Launchpad Bug Tracker
1786484 at bugs.launchpad.net
Tue Jan 15 23:48:41 UTC 2019
This bug was fixed in the package ubuntu-release-upgrader - 1:18.10.11.3
---------------
ubuntu-release-upgrader (1:18.10.11.3) cosmic; urgency=medium
* DistUpgrade/DistUpgradeCache.py: When calculating free space needed for
mount points don't use a negative number as the buffer. (LP: #1786484)
* fix more typos re RELEASE_UPRADER_ALLOW_THIRD_PARTY.
* DistUpgrade/DistUpgradeController.py: When rewriting sources.list entries
check to see if the source provides packages for the release to which the
upgrade is occurring. If it doesn't the entry is disabled thereby
improving upgrades with PPAs. (LP: #1807043)
* do-release-upgrade: add a parameter to allow third party mirrors and
repositories, additionally pass along the environmental variable
RELEASE_UPGRADER_ALLOW_THIRD_PARTY via pkexec and sudo. (LP: #1807032)
* DistUpgrade/DistUpgradeCache.py: improve messaging regarding failures to
calculate the upgrade and suggest using ppa-purge if PPAs are an issue.
* DistUpgrade/DistUpgradeCache.py: in the event there is a failure to
calculate the upgrade provide information about the log files in
/var/log/dist-upgrade. (LP: #1771387)
* debian/source_ubuntu-release-upgrader.py: Include xorg_fixup.log if it
exists.
* DistUpgrade/xorg_fix_proprietary.py: modify how the system is checked to
see if nvidia is being used, drop fglrx check since it has been
deprecated. (LP: #1773637)
-- Brian Murray <brian at ubuntu.com> Thu, 20 Dec 2018 12:31:37 -0800
** Changed in: ubuntu-release-upgrader (Ubuntu Cosmic)
Status: Fix Committed => 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/1786484
Title:
free space need for /usr could be negative which is wrong
Status in ubuntu-release-upgrader package in Ubuntu:
Fix Released
Status in ubuntu-release-upgrader source package in Cosmic:
Fix Released
Bug description:
[Impact]
The checkFreeSpace function doesn't ensure that the space needed is a positive number thereby causing a situation where a partition, like /usr, doesn't have enough free space which then results in a failure during upgrade.
[Test Case]
It's not clear to me how to recreate this scenario, however I believe this falls into the "obviously safe" patch category. The specific change to checkFreeSpace, which is described as "this checks if we have enough free space", from DistUpgradeCache.py follows:
1200 # we are ensuring we have more than enough free space not less
1201 if size < 0:
1202 continue
This stops the needed space from being a negative number.
[Regression Potential]
Other than a typo in the change there won't be any.
[Original Description]
In my case I ran out of diskspace in /usr which required a temporary 4 GB of more data during upgrade. Things just start to fail, and I can tell you - then you are screwed. I find this unacceptable for a wide-spread official LTS upgrader.
ProblemType: BugDistroRelease: Ubuntu 18.04
Package: ubuntu-release-upgrader-core 1:18.04.22
ProcVersionSignature: Ubuntu 4.15.0-30.32-generic 4.15.18
Uname: Linux 4.15.0-30-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: KDE
Date: Fri Aug 10 15:14:33 2018
InstallationDate: Installed on 2016-01-11 (941 days ago)
InstallationMedia: Kubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
PackageArchitecture: allSourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: Upgraded to bionic on 2018-08-09 (0 days ago)
mtime.conffile..etc.update-manager.release-upgrades: 2018-08-06T15:08:30.181962
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1786484/+subscriptions
More information about the foundations-bugs
mailing list