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
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.
I have reverted the changes for now.
should be the same as
I reapplied the commits and implemented your QA feedback in branch:
Merged and built.