Bug 886820

Summary: Inventory is missing information about graphical adapter
Product: [Retired] Beaker Reporter: Marian Ganisin <mganisin>
Component: inventoryAssignee: beaker-dev-list
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.10CC: asaha, bpeck, dcallagh, mishin, qwan, rglasz, rmancy
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 887746 888048 (view as bug list) Environment:
Last Closed: 2012-12-13 15:04:03 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:
Bug Depends On:    
Bug Blocks: 887746    

Description Marian Ganisin 2012-12-13 09:13:23 UTC
Description of problem:

For GUI testing we need machines with graphical adapter included. I didn't find any value based on which I could distinguish if machine has a graphical card or not (does not matter which model).
  
Actual results:

No chance to find machine with graphical adapter (or better to say, I didn't find any method)

Expected results:

Something like VIDEO=1|0

Comment 1 Bill Peck 2012-12-13 13:56:00 UTC
Hi Marian,

I believe the following will work for you..

bkr list-systems --xml-filter '<device type="VIDEO"/>'


To do the negative you need to be careful though, since machines that haven't been inventoried will show up as well.  So I did a query where I added device type NETWORK.

bkr list-systems --xml-filter '<device op="!=" type="VIDEO"/><device type="NETWORK"/>'

Comment 2 Marian Ganisin 2012-12-13 15:04:03 UTC
(In reply to comment #1)
> Hi Marian,
> 
> I believe the following will work for you..
> 
> bkr list-systems --xml-filter '<device type="VIDEO"/>'
> 
> 
> To do the negative you need to be careful though, since machines that
> haven't been inventoried will show up as well.  So I did a query where I
> added device type NETWORK.
> 
> bkr list-systems --xml-filter '<device op="!=" type="VIDEO"/><device
> type="NETWORK"/>'

Oh! device type. Unfortunately I didn't notice this option. Thank you very much for tip. This absolutely disproves this bug report. :)

I am going to use it right now! ...and closing this as a NOTABUG

Just a note to quite fine complexity of negative filter. It would be really nice to have such tips documented anywhere. Is it part of beaker documentation?

Comment 3 Dan Callaghan 2012-12-17 22:22:37 UTC
(In reply to comment #1)
> To do the negative you need to be careful though, since machines that
> haven't been inventoried will show up as well.  So I did a query where I
> added device type NETWORK.
> 
> bkr list-systems --xml-filter '<device op="!=" type="VIDEO"/><device
> type="NETWORK"/>'

I think this is a bug. Cloned as bug 888048.