Bug 1298055
Summary: | [RFE] ability to set a job or recipe's whiteboard from the CLI | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Naoya Horiguchi <naoya.horiguchi> |
Component: | general | Assignee: | Dan Callaghan <dcallagh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | dcallagh, huiwang, junichi.nomura, mjia, rjoost |
Target Milestone: | 23.3 | Keywords: | FutureFeature, Patch |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-07 06:44:45 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
Naoya Horiguchi
2016-01-13 05:35:31 UTC
As of Beaker 23, we have GET /jobs/(id) PATCH /jobs/(id) GET /recipes/(id) PATCH /recipes/(id) which produce/consume JSON with a key of 'whiteboard'. However there's no option in bkr job-modify for whiteboard yet. It should be easy enough to add a new option: bkr job-modify --whiteboard "new value", to update it. I don't think we would add a --get-whiteboard option to bkr job-modify though, since it doesn't fit with the rest of the options (nor with the purpose of that command). The only way to get the whiteboard from the CLI is to use bkr job-results and then parse the XML, for example: bkr job-results J:123 | xmlstarlet sel -t -v 'job/whiteboard' (In reply to Naoya Horiguchi from comment #0) > $ bkr job-modify --set-whiteboard "$w [Failed but OK]" R:1234 BTW you could also consider using the waiving and commenting functionality, which has been greatly improved in Beaker 23, for this purpose instead. Waiving and commenting are available in the web UI and with new APIs. For the CLI we have bug 853350. (In reply to Dan Callaghan from comment #1) > As of Beaker 23, we have > > GET /jobs/(id) > PATCH /jobs/(id) > GET /recipes/(id) > PATCH /recipes/(id) > > which produce/consume JSON with a key of 'whiteboard'. However there's no > option in bkr job-modify for whiteboard yet. It should be easy enough to add > a new option: bkr job-modify --whiteboard "new value", to update it. Great to hear that, I'll wait for the new option to be available. Naoya Converting this RFE to be just about setting the whiteboard with bkr job-modify. I assume that getting the whiteboard from bkr job-results is sufficient -- or if it's not, we can come up with something better, but it wouldn't be in the bkr job-modify command. This bug fix is included in beaker-client-23.3-0.git.18.3350a63 which is currently available for download here: https://beaker-project.org/nightlies/release-23/ Beaker 23.3 has been released. |