Bug 612206

Summary: crash in strata plugin
Product: Red Hat Enterprise Linux 6 Reporter: Gavin Romig-Koch <gavin>
Component: reportAssignee: Gavin Romig-Koch <gavin>
Status: CLOSED CURRENTRELEASE QA Contact: David Kutálek <dkutalek>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: dkutalek, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: report-0.18-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:29:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gavin Romig-Koch 2010-07-07 14:51:14 UTC
Attempting to submit a report that did not already contain a product and/or version through the strata plugin will result in a unhandled exception:


bash-4.1$ report strata_client/sealert-report.xml 


Where do you want to send this report:
1: ftp
2: bugzilla.redhat.com
3: RHEL-bugzilla.redhat.com
4: strata-test
5: Red Hat Global Support
6: local
7: scp
0: cancel
Choice (0-7): 4


Create new case or Attach report to existing case?
1: Create Case
2: Attach to existing case
0: cancel
Choice (0-2): 1

Login for support-services-devel.gss.redhat.com:8080
Username: rhn-support-twalsh
Password: 
Traceback (most recent call last):
  File "/usr/bin/report", line 160, in <module>
    app = report.report(signature, io, **optsDict)
  File "/usr/lib64/python2.6/site-packages/report/__init__.py", line 493, in report
    retval = choice(signature, io)
  File "/usr/lib64/python2.6/site-packages/report/__init__.py", line 413, in <lambda>
    (lambda module, optionsDict: lambda signature, io : module.report(signature, io, optionsDict))(module, optionsDict)))
  File "/usr/lib64/python2.6/site-packages/report/plugins/strata/__init__.py", line 133, in report
    product = report.release_information.getProduct()
AttributeError: 'function' object has no attribute 'release_information'
bash-4.1$

Comment 1 Gavin Romig-Koch 2010-07-07 14:56:22 UTC
Fixed pushed to fedorahosted src repo.

This fix is very simple and safe.  

https://fedorahosted.org/report/changeset/4661f148d6d52fc737e6d9a4deabced52f07c8fd/

Comment 5 releng-rhel@redhat.com 2010-11-10 21:29:43 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.