Univention Bugzilla – Bug 49403
Traceback unix.py: AttributeError select.error.errno
Last modified: 2019-05-08 13:26:24 CEST
Created attachment 9999 [details] Untested patch ==> virtual-machine-manager-daemon-errors.log <== Traceback (most recent call last): File "/usr/sbin/univention-virtual-machine-manager-daemon", line 310, in <module> unix(options) File "/usr/lib/pymodules/python2.7/univention/uvmm/unix.py", line 206, in unix if ex.errno == errno.EINTR: AttributeError: 'error' object has no attribute 'errno' src/univention/uvmm/unix.py: 205 »···»···except (select.error, socket.error) as ex: 206 »···»···»···if ex.errno == errno.EINTR: $ python -c '__import__("socket").error().errno' $ python -c '__import__("select").error().errno' Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'error' object has no attribute 'errno' <https://docs.python.org/2/library/select.html#select.error>: > The exception raised when an error occurs. The accompanying value is a pair containing the numeric error code from errno and the corresponding string, as would be printed by the C function perror(). python -c 'import select, errno try: select.select([255], [], [], 1.0) except select.error as ex: errno_, errstr = ex.args print(errno_, errno.errorcode[errno_], errstr)'
Found while looking at Bug #48536 The bug is harmless as UVMMd is automatically restarted, but let's fix this simple issue now before it gets worse. QA: I have no reproducer, so code-review is okay by me. [4.4-0] 91e911fa63 Bug #49403 uvmm: Fix traceback in select.error handling .../univention-virtual-machine-manager-daemon/debian/changelog | 6 ++++++ .../src/univention/uvmm/unix.py | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) Package: univention-virtual-machine-manager-daemon Version: 8.0.1-7A~4.4.0.201905020948 Branch: ucs_4.4-0 Scope: errata4.4-0 [4.4-0] c3ddb73c18 Bug #49403: univention-virtual-machine-manager-daemon 8.0.1-7A~4.4.0.201905020948 .../staging/univention-virtual-machine-manager-daemon.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)
OK: code review OK: yaml Verified
<http://errata.software-univention.de/ucs/4.4/87.html>