Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 233670

Summary: rhn-applet crashes due to entries within sources file - KeyError: url
Product: Red Hat Enterprise Linux 4 Reporter: Matt Seitz <matseitz>
Component: rhn-appletAssignee: Shannon Hughes <shughes>
Status: CLOSED WONTFIX QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 16:58:01 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 Matt Seitz 2007-03-23 18:15:24 UTC
+++ This bug was initially created as a clone of Bug #144903 +++

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Description of problem:
The new version of RHN Applet released during Update 4 for Enterprise
Linux 3 included code to allow RHN Applet to parse the
/etc/sysconfig/rhn/sources file to give APT and YUM support into the
application (matching similar features given in up2date which also
uses this file).

It seems though that if specify within the sources file that you have
local disk repo, such as :

dir my-favorite-rpms-i386-9 /var/spool/RPMS/

Then rhn-applet-gui and rhn-applet-tui will both fail with the
following traceback message :

Traceback (most recent call last):
  File "/usr/bin/../share/rhn/rhn_applet/", line 460, in
  File "/usr/bin/../share/rhn/rhn_applet/", line 577, in
    if self.nag_check():
  File "/usr/bin/../share/rhn/rhn_applet/", line 533, in
  File "/usr/bin/../share/rhn/rhn_applet/", line
255, in get_caps
  File "/usr/bin/../share/rhn/rhn_applet/", line
368, in fully_initialized
  File "/usr/bin/../share/rhn/rhn_applet/", line
134, in __build_sources
    rhn_utils.log_debug("Failed to initialize source %s for %s : %s
%s" % (
KeyError: url 

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

How reproducible:

Steps to Reproduce:
1. Configure up2date to use a local disk repo for RPMS
2. Use up2date sucessfully
3. Watch rhn-applet-{gui,tui} traceback and fail due to the entries

Additional info:

-- Additional comment from on 2005-01-14 14:32 EST --
Hmm, interesting. The applet simply doesn't implement
`dir` style repos. It probably should. Or at very
least, not traceback on it.

Comment 1 Red Hat Bugzilla 2007-04-12 02:17:36 UTC
User's account has been closed

Comment 2 Jiri Pallich 2012-06-20 16:58:01 UTC
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.