Bug 245956 - rhn_register crashes "up2date_client.rhnreg.InvalidDefaultError"
Summary: rhn_register crashes "up2date_client.rhnreg.InvalidDefaultError"
Status: CLOSED DUPLICATE of bug 229785
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Configuration Management (Show other bugs)
(Show other bugs)
Version: unspecified
Hardware: i686 Linux
Target Milestone: ---
Assignee: Mike McCune
QA Contact: Red Hat Satellite QA List
Depends On:
TreeView+ depends on / blocked
Reported: 2007-06-27 16:17 UTC by Steven Kroon
Modified: 2007-10-24 02:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-27 17:42:55 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Steven Kroon 2007-06-27 16:17:04 UTC
Description of problem:

Running rhn_register works until i've filled in my *correct* username/password 
combination. If i fill in incorrect credentials i get a nice error message 
telling my that my username/password is incorrect.

[root@redhat5 /]# rhn_register
An error has occurred:
See /var/log/up2date for more information
[root@redhat5 /]# cat /var/log/up2date
[Wed Jun 27 17:48:57 2007] rhn_register
Traceback (most recent call last):
  File "/usr/sbin/rhn_register", line 79, in ?
  File "/usr/share/rhn/up2date_client/rhncli.py", line 65, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhn_register", line 64, in main
  File "/usr/share/rhn/up2date_client/tui.py", line 1834, in main
  File "/usr/share/rhn/up2date_client/tui.py", line 1745, in run
    result = win.run()
  File "/usr/share/rhn/up2date_client/tui.py", line 469, in run
  File "/usr/share/rhn/up2date_client/tui.py", line 66, in tui_call_wrapper
    results = func(*params)
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 807, in getPossibleOrgs
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 764, in setDefaultOrg
    raise InvalidDefaultError("Tried to set default org to %s. Valid "
up2date_client.rhnreg.InvalidDefaultError: Tried to set default org to 5453675. 
Valid values are []

[root@redhat5 /]#

When running "rhnreg_ks" though it works, so i managed to register my machine 
via this way. However i find it strange that it doesn't work 
with "rhn_register".

Comment 1 Pradeep Kilambi 2007-06-27 17:42:55 UTC
this was fixed in 5.1 as a part of bz#229785

*** This bug has been marked as a duplicate of 229785 ***

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