Univention Bugzilla – Bug 51829
KeyError: 'pTRRecord' in automatic app test 66_udm-computers.58_removal_of_leftover_ptr_record_with_multiple_ip_addresses
Last modified: 2020-08-18 09:16:58 CEST
In the automatic app tests for the BlueSpice app I found this traceback several times for the test setups "master - no samba", "master - s4". Other app tests during the last days did not show this traceback, though. I reminds me of #44710, but the traceback is different. [2020-08-17 17:41:25.353105] Cleanup after exception: <class 'univention.testing.udm.UCSTestUDM_ModifyUDMObjectFailed'> returncode=3 [2020-08-17 17:41:25.353193] stdout=Traceback (most recent call last): [2020-08-17 17:41:25.353218] File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 219, in doit [2020-08-17 17:41:25.353243] output = univention.admincli.admin.doit(arglist) [2020-08-17 17:41:25.353262] File "/usr/lib/python2.7/dist-packages/univention/admincli/admin.py", line 409, in doit [2020-08-17 17:41:25.353283] out = _doit(arglist) [2020-08-17 17:41:25.353301] File "/usr/lib/python2.7/dist-packages/univention/admincli/admin.py", line 908, in _doit [2020-08-17 17:41:25.353318] dn = object.modify() [2020-08-17 17:41:25.353336] File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 650, in modify [2020-08-17 17:41:25.353356] dn = self._modify(modify_childs, ignore_license=ignore_license, response=response) [2020-08-17 17:41:25.353377] File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 1331, in _modify [2020-08-17 17:41:25.353394] self._ldap_post_modify() [2020-08-17 17:41:25.353413] File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/computers/__base.py", line 207, in _ldap_post_modify [2020-08-17 17:41:25.353475] univention.admin.handlers.simpleComputer._ldap_post_modify(self) [2020-08-17 17:41:25.353498] File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 2722, in _ldap_post_modify [2020-08-17 17:41:25.353519] self.__remove_dns_reverse_object(self['name'], None, entry) [2020-08-17 17:41:25.353537] File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 2275, in __remove_dns_reverse_object [2020-08-17 17:41:25.353554] modify(rdn, zone) [2020-08-17 17:41:25.353578] File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 2248, in modify [2020-08-17 17:41:25.353595] if len(attributes['pTRRecord']) == 1: [2020-08-17 17:41:25.353614] KeyError: 'pTRRecord'
There is no issue here, its a false positive. ucs-test was published last week to the production mirror, which is used in the app tests. As the fix for bug #44710 is not yet published, the failing test is to be expected.
It happened in the AppCenter Tests which go against the unfixed / public software: https://jenkins.knut.univention.de:8181/job/UCS-4.4/job/Apps/job/bluespice/job/App%20Autotest%20Update%20MultiEnv/14/SambaVersion=no-samba,Systemrolle=master/testReport/66_udm-computers/58_removal_of_leftover_ptr_record_with_multiple_ip_addresses/master120/ That's the test case which has been added by Bug #44710. *** This bug has been marked as a duplicate of bug 44710 ***