Bug 1250896

Summary: results.xml.gz file with multiple runs should not have same file names
Product: Red Hat Certification Program Reporter: Anshul Behl <abehl>
Component: redhat-certificationAssignee: Greg Nichols <gnichols>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: abehl, brose, pmao, sgupta
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-06 11:34:30 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 Anshul Behl 2015-08-06 09:09:15 UTC
Description of problem:

On extracting a cloud submitted file I got the below file names:
image_history.xml, firstboot.xml, image_history.xml, firstboot.xml, 
ping.err, ping.xml, ping.err, ping.xml, ssg-errors.log, ssg-results.xml, 
ssg-results.html, ssg-errors.log, ssg-results.xml, ssg-results.html, 
yum.xml, yum.xml, 
sosreport-test-instance-suprith2-20150615082232.tar.xz, 
sosreport-test-instance-suprith2-20150615082232.tar.xz.md5, 
sosreport-test-instance-suprith2-20150615083129.tar.xz.md5, 
sosreport-test-instance-suprith2-20150615083129.tar.xz


As you can see some names are repeated in the file because there were multiple runs in single file.
CWE has checks in place for same file names and so does CAAS, this results is errors in certification workflow.

Please changes the names by appending something like run number with the file name like 1-image_history.xml etc. to encounter this.


Version-Release number of selected component (if applicable):
redhat-certification-1.0-20150723.el7.noarch

How reproducible:
Everytime

Comment 1 Greg Nichols 2015-08-06 11:18:03 UTC
How are you extracting these files?

Comment 2 Anshul Behl 2015-08-06 11:29:31 UTC
Greg I am using a XMLParser that I have written for the same.
I am using them for my automation testing.

Comment 3 Greg Nichols 2015-08-06 11:34:30 UTC
This isn't a bug then.   The results.xml format has attachments organized by test run and test.   There is no requirement that attachment file names be unique.  If necessary, your XMLParser can rename the files on extraction.

Comment 4 Anshul Behl 2015-08-06 11:46:59 UTC
Greg,

Brief description of the issue:
- This has nothing to do with my scripts.
- There were two openstack certifications that failed recently due to this, what was happening was the rhcertlog file had two runs/ two openstack log files in it and CAAS was rejecting then saying 409 conflict error.
- CWE has the logic in place where it will stop the processing if CAAS returns something like that.
- Now if we do not make this change, partners can't submit files with multiple runs for cloud/openstack.

pmao and sgupta can describe the same issue better.

Comment 5 Greg Nichols 2015-08-06 14:00:11 UTC
This is bug in CaaS then, as it should handle a results file with more than one run.

Comment 6 MaoPeng 2016-03-01 00:03:05 UTC
bug has been closed.