Bug 1574530 - Element <flag/> silently ignored in machine search
Summary: Element <flag/> silently ignored in machine search
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-03 13:41 UTC by Vilém Maršík
Modified: 2020-10-21 14:20 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-21 14:15:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Vilém Maršík 2018-05-03 13:41:14 UTC
Description of problem:
"bkr system-list --xml-filter .." not working with <flag/>, but not writing an error either

Version-Release number of selected component (if applicable):
client version 24.3
server version 25.2

How reproducible:
100%

Steps to Reproduce / Actual results:
<flag/> looks to be silently ignored in the filter:
$ bkr system-list | wc -l
6790
$ bkr system-list  --xml-filter '<cpureq><flag value="rdrand" op="=="/></cpureq>'| wc -l
6790
$ bkr system-list  --xml-filter '<cpureq><flag value="rdrand" op="="/></cpureq>'| wc -l
6790
$ bkr system-list  --xml-filter '<cpureq><flag>rdrand</flag></cpureq>'| wc -l
6790

OTOH, filtering by CPU flags looks possible with key_value/CPUFLAGS:
$ bkr system-list  --xml-filter '<key_value key="CPUFLAGS" op="=" value="rdrand"/>' | wc -l
1816

Expected results:
Values filtered, or error displayed for incorrect XML syntax.


Additional info:
1. XML elements according to https://beaker-project.org/docs/_downloads/beaker-job.rng . Do we have already have a better documentation?
2. it is confusing that the "--xml-filter" only accepts inline XML and no XML files - without writing any complaint again


Note You need to log in before you can comment on or make changes to this bug.