Bug 788757

Summary: Support v7 call home to open a new cert
Product: [Retired] Red Hat Hardware Certification Program Reporter: Rob Landry <rlandry>
Component: Hardware CatalogAssignee: Wei Shen <wshen>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2CC: gnichols, hwcert-catalog, junwang, wshen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://hardware.redhat.com/
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-12 09:10: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:
Bug Depends On:    
Bug Blocks: 733411, 782191, 788761    

Description Rob Landry 2012-02-08 23:13:05 UTC
Description of problem:

v7-1.5 needs to able to open a new cert from the command line of the SUT.


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

Expected results:

A new cert/bug is created in parallel with the capabilities of enter.cgi without attachment.

Comment 2 Wei Shen 2012-02-14 06:56:57 UTC
Created attachment 561776 [details]
the patch for xmlrpc

Comment 19 Wei Shen 2012-04-25 10:22:57 UTC
verified on web2

Comment 20 Wei Shen 2012-04-26 07:23:09 UTC
Created attachment 580384 [details]
the new patch addressing make id

Comment 21 Wei Shen 2012-04-26 07:50:11 UTC
Created attachment 580393 [details]
new Patch for make id

Comment 22 Rob Landry 2012-04-30 13:28:02 UTC
Is the user notified after the cert is opened with unknown vendor/make that they should go to the web UI to make the corrections?  Some simple messaging between v7 and catalog is needed here likely.

Greg, do you have any feedback for how this does or should happen?

Comment 23 Wei Shen 2012-05-02 03:24:50 UTC
(In reply to comment #22)
> Is the user notified after the cert is opened with unknown vendor/make that
> they should go to the web UI to make the corrections?  Some simple messaging
> between v7 and catalog is needed here likely.
This is not included in the code, I have no idea how to implement this, maybe we can do this later.

Comment 24 Wei Shen 2012-05-02 09:55:42 UTC
I have adopted tfu's  suggestion, change the return value of create method to a hash(dictionary in python), the structure will be { id => id-value, warning => warning-value}, if  warning-value is not an empty string, v7 would print that warning value. e.g.
    data = s.Cert.create(params)
    data['id']  is the newly created cert's id
    if data['warning']:
        print data['warning']

What do you think, Rob, Greg?

Comment 25 Wei Shen 2012-05-02 10:11:31 UTC
Created attachment 581564 [details]
new patch for adding warnings

Comment 26 Wei Shen 2012-05-23 10:16:23 UTC
verified on partner