Bug 460997

Summary: HTS shouldn't report systems as PV if the "Model" or "Vendor" is unknown
Product: [Retired] Red Hat Hardware Certification Program Reporter: YangKun <ykun>
Component: Test Suite (harness)Assignee: YangKun <ykun>
Status: CLOSED ERRATA QA Contact: Lawrence Lim <llim>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: gnichols, rlandry, tools-bugs, tyan, xiqin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-27 22:58:24 UTC Type: ---
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: 310861    
Bug Blocks:    

Description YangKun 2008-09-03 08:26:25 UTC
Description of problem:

currently HTS will treat systems which "Model" or "Vendor" information is uncertain(can not be found by HTS) as PV guests. and record this PV info in the result rpm names. the related code is in hts/hts/hardwaretest.py :

634         if not (foundModel or foundVendor) and os.system("hal-device | fgrep -q xen") == 0:
635                 if self.Debugging: print "Running in a PV Guest"
636                 self.certification.setHardware(Tags.vendor, "Red Hat")
637                 foundVendor = True
638                 self.certification.setHardware(Tags.model, "ParaVirt Guest")
639                 foundModel = True

But the machines which "Model" and "Vendor" are unknown to HTS do exist, take this one as an example:
    https://hardware.redhat.com/show.cgi?id=460990
    https://hardware.redhat.com/hardware.cgi?cert_id=460990&id=140825
    https://hardware.redhat.com/results.cgi?cert_id=460990&id=157267

this is definitely not a PV guest.

Comment 1 Greg Nichols 2008-09-08 17:00:10 UTC
The current logic is only applied when there are hal devices with the string "xen" in them.

Comment 2 Rob Landry 2008-09-08 18:38:56 UTC
Isn't this already open a different bug to fix the PV vs. FV vs. Dom0 vs. BM which yk is already working on?

Comment 3 Rob Landry 2008-09-08 18:48:55 UTC
bug #310861 I believe?

Comment 4 YangKun 2008-09-09 06:13:59 UTC
(In reply to comment #1)
> The current logic is only applied when there are hal devices with the string
> "xen" in them.

I guess this is not enough to determine a system is PV ?

Comment 5 YangKun 2008-09-09 06:26:10 UTC
(In reply to comment #3)
> bug #310861 I believe?

this should be another issue, about the result rpm name. HTS will include both Vendor and Model information into the result rpm names. 

On the systems which has the string "xen" in the hal devices, if either "Model" or "Vendor" information is not available to HTS, HTS will treat it as PV. this is not correct because such machines that have the string "xen" in the hal devices when running on the "xen kernel" do exist, e.g.:
    https://hardware.redhat.com/show.cgi?id=460990

Comment 6 Rob Landry 2008-12-09 17:36:40 UTC
YK, do you have patch for this that you'd like to propose?

Comment 7 YangKun 2008-12-11 02:57:14 UTC
I'd suggest to simply remove this part of code from hts/hts/hardwaretest.py . there's no need to check if the system is PV here(bug#310861 will do that check). 

The purpose of "getBiosInfo()" is just to gather information for packaging the result rpm. it should proceed to "ask humans for it" if it can not find the machine model and vendor by it's own.

Do you agree with my suggestion ? If yes, then I can create the patch immediately.

-YK

Comment 8 Rob Landry 2008-12-11 22:45:23 UTC
If Greg'll sign off on both patches works for me.

Comment 9 Greg Nichols 2008-12-12 16:03:54 UTC
Sounds good to me.

Comment 11 YangKun 2008-12-15 01:38:24 UTC
patch submitted, removed the PV checking here, please review.

Thanks
-YK

Comment 12 Greg Nichols 2008-12-15 17:08:14 UTC
Looks good to me.

Comment 18 Yan Tian 2009-01-15 07:14:39 UTC
Verified in hts-5.3-12 hts would ask user input if the "Model" or "Vendor" was unknown and checked unknown field in result.xml file of "Model" or "Vendor".

Comment 20 errata-xmlrpc 2009-01-27 22:58:24 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0047.html