Bug 1229937

Summary: bkr job-list --whiteboard <string> cancels other limiting options
Product: [Retired] Beaker Reporter: Jun'ichi NOMURA <junichi.nomura>
Component: command lineAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.18CC: aigao, dcallagh, dowang, ebaak, kueda, naoya.horiguchi, rjoost, tatsu-ab1, tnishimura, tonishim
Target Milestone: 21.1Keywords: NeedsTestCase, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-21 03:25:02 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 Jun'ichi NOMURA 2015-06-10 00:59:58 UTC
Description of problem:
  bkr job-list --whiteboard <string> cancels other limiting options

Version-Release number of selected component (if applicable):
  beaker-client-0.18.2-2.el6eng

How reproducible:
  Always

Steps to Reproduce:
  Use '--whiteboard <string>' option with other limiting option

Expected results:
  The search result should be logical AND of '--whiteboard <string>'
  and other limiting options.

Actual results:
  The search result is based on '--whiteboard <string>' limit.
  Other limiting options are ignored.

Additional information:

  If '--mine' and '--min-id' are specified, the result is logical AND of them.

    $ bkr job-list --mine --min-id 7500
    ["J:7592", "J:7591", "J:7530"]

  Among them, only J:7591 matches the conditions '--mine' AND '--min-id 7500' AND '--whiteboard 2.6.32-504'.

  However, if '--whiteboard' is added, '--mine' and '--min-id' are ignored
  and all jobs with '2.6.32-504' in whiteboard are listed.

    $ bkr job-list --mine --min-id 7500 --whiteboard '2.6.32-504'
    ["J:5697", "J:5795", "J:5817", "J:5850", "J:5851", "J:5853", "J:5854", "J:6015", "J:6048", "J:6093", "J:6097", "J:6682", "J:7017", "J:7046", "J:7047", "J:7048", "J:7049", "J:7050", "J:7101", "J:7102", "J:7103", "J:7104", "J:7105", "J:7106", "J:7107", "J:7108", "J:7109", "J:7110", "J:7121", "J:7122", "J:7123", "J:7124", "J:7125", "J:7591"]

    $ bkr job-list --whiteboard '2.6.32-504'
    ["J:5697", "J:5795", "J:5817", "J:5850", "J:5851", "J:5853", "J:5854", "J:6015", "J:6048", "J:6093", "J:6097", "J:6682", "J:7017", "J:7046", "J:7047", "J:7048", "J:7049", "J:7050", "J:7101", "J:7102", "J:7103", "J:7104", "J:7105", "J:7106", "J:7107", "J:7108", "J:7109", "J:7110", "J:7121", "J:7122", "J:7123", "J:7124", "J:7125", "J:7591"]

Comment 1 Tomoaki Nishimura 2015-06-10 15:34:11 UTC
This problem is reproduced on Beaker 20.1 with beaker-client-19.1-1.fc19.noarch.

  $ rpm -q beaker-client
  beaker-client-19.1-1.fc19.noarch
  $ bkr job-list --owner tonishim --min-id 979310
  ["J:979319", "J:979317"]
  $ bkr job-list --owner tonishim --min-id 979310 --whiteboard "test01"
  ["J:368205", "J:790497", "J:979317"]

Comment 2 Dan Callaghan 2015-08-26 07:11:19 UTC
http://gerrit.beaker-project.org/4367

Comment 6 Dan Callaghan 2015-10-21 03:25:02 UTC
Beaker 21.1 has been released.