Bug 36161 - modules/top/__init__.py: kill() takes exactly 1 argument (2 given)
modules/top/__init__.py: kill() takes exactly 1 argument (2 given)
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Process overview
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0
Assigned To: Dirk Wiesenthal
Drees Dormann
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-12 14:57 CEST by Stefan Gohmann
Modified: 2014-11-26 06:55 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2014-10-12 14:57:46 CEST
Execution of command 'top/kill' has failed:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py", line 177, in _decorated
    return function(self, request, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/top/__init__.py", line 111, in kill
    process.kill(15)
TypeError: kill() takes exactly 1 argument (2 given)

Found by /usr/share/ucs-test/60_umc-system/22_umc-service-proc-killing
Comment 1 Dirk Wiesenthal univentionstaff 2014-10-24 16:21:16 CEST
psutil has seen some API changes in UCS 4.0 (0.7.x instead of 0.1.x).

Module fixed in
  univention-management-console-module-top 4.1.0-3.33.201410241612

No changelog required.
Comment 2 Drees Dormann univentionstaff 2014-10-31 13:56:46 CET
commands are working,
test /usr/share/ucs-test/60_umc-system/22_umc-service-proc-killing
runs fine
Comment 3 Stefan Gohmann univentionstaff 2014-11-26 06:55:12 CET
UCS 4.0-0 has been released:
 http://docs.univention.de/release-notes-4.0-0-en.html
 http://docs.univention.de/release-notes-4.0-0-de.html

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