Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 922806

Summary: Firstboot throwing traceback
Product: Red Hat Enterprise Linux 5 Reporter: Sharath Dwaral <fsharath>
Component: subscription-managerAssignee: Alex Wood <awood>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.10CC: alikins, awood, dgoodwin, jesusr, jgalipea, pholica, spandey
Target Milestone: beta   
Target Release: 5.10   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-30 23:00:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 840995, 920191, 965983    
Attachments:
Description Flags
firstboot traceback
none
Traceback thrown before Selection of orgs none

Description Sharath Dwaral 2013-03-18 15:00:57 UTC
Description of problem:
Firstboot Throwing traceback

Version-Release number of selected component (if applicable):
subscription-manager-gui-1.8.4-1.git.31.00b0b78.el6.x86_64
python-rhsm-1.8.7-1.git.1.675a611.el6.x86_64
subscription-manager-migration-1.8.4-1.git.31.00b0b78.el6.x86_64
subscription-manager-firstboot-1.8.4-1.git.31.00b0b78.el6.x86_64
subscription-manager-migration-data-1.12.2.6-1.git.0.171d4c3.el6.noarch
subscription-manager-1.8.4-1.git.31.00b0b78.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
#firstboot
  
Actual results:
Throws a traceback

Expected results:
Should run firstboot

Additional info:
firstboot 1.110.14 exception report
Traceback (most recent call last):
  File "/usr/sbin/firstboot", line 192, in <module>
    config.moduleList = loadModules(config.moduleDir, config.mode)
  File "/usr/lib/python2.6/site-packages/firstboot/loader.py", line 140, in loadModules
    obj.loadModules(mode=mode)
  File "/usr/lib/python2.6/site-packages/firstboot/moduleset.py", line 111, in loadModules
    self.moduleList = loadModules(self.path, mode)
  File "/usr/lib/python2.6/site-packages/firstboot/loader.py", line 101, in loadModules
    obj = loaded.moduleClass()
  File "/usr/share/rhn/up2date_client/firstboot/rhsm_login.py", line 181, in __init__
    backend = managergui.Backend()
  File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 84, in __init__
    self.identity = FEATURES.require(IDENTITY)
  File "/usr/share/rhsm/subscription_manager/injection.py", line 69, in require
    raise KeyError("Unknown feature: %r" % feature)
KeyError: "Unknown feature: 'IDENTITY'"

Local variables in innermost frame:
self: <subscription_manager.injection.FeatureBroker instance at 0x3053ab8>
args: ()
feature: IDENTITY
kwargs: {}


Config instance, containing members:
frontend: None
moduleDir: /usr/share/firstboot/modules/
needInterface: True
themeDir: /usr/share/firstboot/themes/RHEL
mode: 1
interface: Interface instance, containing members:
  interface._screenshotDir: /root/firstboot-screenshots
  interface._control: Control instance, containing members:
    interface._control.currentPage: 0
    interface._control.moduleList: []
    interface._control.history: []
  interface.testing: False
  interface._x_size: 1024
  interface._controlStack: [Already dumped (Control instance)
]
  interface._screenshotIndex: 0
  interface.autoscreenshot: False
  interface._y_size: 768
defaultThemeDir: /usr/share/firstboot/themes/default/
moduleList: None

Comment 1 Sharath Dwaral 2013-03-18 15:02:07 UTC
Created attachment 712027 [details]
firstboot traceback

Please refer attachment for GUI-Error

Comment 3 Alex Wood 2013-03-26 13:25:26 UTC
commit 851b0a58c6ed1cfb82974007f9a26f7bcdb5e313
Author: Alex Wood <awood>
Date:   Mon Mar 25 17:12:29 2013 -0400

    922806: Use dependency injection with firstboot module.

Comment 5 RHEL Program Management 2013-04-09 20:01:47 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 6 Sharath Dwaral 2013-04-30 13:27:10 UTC
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-migration-1.8.6-1.git.7.96019b0.el5
python-rhsm-1.8.9-1.git.7.214419e.el5
subscription-manager-migration-data-1.11.2.7-1.git.0.1dfd00e.el5
subscription-manager-1.8.6-1.git.7.96019b0.el5
subscription-manager-firstboot-1.8.6-1.git.7.96019b0.el5
subscription-manager-gui-1.8.6-1.git.7.96019b0.el5


# firstboot

(firstboot:22810): libglade-WARNING **: unknown property `has_tooltip' for class `GtkButton'

(firstboot:22810): libglade-WARNING **: unknown property `has_tooltip' for class `GtkEventBox'
/usr/share/system-config-soundcard/soundcard.py:120: GtkDeprecationWarning: gtk.timeout_add is deprecated, use gobject.timeout_add instead
  self.timer = gtk.timeout_add (100, self.checkStatus, self)
/usr/share/system-config-soundcard/soundcard.py:479: DeprecationWarning: use gtk.ComboBox
  self.sub_device_menu = gtk.OptionMenu()
/usr/share/firstboot/modules/eula.py:40: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  textView.set_editable(FALSE)
/usr/share/firstboot/modules/eula.py:67: GtkDeprecationWarning: gtk.TRUE is deprecated, use True instead
  self.okButton.set_active(TRUE)
/usr/share/firstboot/modules/eula.py:69: GtkDeprecationWarning: gtk.TRUE is deprecated, use True instead
  internalVBox.pack_start(textSW, TRUE)
/usr/share/firstboot/modules/eula.py:70: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  internalVBox.pack_start(self.okButton, FALSE)
/usr/share/firstboot/modules/eula.py:71: GtkDeprecationWarning: gtk.FALSE is deprecated, use False instead
  internalVBox.pack_start(self.noButton, FALSE)
/usr/share/firstboot/modules/eula.py:73: GtkDeprecationWarning: gtk.TRUE is deprecated, use True instead
  self.vbox.pack_start(internalVBox, TRUE, 5)
Loading /lib/kbd/keymaps/i386/qwerty/us.map.gz


VERIFIED.

Comment 7 Sharath Dwaral 2013-05-16 18:01:19 UTC
Created attachment 748987 [details]
Traceback thrown before Selection of orgs

# rpm -qa | egrep "subscription-manager|python-rhsm"
python-rhsm-1.8.11-1.git.0.39d1a53.el5
subscription-manager-migration-data-1.11.3.1-1.git.1.78afd75.el5
subscription-manager-gui-1.8.7-1.git.43.4ac20ab.el5
subscription-manager-firstboot-1.8.7-1.git.43.4ac20ab.el5
subscription-manager-migration-1.8.7-1.git.43.4ac20ab.el5
subscription-manager-1.8.7-1.git.43.4ac20ab.el5

Please refer attachment.

this error/tracebook pops up on entering Organization selection screen after entering user credentials to register to candlepin.


Additional Details:

Traceback (most recent call last):
  File "/usr/share/firstboot/firstbootWindow.py", line 266, in nextClicked
    result = module.apply(self.notebook)
  File "/usr/share/firstboot/modules/rhsm_login.py", line 279, in apply
    valid_registration = self.register()
  File "/usr/share/rhsm/subscription_manager/gui/registergui.py", line 189, in register
    self._run_pre(result)
  File "/usr/share/rhsm/subscription_manager/gui/registergui.py", line 201, in _run_pre
    self._set_navigation_sensitive(False)
  File "/usr/share/firstboot/modules/rhsm_login.py", line 362, in _set_navigation_sensitive
    self.interface.backButton.set_sensitive(sensitive)
AttributeError: 'gtk.Notebook' object has no attribute 'backButton'


Since there is a problem with the Subscription Registration module, 
Red Hat Setup Agent will not load this module and 
will attempt to run the remaining modules.

Please file a bug against 'firstboot' in the Red Hat 
bug tracking system at http://www.redhat.com/bugzilla. 
A copy of the debug output has been saved to /root/firstboot.1368726961.72 
Be sure to attach that file to the bug report.

Comment 8 Adrian Likins 2013-05-17 14:36:03 UTC
comment 7 sounds like a variation of https://bugzilla.redhat.com/show_bug.cgi?id=863572

Comment 9 Devan Goodwin 2013-05-31 12:09:27 UTC
*** Bug 922725 has been marked as a duplicate of this bug. ***

Comment 10 Devan Goodwin 2013-06-04 18:34:02 UTC
Fixed in subscription-manager.git master: 086d5cc993fd40e2960c24aeedc12bba12187456

Will appear in 1.8.10

Comment 11 Bryan Kearney 2013-06-05 12:36:12 UTC
Moving all modified bugs to ON_QA

Comment 12 Devan Goodwin 2013-06-05 13:48:41 UTC
*** Bug 969946 has been marked as a duplicate of this bug. ***

Comment 13 Sharath Dwaral 2013-06-05 14:06:40 UTC
Version

# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-migration-data-1.11.3.1-1.git.1.78afd75.el5
subscription-manager-migration-1.8.10-1.git.1.b44c4b1.el5
python-rhsm-1.8.12-1.git.0.d747a65.el5
subscription-manager-firstboot-1.8.10-1.git.1.b44c4b1.el5
subscription-manager-1.8.10-1.git.1.b44c4b1.el5
subscription-manager-gui-1.8.10-1.git.1.b44c4b1.el5


No traceback thrown while registering using firstboot (before org selection screen).

VERIFIED

Comment 14 Devan Goodwin 2013-06-05 15:34:49 UTC
*** Bug 959960 has been marked as a duplicate of this bug. ***

Comment 16 errata-xmlrpc 2013-09-30 23:00:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1332.html