Bug 34508

Summary: 66_udm-computers.02_all_roles_creation_with_all_attributes.test fails now and then
Product: UCS Test Reporter: Dirk Wiesenthal <wiesenthal>
Component: UDMAssignee: UMC maintainers <umc-maintainers>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 CC: gohmann
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: 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:

Description Dirk Wiesenthal univentionstaff 2014-04-08 23:21:18 CEST
With some KeyError: macm

Note that in the manager modules there is a "raise e" which should be changed to a "raise" in _ldap_post_create()

Here is what I got in the test logs:

raise UCSTestUDM_CreateUDMObjectFailed({'module': modulename, 'kwargs': kwargs, 'returncode': child.returncode, 'stdout': stdout, 'stderr': stderr})
univention.testing.udm.UCSTestUDM_CreateUDMObjectFailed: {'returncode': 3, 'stdout': 'Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 222, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 393, in doit
    out=_doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 804, in _doit
    dn=object.create()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 333, in create
    return self._create()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 766, in _create
    raise e
KeyError: 'macm'
', 'stderr': '', 'module': 'computers/ubuntu', 'kwargs': {'domain': 'qe0y2nzaxb.etof2m1mgl', 'shell': 'vyhlz7v4er', 'description': '0d4495euyo', 'unixhome': '/home/', 'inventoryNumber': 'b5jty6mbq3', 'ip': '10.20.30.2', 'primaryGroup': 'cn=v8b0zyv55q,cn=groups,dc=autotest121,dc=local', 'dnsEntryZoneReverse': 'zoneName=30.20.10.in-addr.arpa,dc=autotest121,dc=local', 'network': 'cn=yc80p28d4q,dc=autotest121,dc=local', 'mac': '01:23:45:67:89:ab', 'dhcpEntryZone': 'cn=ovto4whrhm,dc=autotest121,dc=local 10.20.30.2 01:23:45:67:89:ab', 'groups': ['cn=grs0j5062a,cn=groups,dc=autotest121,dc=local', 'cn=p4wnlwnhqn,cn=groups,dc=autotest121,dc=local'], 'sambaRID': '10939', 'operatingSystemVersion': '9t8nvwhpsz', 'dnsEntryZoneForward': 'zoneName=wqsfkaqlkd.m13s48fhil,dc=autotest121,dc=local', 'password': '6quv81jdaz', 'operatingSystem': 'fwiu03yc3k', 'name': 'itpmqul2cc'}}
Comment 1 Stefan Gohmann univentionstaff 2014-04-09 06:10:23 CEST
See r49160, Lukas fixed it already yesterday.

*** This bug has been marked as a duplicate of bug 33843 ***
Comment 2 Stefan Gohmann univentionstaff 2016-10-12 07:49:13 CEST
For this bug is no separate QA needed.