RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 614139 - Report throws traceback when there is a configuration for a non-present plugin
Summary: Report throws traceback when there is a configuration for a non-present plugin
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: report
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Gavin Romig-Koch
QA Contact: David Kutálek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-13 18:15 UTC by David Kutálek
Modified: 2010-11-10 21:29 UTC (History)
0 users

Fixed In Version: report-0.18-5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-10 21:29:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Kutálek 2010-07-13 18:15:31 UTC
Description of problem:

During testing, I modified my main configuration file at /etc/report.conf to include config for all plugins. After uninstalling plugin for bugzilla (obsoleted now), I am getting traceback because of bugzilla plugin config is still present in main config:

[dkutalek@timothy Documents]$ report /tmp/dummy-report.txt 
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 489, in report
    choice = buildChoices(signature, io, config, rptopts)
  File "/usr/lib64/python2.6/site-packages/report/__init__.py", line 398, in buildChoices
    (modulefile, modulepath, moduletype) = imputil.imp.find_module(moduleName,alternatives.__path__)
ImportError: No module named RHEL-bugzilla

Although it can be considered as misconfiguration by user, it definitely should not traceback because of it. Giving a simple text warning to stderr and continue should be nice enough.

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

report-0.18-2.el6.x86_64

How reproducible:

Always

Steps to Reproduce:
1. insert a configuration for any uninstalled plugin
2. run report
  
Actual results:

Traceback

Expected results:

Only give a warning and continue.

Additional info:

Under usual circumstances not triggered, because configuration for individual plugins is kept in separate files and these are removed when removing plugin via package dependency. However, it can happen when user plays with main config as happened to me.

Comment 3 RHEL Program Management 2010-07-15 14:49:11 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release. It has
been denied for the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 6 releng-rhel@redhat.com 2010-11-10 21:29:48 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.


Note You need to log in before you can comment on or make changes to this bug.