Bug 681470

Summary: v7 submit fail on ppc64
Product: [Retired] Red Hat Hardware Certification Program Reporter: chen yuwen <yuchen>
Component: Test Suite (tests)Assignee: Greg Nichols <gnichols>
Status: CLOSED ERRATA QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.2CC: czhang, rlandry, ykun
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In v7 1.3, "v7 submit" may fail on systems with a comma in system model field. This issue has been fixed in v7 1.3, now "v7 submit" can be executed successfully on such systems.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-09 16:15:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description chen yuwen 2011-03-02 09:50:43 UTC
Description of problem:
v7 submit fail on ppc64.

# v7 submit
loaded results /var/v7/results.xml
writing results to /var/log/v7/v7-unknown_vendor-IBM,7998-60X-Santiago6.1_ppc64_results
building results rpm...
"rpmbuild  -tb v7-results.tar.bz2 >> /var/v7/package.log 2>&1" returned 1
Error: failed to generate results rpm

Job link: https://beaker.engineering.redhat.com/jobs/57089
The reason is because there is a redundance comma in the name of result rpm.

Modified the function removeBadCharactersInName() of controller.py: 
     57         pattern = re.compile("[^\[\]\(\)\\\/&@]")
to
     57         pattern = re.compile("[^\[\]\(\)\\\/&@,]")

Then v7 submit PASS.

# v7 submit
loaded results /var/v7/results.xml
writing results to /var/log/v7/v7-unknown_vendor-IBM7998-60X-Santiago6.1_ppc64_results
building results rpm...
Moving the results rpm to data directory /var/v7
Warning: not removing old logs
done.

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

How reproducible:
always

Steps to Reproduce:
1. install v7 on ppc64 system
2. run any tests of v7
3. run: v7 submit
  
Actual results:
FAIL

Expected results:
PASS

Additional info:

Comment 1 Greg Nichols 2011-03-07 17:40:34 UTC
The fix above looks good to me.

Comment 7 Caspar Zhang 2011-05-01 09:53:32 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
In v7 1.3, "v7 submit" may fail on systems with a comma in system model field. This issue has been fixed in v7 1.3, now "v7 submit" can be executed successfully on such systems.

Comment 8 errata-xmlrpc 2011-05-09 16:15:02 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-2011-0497.html