Univention Bugzilla – Bug 35781
Central App Center administration
Last modified: 2015-01-19 09:38:17 CET
It should be possible to use one App Center UMC module to administrate the installed Apps in the domain. I think it should be possible to disable this feature via UCR and should should be enabled by default on all DC masters and DC backups. The following things should be possible with the central App Center module: - show installation status of an App (on which host) - installation/uninstallation/update of an App on the local host or on a remote host
Latest iteration (ready for QA): univention-management-console-module-appcenter 4.1.2-2.266.201409291728
I'm not sure if these changes are the reason for the traceback. Nevertheless, you are the person who is able to fix it: ------------------------------------------------------------------------------ Die Ausführung des Kommandos setup/apps/query ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py", line 218, in execute func( request ) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 309, in _response result = _multi_response(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 449, in _response return list(function(self, iterator, *nones)) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 275, in _fake_func yield function(self, *args) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/__init__.py", line 678, in apps_query return util.get_apps(True) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/util.py", line 696, in get_apps _apps = [iapp.to_dict(package_manager) for iapp in applications if iapp.get('withoutrepository')] File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 911, in to_dict domainwide_managed = self.domainwide_managed(hosts) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 901, in domainwide_managed hosts = get_all_hosts(ucr=ucr) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/util.py", line 108, in get_all_hosts lo = uldap.getMachineConnection(ldap_master=False) File "/usr/lib/pymodules/python2.7/univention/uldap.py", line 94, in getMachineConnection bindpw=open(secret_file).read() IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/etc/machine.secret' ------------------------------------------------------------------------------ I get this message in system setup appliance mode.
After the installation of an App on the local system, I will not asked for a restart of UMC. Thus new modules aren't available.
(In reply to Stefan Gohmann from comment #3) > After the installation of an App on the local system, I will not asked for a > restart of UMC. Thus new modules aren't available. Might be an error in reloadModules() of umc-frontend while the new design was applied. I tested it and it worked. I will set this to RESOLVED for now.
Move all unfinished MS1 and MS2 bugs to RC.
Did you try to install a packages with master packages on a slave with the UMC on the master? I tried it several times but I got always: --------------------------------------------------------------------------------- 30.10.14 02:41:45.706 MODULE ( PROCESS ) : Downloading "https://appcenter.software-univention.de/meta-inf/4.0/index .json.gz"... 30.10.14 02:41:45.808 MODULE ( PROCESS ) : 0 file(s) are new 30.10.14 02:41:45.827 MODULE ( PROCESS ) : Try to install (install-schema) zarafa on None. Force? True. Only master packages? True. Prevent installation on other systems? True. Only dry run? None. 30.10.14 02:41:45.827 MODULE ( PROCESS ) : The command has failed: Another package operation is in progress ---------------------------------------------------------------------------------
Fixed in univention-lib and umc-appcenter. Progress message is still a bit weird... "Output from slave: Output from master: Installing package" because of the double remote installation. But I do not want to add even more complexity by checking whether localhost is master (as opposed to "target host") and then install yet again differently. Maybe we remove the prefix "Output from %s: " completely?
(In reply to Dirk Wiesenthal from comment #7) > Maybe we remove the prefix "Output from %s: " completely? Yes, please.
As discussed, we need a UMC restart / reload after an app has been installed. Otherwise extended attributes are not shown.
Clearing the UDM frontend cache in univention-management-console-module-appcenter 4.1.15-7.292.201411061411
Nearly perfect, just one thing. See attached screenshots: zarafa-pre-relogin.png zarafa-post-relogin.png Before I logout / login the field "Zarafa role" is not a drop down.
Created attachment 6327 [details] zarafa-pre-relogin.png
Created attachment 6328 [details] zarafa-post-relogin.png
(In reply to Stefan Gohmann from comment #11) > Nearly perfect, just one thing. See attached screenshots: > zarafa-pre-relogin.png > zarafa-post-relogin.png > > Before I logout / login the field "Zarafa role" is not a drop down. Maybe a problem with syntaxes?
I am not able to reproduce this reliably. For now, I added a tools.askReload() after installation. Should be further investigated, though, as this may be a bug in UDM caching (frontend and/or backend).
(In reply to Dirk Wiesenthal from comment #15) > I am not able to reproduce this reliably. For now, I added a > tools.askReload() after installation. OK, it works now.
UCS 4.0-0 has been released: http://docs.univention.de/release-notes-4.0-0-en.html http://docs.univention.de/release-notes-4.0-0-de.html If this error occurs again, please use "Clone This Bug".