Bug 886820 - Inventory is missing information about graphical adapter
Summary: Inventory is missing information about graphical adapter
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Beaker
Classification: Retired
Component: inventory
Version: 0.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 887746
TreeView+ depends on / blocked
 
Reported: 2012-12-13 09:13 UTC by Marian Ganisin
Modified: 2018-02-06 00:41 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
: 887746 888048 (view as bug list)
Environment:
Last Closed: 2012-12-13 15:04:03 UTC
Embargoed:


Attachments (Terms of Use)

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.


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