Bug 788761 - Support v7 call home to upload a result
Summary: Support v7 call home to upload a result
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Hardware Catalog
Version: 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Wei Shen
QA Contact:
URL: http://hardware.redhat.com/
Whiteboard:
Depends On: 788757
Blocks: 733411 782189
TreeView+ depends on / blocked
 
Reported: 2012-02-08 23:29 UTC by Rob Landry
Modified: 2014-06-23 01:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-15 04:09:06 UTC


Attachments (Terms of Use)

Description Rob Landry 2012-02-08 23:29:54 UTC
Description of problem:

v7-1.5 needs to able to submit a result from the command line of the SUT.


Steps to Reproduce:
1. v7 {proper commandline with password}  

Expected results:

A new results is uploaded in parallel with the capabilities of attachment.cgi

Comment 1 Wei Shen 2012-02-21 08:43:50 UTC
Created attachment 564607 [details]
the patch based on  788757's patch

Comment 4 Wei Shen 2012-03-08 05:21:12 UTC
Created attachment 568490 [details]
the new file for uploading results

Comment 5 Rob Landry 2012-03-14 20:12:58 UTC
Is the end result one file that does both upload and create functions (bz#788757) or two files, and the diff in comment 4 is the delta?

Comment 6 Wei Shen 2012-03-15 02:51:34 UTC
(In reply to comment #5)
> Is the end result one file that does both upload and create functions
> (bz#788757) or two files, and the diff in comment 4 is the delta?

The end results is only one file, the file in comment 4 is the whole module file.

Comment 7 Rob Landry 2012-03-15 14:16:40 UTC
Thx, for whatever reason when I click on 568490 in comment4 it shows me a diff.  Probably a preference or something I have set.

Comment 8 Greg Nichols 2012-03-20 18:27:39 UTC
I'm getting the following from v7:

[root@blueshirt v7]# v7 submit
Error: v7 is already running (lock file /var/lock/subsys/v7 found)
Override? (y|n) y
response: y
loaded results /var/v7/results.xml

Would you like to open a new certification request? (y|n) y
response: y
Red Hat Catalog User Name: gnichols
response: gnichols
Password: 
created certification ID 731239
http://hwcert-web2-test.devel.redhat.com/show.cgi?id=731239

Would you like to submit the results to the Hardware Catalog? (y|n) y
response: y
Error: could not submit certification results:
    Fault code: -32000
    Fault string: Insecure dependency in parameter 1 of DBI::db=HASH(0x10f0f320)->prepare method call while running with -T switch at Bugzilla/DB.pm line 63.


I'm calling it as follows:

        file = "results.xml"
        certificationDocument.compressToFile(file)
        certificationData = open(file + ".gz", "rb").read().encode("base64")
       
        serverProxy = xmlrpclib.ServerProxy(self.environment.getCatalogURL())
        try:
            params = {"login":self.login, 
                      "password":self.password, 
                      "certid":certificationDocument.getCertificationID(),
                      "filename":"results.xml.gz", 
                      "desc":"test results", 
                      "data":certificationData}
            
            response = serverProxy.Cert.attachResult(params)
            print "results uploaded."
            
        except xmlrpclib.Fault, error:
            [...]

Comment 9 Wei Shen 2012-03-21 05:20:19 UTC
This is fixed now.

Comment 10 Greg Nichols 2012-03-21 13:54:56 UTC
Error: could not submit certification results:
    Fault code: -32000
    Fault string: v7-1.5-9 is not an official release and can not be used for official certifications.

Can we change the test server so I can test the upload?

Comment 12 Rob Landry 2012-03-21 14:10:37 UTC
(In reply to comment #10)
> Error: could not submit certification results:
>     Fault code: -32000
>     Fault string: v7-1.5-9 is not an official release and can not be used for
> official certifications.
> 
> Can we change the test server so I can test the upload?

Done

Comment 14 Wei Shen 2012-04-25 10:23:46 UTC
verified on web2

Comment 15 Wei Shen 2012-05-23 10:15:22 UTC
verified on partner


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