Bug 1277340

Summary: bkr job-list --whiteboard should filter on whiteboard *substring* not exact match
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: command lineAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dcallagh, dowang, mjia, rjoost
Target Milestone: 21.2Keywords: NeedsTestCase, Patch, Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 03:53:11 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 Dan Callaghan 2015-11-03 05:46:46 UTC
Description of problem:
According to the man page for bkr job-list, the --whiteboard option should filter by substring. However in 21.1 it only filters on exact matches.

Version-Release number of selected component (if applicable):
21.1

How reproducible:
easily

Steps to Reproduce:
1. Use bkr job-list to find some jobs using a substring of the whiteboard, for example if there is a job "Provision xyz.example.com" run "bkr job-list --whiteboard Provision"

Actual results:
Nothing matches

Expected results:
Command should list jobs matched on substring of whiteboard

Additional info:
Regression in 21.1 due to bug 1229937.

Comment 2 Dan Callaghan 2015-11-03 06:09:00 UTC
The original version (before 21.1) also allowed SQL LIKE wildcards in the whiteboard substring. Probably this was just an implementation accident, it's not documented anywhere. But people might still be relying on it so we should preserve that too.

Comment 3 Dan Callaghan 2015-11-03 06:12:01 UTC
http://gerrit.beaker-project.org/4472

Comment 6 matt jia 2015-11-23 03:53:11 UTC
Beaker 21.2 has been released.