Bug 51507 - 22_kdc_service diagnostic check fails in UCS 5
22_kdc_service diagnostic check fails in UCS 5
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - System diagnostic
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Julia Bremer
Florian Best
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-16 22:20 CEST by Florian Best
Modified: 2021-05-25 16:00 CEST (History)
1 user (show)

See Also:
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:
bremer: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2020-06-16 22:20:12 CEST
################# Start 22_kdc_service ################
## Check failed: 22_kdc_service - KDC Erreichbarkeit ##
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/diagnostic/__init__.py", line 280, in execute
    result = execute(umc_module, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/diagnostic/plugins/22_kdc_service.py", line 313, in run
    kdc_reachabe = [(probe_kdc(kdc, port, protocol, target_realm, user_name), (kdc, port, protocol)) for (kdc, port, protocol) in kdc_to_check]
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/diagnostic/plugins/22_kdc_service.py", line 251, in probe_kdc
    request = build_kerberos_request(target_realm, user_name)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/diagnostic/plugins/22_kdc_service.py", line 185, in build_kerberos_request
    req_body['cname'] = None
  File "/usr/lib/python2.7/dist-packages/pyasn1/type/univ.py", line 2073, in __setitem__
    raise KeyError(sys.exc_info()[1])
KeyError: PyAsn1Error('NamedTypes can cast only scalar values',)
Comment 1 Julia Bremer univentionstaff 2020-07-16 17:41:27 CEST
I updated the diagnostic module 22_kdc_service to work with pyasn1 >= 0.4 
in branch jbremer/bug51507_22_kdc_service_diagnostic.
Comment 2 Florian Best univentionstaff 2020-07-16 17:49:30 CEST
Thanks very much! I cherry-picked the commit into the branch feature/ucs5 (and reverted the ipaddress → ipaddr change).

Can you write a doc/changelog/changelog-5.0-0.xml entry and set this bug to resolved fixed?

Do you know if the fix works with Python 3?
Comment 3 Julia Bremer univentionstaff 2020-07-16 18:26:28 CEST
cf0ef32766 Bug #51507: changelog

Thanks for the fast merge :) 

The changes I made are python3 compatible.
Comment 4 Florian Best univentionstaff 2020-07-17 12:05:10 CEST
OK: Code review
OK: Jenkins Tests
OK: Changelog entry
Comment 5 Florian Best univentionstaff 2021-05-25 16:00:04 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".