Bug 1174615
Summary: | [CLI] bkr job-cancel will can cancel a Task if I give a invalid task number | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | wangdong <dowang> |
Component: | command line | Assignee: | wangdong <dowang> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | bmcivor, dcallagh, ebaak, huiwang, mjia, rjoost |
Target Milestone: | 24.0 | Keywords: | Patch, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-21 18:48:21 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
wangdong
2014-12-16 06:16:09 UTC
Dear Wang Dong, I've tried to reproduce this problem today, but get: $ bkr job-cancel T:283829393 XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:Invalid T 283829393 where T:283829393 is a task which doesn't exist. Do you still have this problem? Dear Roman After my reproduce it again. Run command: [dowang@dhcp-136-186 ~]$ bkr job-cancel T:99999q Cancelled T:99999q Capture in server-debug.log: _______________________________________________ Oct 13 05:56:44 beaker-devel.app.eng.bos.redhat.com beaker-server[11324]: [error] /usr/lib64/python2.6/site-packages/sqlalchemy/engine/default.py:324: Warning: Truncated incorrect DOUBLE value: '99999q' Oct 13 05:56:44 beaker-devel.app.eng.bos.redhat.com beaker-server[11324]: [error] cursor.execute(statement, parameters) Oct 13 05:56:44 beaker-devel.app.eng.bos.redhat.com beaker-server[11324]: bkr.server.xmlrpccontroller DEBUG Time: 0:00:00.030048 taskactions.stop ('T:99999q', 'cancel', None) _______________________________________________ In above test Beaker throw a error can't handle DOUBLE value But in below test I found make job-cancel can't handle Task ID contains letter [dowang@dhcp-136-186 ~]$ bkr job-cancel T:139203 Cancelled T:139203 [dowang@dhcp-136-186 ~]$ bkr job-cancel T:139206 XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:Invalid T 139206 [dowang@dhcp-136-186 ~]$ bkr job-cancel T:139203w Cancelled T:139203w [dowang@dhcp-136-186 ~]$ bkr job-cancel T:w139203 XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:Invalid T w139203 [dowang@dhcp-136-186 ~]$ bkr job-cancel T:1w39203 Cancelled T:1w39203 I will try to hanle this bug. I managed to reproduce this bug. You may have also not noticed that upon completing the steps described for example $ bkr job-cancel T:99999q Cancelled T:99999q if you run the exact command again, and the T has been cancelled (and is displaying in the webUI as cancelled) you get $ bkr job-cancel T:99999q Cancelled T:99999q Surely it should report that the task no longer exists. On Gerrit: https://gerrit.beaker-project.org/#/c/5322/ on gerrit: https://gerrit.beaker-project.org/#/c/5563/ Verified this issue. The result is PASS. Version: Beaker 24.0.git.241.4eb2414 details: $ bkr job-cancel T:9q9999q XML-RPC fault: <class 'bkr.common.bexceptions.BX'>:Invalid T 9q9999q Beaker 24.0 has been released. |