Bug 460997 - HTS shouldn't report systems as PV if the "Model" or "Vendor" is unknown
Summary: HTS shouldn't report systems as PV if the "Model" or "Vendor" is unknown
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (harness)
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: YangKun
QA Contact: Lawrence Lim
URL:
Whiteboard:
Depends On: 310861
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-03 08:26 UTC by YangKun
Modified: 2014-03-26 00:55 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-01-27 22:58:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0047 0 normal SHIPPED_LIVE hts bug fix update 2009-01-27 22:57:30 UTC

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


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