Bug 51829 - KeyError: 'pTRRecord' in automatic app test 66_udm-computers.58_removal_of_leftover_ptr_record_with_multiple_ip_addresses
KeyError: 'pTRRecord' in automatic app test 66_udm-computers.58_removal_of_le...
Status: RESOLVED DUPLICATE of bug 44710
Product: UCS
Classification: Unclassified
Component: UDM - CLI
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-08-18 08:54 CEST by Nico Gulden
Modified: 2020-08-18 09:16 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Gulden univentionstaff 2020-08-18 08:54:02 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'
Comment 1 Erik Damrose univentionstaff 2020-08-18 09:12:14 CEST
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.
Comment 2 Florian Best univentionstaff 2020-08-18 09:16:58 CEST
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 ***