Univention Bugzilla – Bug 53342
Migrate univention-ssh to Python 3
Last modified: 2021-10-13 16:18:31 CEST
univention-ssh should be migrated to be Python 3 compatible. base/univention-ssh/univention-ssh.in
test/ucs-test/tests/01_base/40univention-ssh_timeout is failing for UCS-5.0-0 for all roles <https://jenkins.knut.univention.de:8181/job/UCS-5.0/job/UCS-5.0-0/job/AutotestJoin/591/>
Also the upgrade tests: <https://jenkins.knut.univention.de:8181/job/UCS-5.0/job/UCS-5.0-0/job/AutotestUpgrade/272/>
https://docs.python.org/3/library/os.html#os.waitpid says: Changed in version 3.5: If the system call is interrupted and the signal handler does not raise an exception, the function now retries the system call instead of raising an InterruptedError exception (see PEP 475 for the rationale). So, for equal behavior we need to `raise TimeoutError` and catch this as well (for all the signals).
File univention-ssh migrated to Python 3 Fixed Timeout parameter
Timeout paramenter should be changed due Python 3.5: If the system call is interrupted and the signal handler does not raise an exception, the function now retries the system call instead of raising an InterruptedError exception
OK: python3 migration OK: timeout OK: Jenkins-Tests OK: YAML Advisory univention-ssh.yaml 8b11f6a5be05 | Bug #53342: update YAML for univention-ssh 943568d45247 | Bug #53342: update YAML for univention-ssh 4e9de063b114 | Bug #53342: update YAML for univention-ssh cda6f8211ef8 | Bug #53342: migrated univention-ssh.in to Python 3 univention-ssh (11.0.0-3) 054f97c470fc | Bug #53342: migrated univention-ssh.in to Python 3 univention-ssh (11.0.0-2) cda6f8211ef8 | Bug #53342: migrated univention-ssh.in to Python 3
<https://errata.software-univention.de/#/?erratum=5.0x124>