Bug 1415730

Summary: rhcert-ci freeze if we try to reuse a sandbox_id
Product: Red Hat Certification Program Reporter: Gonéri Le Bouder <goneri>
Component: Certification Workflow EngineAssignee: Kun Yan <kyan>
Status: CLOSED NOTABUG QA Contact: Suprith Gangawar <sgangawa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.0CC: abehl, brose, gnichols, goneri, hrivero, kyan, mbracho, pmao, yguenane
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-03 00:49:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gonéri Le Bouder 2017-01-23 14:58:40 UTC
Description of problem:

We cannot reuse an existing sandbox ID.

[stack@director ~]$ sudo rhcert-ci run --key-file /home/stack/key.file --debug high

Error: could not get vendor product info from the catalog:
You have not use xmlrpc call to login user bkopilov
Catalog: https://hardware.redhat.com/xmlrpc.cgi
(Fault code: -32000)
Continue? (yes|no)

Version-Release number of selected component (if applicable):



Steps to Reproduce:
1. Connect to the interface
2. Generate a sandbox_id
3. Redeploy the environment
4. Try to reuse the sandbox_id

Actual results:

- The rhcert-ci CLI tool freeze
- We cannot do a non interactive run of rhcert-ci

Additional info:

I put the severity to urgent because this break the Distributed-CI integration.

Comment 1 Greg Nichols 2017-01-23 15:15:31 UTC
Peng, could you take a look at this?  Perhaps there is some permissions issue with the account?

Comment 2 Anshul Behl 2017-01-23 16:25:16 UTC
Please try the new build at 

https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=534569

This should fix the issue with a new parameter added in test_config.json named undercloud_stackrc which can be configured before running rhcert-ci

Comment 3 Anshul Behl 2017-01-23 16:39:40 UTC
Please Ignore the last comment as its related to some other bug

Comment 4 MaoPeng 2017-01-24 00:22:30 UTC
is this key.file generated by bz account or sso account ? CWE has stop the  bz account support, and if this is generated by sso account, is it been added as vendor member of that vendor ?

Comment 5 Kun Yan 2017-01-25 02:41:22 UTC
Hi,

I have a workaround for this case. you could regenerated a ci key. 
it should be work.

Thanks,
Kun Yan

Comment 6 Gonéri Le Bouder 2017-01-25 15:27:55 UTC
I regenerated by sandbox_id 3 time in a row with my account (gleboude), but when I try to use it, I always get: "You have not use xmlrpc call to login user bkopilov"

Comment 11 Gonéri Le Bouder 2017-01-26 14:07:32 UTC
Now I get this with my key:

[stack@director ~]$ sudo rhcert-ci run --key-file /home/stack/key.file --debug high

Error: could not get vendor product info from the catalog:
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "X[W\x{346}\x{1a9}\x{987b}...") at /usr/lib/perl5/vendor_perl/5.8.8/JSON.pm line 154.

Catalog: https://hardware.redhat.com/xmlrpc.cgi
(Fault code: -32000)
Continue? (yes|no)

Comment 13 Gonéri Le Bouder 2017-01-26 14:27:14 UTC
It works fine know with my key. I think I did some of my test yesterday with a malformed key file. Thanks for you help.

Comment 14 Greg Nichols 2017-01-26 15:05:56 UTC
OK if I close this then?