Created attachment 416222 [details] bkr-submit.xml Description of problem: $ bkr job-cancel 924 Exception: exceptions.ValueError:need more than 1 value to unpack Version-Release number of selected component (if applicable): beaker-client.noarch 0.5.38-1.el5 installed How reproducible: Two out of two attempts, on two unrelated hosts. Steps to Reproduce: 1. bkr job-submit see-attachment.xml 2. wait for job to start running (not sure if this is necessary) 3. bkr job-cancel 924 Actual results: Exception: exceptions.ValueError:need more than 1 value to unpack Expected results: (some sort of success) Additional info: $ cat ~/.beaker_client/config HUB_URL = "https://beaker.engineering.redhat.com" AUTH_METHOD = "krbv" KRB_REALM = "REDHAT.COM" Also tried with --msg="message". No change. Cancelling from the web GUI[1] worked fine. Browser read "Successfully cancelled job 924" in an orange bar at top, and I received email within 2 seconds. [1] https://beaker.engineering.redhat.com/jobs/cancel?id=924 Original XML attached. As it says (I hope) in the description, please treat it with suspicion. There may be something incomplete or missing in this XML.
Comment on attachment 416222 [details] bkr-submit.xml Eek. Changed "Description" field to just the filename. I misunderstood that field. Again, please treat this XML with suspicion. It's something created by me, without a full understanding of beaker requirements.
Job should be specified in J:NNN form. bkr job-cancel can also cancel particular RecipeSets (RS:NNN) and recipes (R:NNN) However it looks sensible making J: the default... Bill?
(In reply to comment #2) > Job should be specified in J:NNN form. Ah. That wasn't clear from the help message. Whether or not J:nnn is made the default, would it make sense to fix the error message to something more user-friendly? bkr: invalid taskspec '924'; for help, type bkr job-cancel --help (updating the job-cancel help message as well)
User Guide also states it needs to be J:NNN, but yeah, kind of seems redundant.
We can make the error message here a bit more helpful.
Patch pushed to Gerrit for review. http://gerrit.beaker-project.org/919
Deferring to 0.9.1
Patch updated on Gerrit.
[raymond@rmancy sub]$ bkr job-cancel 16500 Usage: bkr job-cancel [options] <taskspec>... bkr: error: Invalid taskspec '16500': see "Specifying tasks" in bkr(1)
Beaker 0.9.1 has been released.
*** Bug 643882 has been marked as a duplicate of this bug. ***
*** Bug 867561 has been marked as a duplicate of this bug. ***