Univention Bugzilla – Bug 31796
Check for free space
Last modified: 2019-12-11 16:49:34 CET
In a test environment someone installed an app but he had not enough free space. Maybe we could check and abort in univention-lib or we could give the minimum free space in the ini file.
Still holds for Docker Apps. In fact, Docker Apps use more disk space. (Although disk space should have increased since 2013)
I added a disk space check. For some reason I had to duplicate some of the code into files under /umc. I don't know why it has to be this way, but I based my check on the memory check that was already there. ecae06650f Bug #31796: yaml 9062b424f4 Bug #31796: translation b13f9df871 Bug #31796: changelog e4926f34cc Bug #31796: check for enough free disk space before app installation Successful build Package: univention-appcenter Version: 8.0.11-89A~4.4.0.201911251117 Branch: ucs_4.4-0 Scope: errata4.4-2
Seems that this breaks the installation of a school slave (https://soft-test-uvmm.knut.univention.de:6080/vnc_auto.html?port=6080&path=?token=7b3d6fbe-5a94-449e-9b7f-6d858d77469f&title=build_slave1-install-test-school-4.4-2%40soft-test01.knut.univention.de) During the join of the slave i get Going to install UCS@school (4.4 v4) Free disk space could not be determined (shall_have_enough_free_disk_space) The application requires %(minimum)d MB of free disk space but only %(current)d MB are available. Unable to install ucsschool. Aborting ... In a ucs@school domain, a join hook installs the school app on every system during the join.
I repaired it, there was a problem if the directory /var/lib/docker does not exist. Successful build Package: univention-appcenter Version: 8.0.11-90A~4.4.0.201911261323 Branch: ucs_4.4-0 Scope: errata4.4-2
I have reverted the changes for now. univention-appcenter (8.0.11-93) should be the same as univention-appcenter (8.0.11-88)
I reapplied the commits and implemented your QA feedback in branch: jahlers/31796-free-disk-space
Merged and built. Successful build Package: univention-appcenter Version: 8.0.11-96A~4.4.0.201912091101 Branch: ucs_4.4-0 Scope: errata4.4-3
Merge OK. YAML OK.
<http://errata.software-univention.de/ucs/4.4/392.html>