Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Previously, running the firstboot utility with the "-r" option while the subscription-manager-firstboot utility was already installed caused the firstboot utility to terminate with a traceback; it also failed to display a message stating that the computer was already registered with Red Hat Network. This bug has been fixed, the firstboot utility now displays the warning message properly and no tracebacks are issued in the described scenario.
Description of problem:
firstboot -r with installed subscription-manager-firstboot produces traceback (see bellow)
Version-Release number of selected component (if applicable):
firstboot-1.110.10-1.el6.i686
subscription-manager-firstboot-0.95.5-1.el6
rhn-setup-gnome-1.0.0-60.el6
How reproducible:
Steps to Reproduce:
1. install rhel6.1 server (select Desktop profile)
2. run firstboot, register to hosted, satellite.
3. go through rest of firstboot steps
4. run firstboot -r
5. ends with traceback (see bellow)
6. yum remove subscription-manager-firstboot
7. run firstboot -r
8.
Actual results:
firstboot 1.110.10 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_subscriptions.py", line 23, in __init__
managergui.MainWindow.__init__(self)
File "/usr/share/rhsm/gui/managergui.py", line 261, in __init__
self._check_rhn_classic()
File "/usr/share/rhsm/gui/managergui.py", line 421, in _check_rhn_classic
self._get_window())
File "/usr/share/rhn/up2date_client/firstboot/rhsm_subscriptions.py", line 54, in _get_window
return self.vbox.get_parent_window().get_user_data()
AttributeError: 'NoneType' object has no attribute 'get_parent_window'
Local variables in innermost frame:
self: <rhsm_subscriptions.moduleClass object at 0x886154c>
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: 3120
interface._controlStack: [Already dumped (Control instance)
]
interface._screenshotIndex: 0
interface.autoscreenshot: False
interface._y_size: 1050
defaultThemeDir: /usr/share/firstboot/themes/default/
moduleList: None
Expected results:
'firstboot -r' starts also with subscription-manager-firstboot installed
Additional info:
Comment 2RHEL Program Management
2011-04-05 12:03:27 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.
Fixed in master (but not merged to 6.1 branch yet) in:
commit e3ccb4b6658f59ecc33b024ad462ed0f693d346e
Author: Adrian Likins <alikins>
Date: Wed Apr 6 16:35:05 2011 -0400
693709: fix bug showing the "you are registered to rhn" dialog
.__get_window was calling the subclass method, which was pointing
at a window which isn't created yet in firstboot (createScreen
creates it)
commit 2e737233862bd50c1bf95aca7bc90f85014fe40d
Author: Adrian Likins <alikins>
Date: Wed Apr 6 16:35:05 2011 -0400
693709: fix bug showing the "you are registered to rhn" dialog
.__get_window was calling the subclass method, which was pointing
at a window which isn't created yet in firstboot (createScreen
creates it)
(in RHEL6 branch)
Created attachment 503705[details]
bzfix
Tested with release candidate of rhsm:
subscription-manager-0.95.14-1.git.4.11aa664.el6.x86_64
subscription-manager-firstboot-0.95.14-1.git.4.11aa664.el6.x86_64
subscription-manager-gnome-0.95.14-1.git.4.11aa664.el6.x86_64
firstboot -r now opens normally with the "you are registered to rhn" warning properly (see screenshot).
firstboot does not create any additional tracebacks or warning messages.
Marking this VERIFIED.
Comment 22Red Hat Case Diagnostics
2011-06-10 02:17:37 UTC
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Previously, running the firstboot utility with the "-r" option while the subscription-manager-firstboot utility was already installed caused the firstboot utility to terminate with a traceback; it also failed to display a message stating that the computer was already registered with Red Hat Network. This bug has been fixed, the firstboot utility now displays the warning message properly and no tracebacks are issued in the described scenario.
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-2011-1695.html
Description of problem: firstboot -r with installed subscription-manager-firstboot produces traceback (see bellow) Version-Release number of selected component (if applicable): firstboot-1.110.10-1.el6.i686 subscription-manager-firstboot-0.95.5-1.el6 rhn-setup-gnome-1.0.0-60.el6 How reproducible: Steps to Reproduce: 1. install rhel6.1 server (select Desktop profile) 2. run firstboot, register to hosted, satellite. 3. go through rest of firstboot steps 4. run firstboot -r 5. ends with traceback (see bellow) 6. yum remove subscription-manager-firstboot 7. run firstboot -r 8. Actual results: firstboot 1.110.10 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_subscriptions.py", line 23, in __init__ managergui.MainWindow.__init__(self) File "/usr/share/rhsm/gui/managergui.py", line 261, in __init__ self._check_rhn_classic() File "/usr/share/rhsm/gui/managergui.py", line 421, in _check_rhn_classic self._get_window()) File "/usr/share/rhn/up2date_client/firstboot/rhsm_subscriptions.py", line 54, in _get_window return self.vbox.get_parent_window().get_user_data() AttributeError: 'NoneType' object has no attribute 'get_parent_window' Local variables in innermost frame: self: <rhsm_subscriptions.moduleClass object at 0x886154c> 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: 3120 interface._controlStack: [Already dumped (Control instance) ] interface._screenshotIndex: 0 interface.autoscreenshot: False interface._y_size: 1050 defaultThemeDir: /usr/share/firstboot/themes/default/ moduleList: None Expected results: 'firstboot -r' starts also with subscription-manager-firstboot installed Additional info: