Univention Bugzilla – Bug 44685
appcenter/docker/progress: primaryGroup: cn=Computers,cn=groups
Last modified: 2018-08-01 12:14:50 CEST
Version: 4.1-4 errata420 (Vahr) Die Ausführung des Kommandos appcenter/docker/progress ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 281, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/mixins.py", line 149, in progress ret = progress_obj.poll() File "%PY2.7%/univention/management/console/modules/decorators.py", line 309, in _thread result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 371, in invoke_docker result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 196, in call return obj.call_with_namespace(namespace) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 202, in call_with_namespace result = self.main(namespace) File "%PY2.7%/univention/appcenter/actions/install.py", line 67, in main return self.do_it(args) File "%PY2.7%/univention/appcenter/actions/install_base.py", line 109, in do_it self._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 65, in _do_it ret = super(Install, self)._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/install.py", line 84, in _do_it if self._install_app(app, args): File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 57, in _install_app hostdn, password = self._register_host(app, args) File "%PY2.7%/univention/appcenter/actions/register.py", line 284, in _register_host obj = create_object_if_not_exists('computers/%s' % app.docker_server_role, lo, pos, name=hostname, description=description, domain=domain, password=password, objectFlag='docker', policies=policies) File "%PY2.7%/univention/appcenter/udm.py", line 102, in create_object_if_not_exists obj.create() File "%PY2.7%/univention/admin/handlers/__init__.py", line 306, in create return self._create() File "%PY2.7%/univention/admin/handlers/__init__.py", line 724, in _create al = self._ldap_addlist() File "%PY2.7%/univention/admin/handlers/computers/memberserver.py", line 481, in _ldap_addlist gidNum = self.get_gid_for_primary_group() File "%PY2.7%/univention/admin/handlers/__init__.py", line 483, in get_gid_for_primary_group raise univention.admin.uexceptions.primaryGroup(self['primaryGroup']) primaryGroup: cn=Computers,cn=groups,dc=ttd,dc=intranet
Please verify that this is easily reproducible by deleting cn=Computers,cn=groups. If so, change bug to Component: UDM. This should not be possible, the domain seems to be broken.
This is reproducible with 4.1-4 errata439: Deleted the group right before initiating install in the Appcenter module. Die Ausführung des Kommandos appcenter/docker/progress ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 281, in execute function(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/mixins.py", line 149, in progress ret = progress_obj.poll() File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 309, in _thread result = _multi_response(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 371, in invoke_docker result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py", line 196, in call return obj.call_with_namespace(namespace) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py", line 202, in call_with_namespace result = self.main(namespace) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 67, in main return self.do_it(args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install_base.py", line 109, in do_it self._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 65, in _do_it ret = super(Install, self)._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 84, in _do_it if self._install_app(app, args): File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 57, in _install_app hostdn, password = self._register_host(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/register.py", line 284, in _register_host obj = create_object_if_not_exists('computers/%s' % app.docker_server_role, lo, pos, name=hostname, description=description, domain=domain, password=password, objectFlag='docker', policies=policies) File "/usr/lib/pymodules/python2.7/univention/appcenter/udm.py", line 102, in create_object_if_not_exists obj.create() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 306, in create return self._create() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 724, in _create al = self._ldap_addlist() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/computers/memberserver.py", line 481, in _ldap_addlist gidNum = self.get_gid_for_primary_group() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 483, in get_gid_for_primary_group raise univention.admin.uexceptions.primaryGroup(self['primaryGroup']) primaryGroup: cn=Computers,cn=groups,dc=univention,dc=intranet
Reported again: Version: 4.2-2 errata231 (Lesum) Remark: Diese Fehlermeldung ist bei der installation von nextcloud aufgetreten. Was muss ich tun damit ich nextcloud installieren kann??
Move to 4.3-0-errata. If a UCS 4.2 backport is needed, please clone this issue.
Reported again: Version: 4.2-3 errata312 (Lesum) Remark: Error in installing nextcould on UCS
Fixed in univention-directory-manager-modules 13.0.21-22A~4.3.0.201805181204 Trying to delete a group that is mentioned here: univention-ldapsearch objectClass=univentionDefault is prevented by raising univention.admin.uexceptions.primaryGroupUsed
The build of Package: univention-directory-manager-modules Version: 13.0.21-22A~4.3.0.201805181204 failed. There are fuzzy entries in ./modules/univention/admin/handlers/settings/de.po It think the searchResult line is not used in group.py --- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/groups/group.py +++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/groups/group.py @@ -697,7 +697,6 @@ class object(univention.admin.handlers.simpleLdap): self.gidNum = self.oldattr['gidNumber'][0] if 'samba' in self.options: self.groupSid = self.oldattr['sambaSID'][0] - searchResult = self.lo.search(base=self.position.getDomain(), filter=filter_format('(&(objectClass=person)(gidNumber=%s))', [self.gidNum]), scope='domain') # is this group in mentioned in settings/default? try: dn, attrs = self.lo.search(filter='objectClass=univentionDefault', base=self.position.getDomain(), scope='domain', unique=True, required=True)[0]
Removed fuzzy in univention-directory-manager-modules 13.0.21-23A~4.3.0.201805241740 searchResult is used some lines later. I changed it now to improve readability.
Before patch: Groups listed in cn=default,cn=univention,ldap/base could be deleted if they did not contain members. After patch: Groups listed in cn=default,cn=univention,ldap/base can not be deleted. OK changes -> verified
<http://errata.software-univention.de/ucs/4.3/88.html>
External feedback: UCS Version: 4.2-2 errata52 (Lesum) Die Ausführung des Kommandos appcenter/docker/progress ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 249, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/mixins.py", line 149, in progress ret = progress_obj.poll() File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 309, in _thread result = _multi_response(self, request) File "/usr/ ib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 417, in invoke_docker result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py", line 239, in call return obj.call_with_namespace(namespace) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py", line 245, in call_with_namespace result = self.main(namespace) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 70, in main return self.do_it(args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install_base.py", line 126, in do_it self._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 65, in _do_it ret = super(Install, self)._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 87, in _do_it if self._install_app(app, args): File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 57, in _install_app hostdn, password = self._register_host(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/register.py", line 285, in _register_host obj = create_object_if_not_exists('computers/%s' % app.docker_server_role, lo, pos, name=hostname, description=description, domain=domain, password=password, objectFlag='docker', policies=policies) File "/usr/lib/pymodules/python2.7/univention/appcenter/udm.py", line 97, in create_object_if_not_exists obj.create() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 324, in create dn = self._create(response=response, serverctrls=serverctrls) File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 771, in _create al = self._ldap_addlist() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/computers/memberserver.py", line 481, in _ldap_addlist gidNum = self.get_gid_for_primary_group() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 537, in get_gid_for_primary_group raise univention.admin.uexceptions.primaryGroup(self['primaryGroup']) primaryGroup: cn=Computers,cn=groups,dc=***