Univention Bugzilla – Bug 43661
New lib needs to support --dry-run
Last modified: 2018-03-14 14:37:49 CET
For Non-Docker Apps show Software changes list. For Docker Apps maybe verify the existence of the Docker Image? +++ This bug was initially created as a clone of Bug #43660 +++ We experienced issues with running apt-get in a subprocess. It seems apt-get dislikes that all File descriptors were closed. Also, the Manager allows dry-run. +++ This bug was initially created as a clone of Bug #40064 +++ Currently, the UMC App Center installs, updates, uninstalls non-docker Apps with the old Application class. It should instead use the new App class. Some work still has to go into these functions, but it would be far better to use them. No double bug fixing when a dysfunctional routine is implemented in both classes. Support of docker features like a preinst script without additional implementation effort. Startup speed increases as the App cache only needs to be loaded once. The following things do not work at the moment: Dry run - there is no package list to get before installing an app. Connection to other hosts is currently done via "ssh univention-app ...". This may be a problem for non 4.1 systems. univention-app installs directly via apt-get, not with the PackageManager class. This should not make a difference, yet it needs to be tested thoroughly.
This was fixed along with Bug#40064.
preup is executed in dry-run mode, is this OK? univention-app install --dry-run owncloud Going to install ownCloud (10.0.4-20171212) Password for Administrator: update LDAP schema... setting binddn and bindpwdfile E: object not found setting directory variables creating owncloud conf directory Base configuration for ownCloud Create owncloud/user/enabled Create owncloud/group/enabled Create owncloud/ldap/base Create owncloud/ldap/loginFilter Create owncloud/ldap/userFilter Create owncloud/ldap/groupFilter Create owncloud/ldap/internalNameAttribute Create owncloud/ldap/userUuid
Yes, this is okay. Kind of. Originally, preinst was meant to do custom checks whether or not the App could be installed. You can change / prepare the environment in it, though. We have to talk about preinst in general. Here, it is okay. Installing an App but aborting due to network issues also ran the preinst. (Without rolling back)
-> univention-app install --dry-run xrdp (1) The following packages would be INSTALLED/UPGRADED: * install-info * install-info (6.3.0.dfsg.1-1+b2 192.168.0.10, Univention Corporate Server:updates-test.software-univention.de * desktop-base * desktop-base (9.0.2+deb9u1 192.168.0.10 ... so every packages is listed twice, once should be enough (2) The following packages would be UPGRADED: * php-xml-parser * php5-common but the apt-get log in appcenter.log says 15094 packages 18-02-22 11:45:28 [ INFO]: Die folgenden Pakete werden ENTFERNT: 15094 packages 18-02-22 11:45:28 [ INFO]: php-xml-parser php5-common
Fixed in univention-appcenter 7.0.1-16A~4.3.0.201802221554
OK
UCS 4.3 has been released: https://docs.software-univention.de/release-notes-4.3-0-en.html https://docs.software-univention.de/release-notes-4.3-0-de.html If this error occurs again, please use "Clone This Bug".