[Pkg-linaro-lava-devel] Bug#864418: lava-tool: Attempting to cancel invalid job produces Python traceback

Mark Brown broonie at debian.org
Thu Jun 8 11:00:17 UTC 2017

Package: lava-tool
Version: 0.21-1
Severity: normal

Attempting to cancel a non-existant job produces a Python traceback:

Traceback (most recent call last):
  File "/usr/bin/lava-tool", line 11, in <module>
    load_entry_point('lava-tool==0.21', 'console_scripts', 'lava-tool')()
  File "/usr/lib/python2.7/dist-packages/lava_tool/dispatcher.py", line 49, in main
  File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 150, in run
    raise SystemExit(cls().dispatch(args))
  File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 140, in dispatch
    return command.invoke()
  File "/usr/lib/python2.7/dist-packages/lava_scheduler_tool/commands.py", line 202, in invoke
  File "/usr/lib/python2.7/xmlrpclib.py", line 1243, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1602, in __request
  File "/usr/lib/python2.7/dist-packages/lava_tool/authtoken.py", line 349, in request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1493, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 800, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault -32603: 'Internal Server Error (contact server administrator for details): No TestJob matches the given query.'>

rather than simply displaying an error message indicating that the job
doesn't exist.

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lava-tool depends on:
ii  python             2.7.13-2
ii  python-jinja2      2.8-1
ii  python-requests    2.12.4-1
ii  python-setuptools  33.1.1-1
ii  python-xdg         0.25-4
ii  python-yaml        3.12-1
ii  python-zmq         16.0.2-2
ii  python2.7          2.7.13-2

Versions of packages lava-tool recommends:
ii  ca-certificates  20161130+nmu1

lava-tool suggests no packages.

-- no debconf information

More information about the Pkg-linaro-lava-devel mailing list