Bug 784026

Summary: [RFE] add <pci_id> querying on hostRequires
Product: [Retired] Beaker Reporter: Bill Peck <bpeck>
Component: schedulerAssignee: Bill Peck <bpeck>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.8CC: bpeck, dcallagh, mcepl, mcsontos, rmancy, stl, tpelka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-25 00:18:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Bill Peck 2012-01-23 15:45:47 UTC
Description of problem:

Expand <hostRequires> to add support for <pci_id/> queries.

Example:

<hostRequires>
 <or>
  <pci_id type="VIDEO" vendor_id="8086"/>
  <pci_id type="VIDEO" vendor_id="1002"/>
 </or>
</hostRequires>

Full pci_id search fields:

<pci_id type="" bus="" driver="" vendor_id="" device_id="" subsys_vendor_id="" subsys_device_id=""/>

Additional info for background:

<mcepl> I have a question ... is it possible in beaker Job XML somehow limit tests only for machines with some VIDEO devices (particularly cards from nvidia, intel, or AMD?)
<bpeck> if you know the pci-ids
<mcepl> well, I have a list
 but long list
<bpeck> it may not scale
 we could try it on stage first..
<mcepl> very long list https://fedorahosted.org/bugzilla-triage-scripts/browser/chip-data/chipNames.json
<bpeck> ugh.. yeah.. that is long
 I don't think we are pushing the video driver information up to beaker 
<mcepl> I would love to have some like
 if PCI_Manfacturer in [8086, 1002, 106d]: 
  run test
 well, there is 
<bpeck> we could at least update inventory to push that info up
<mcepl> every machine has in the list of devices one called VIDEO
 so if I could say somehow (via Job XML), somehow via XML-RPC?, something
 that I would like to run tests on machines ... see condition above
<bpeck> ok..  
 so if we had
<mcepl> so if I have https://beaker.engineering.redhat.com/view/acer-aspirex3200-01.rhts.bos.redhat.com
<bpeck> <pci_id  type="video" vendor_id="8086"/>
 and we do support <or> </or>
<mcepl> that would be awesome
 exactly what i would love to get
<bpeck> I think we could get this into 0.8.2
 but that is still a few weeks out
 can you make do until then?
<mcepl> ok, that isn't that bad, I think
 I will ask my supervisors
<bpeck> ok..  I'll work on getting that implemented
 in the mean time, could you do a query and get a list of machines?
<mcepl> I don't know how ... I have to amdit I am kind of new in whole QA universe (formerly I was working on fedora site of the world)
 is there some documentation for it?
 yeah, just to fnish what I was saying:
 on the URL (tab Devices), I have a last line
 C77 [GeForce 8200]     VIDEO         pci     Unknown      10de        084b           1025         0157
 which means that I want this card (vendor_id in [8086, 1002, 10de] is the correct condition)
<bpeck> damn.. I just checked and we don't make TYPE searchable on the webUI either
 :-(
<mcepl> that's the problem I have
 I was working on this for quite some time and I thought I am stupid
<bpeck> nope
 I have read-only access to the DB, I can pull the info you need out
<mcepl> well, THAT doesn't scale, I am afraid
<bpeck> agreed.  but until the feature gets in.   we only need to hobble along for a couple weeks
<mcepl> or at least if I could pull the list somehow via RPC-XML and then I could if <hostname name="something>, but I don't like it either much
 we are still developing those tests, so we may have couple of weeks to wait
 (if it is just couple of weeks not much more)
 (how many is your unofficial estimate?)
<bpeck> do you have bkr command line installed?
 bkr system-details compaq-p0680h-01.lab.bos.redhat.com
<mcepl> yes
<bpeck> that gives you an rdf dump
<mcepl> yes, I have that
 how would I get a list of all machines?
<bpeck>  bkr list-systems
 please cache that info.. so you don't have to keep running it
<mcepl> sure, that would be just one time (or I don't weekly, monthly?) refresh information
<bpeck> sure
<mcepl> OK, thanks for your time, and I will come back with more questoins when i have them.
 thank you
<bpeck> np
<mcepl> ping ... so yes we would be very very interested in <pci_id  type="video" vendor_id="8086"/> element. a) when we could expect it to happen?, b) is there a ticket I could follow?

Comment 1 Dan Callaghan 2012-01-25 00:18:06 UTC

*** This bug has been marked as a duplicate of bug 731615 ***

Comment 2 Bill Peck 2012-04-27 18:31:47 UTC
*** Bug 683146 has been marked as a duplicate of this bug. ***